modus
Menu
On this page

The entry pages

A system tool: what the page tables give, as the kernel reads it from the tables themselves.

The top part is the kernel half of the addresses: the direct map, the kernel module, and the kernel stacks between their guard pages. The bottom part is the half of this process. Each line is a run of pages with one protection. No page is both writable and executable.

The process needs the grant to inspect the machine.

What it is for. It shows two rules of the memory of the system as the processor sees them, not as a document claims them: no page is both writable and executable, and each kernel stack has a guard page on each side. It also shows whether the processor keeps the kernel out of the memory of processes (no execution of it, and no access outside a copy).

Start: start("pages") in the console, or the bar of the desktop.

Grants, as the root service gives them:

  • Inspect: the machine with the right Inspect, for the report Inspect_Kind.Mappings of the kernel half and of the half of this process. The kernel walks the page tables themselves to make it.

What a reader sees: the two halves as runs of pages, each with its protection, and the rules with a mark each. The log has, once:

  • the pages, the runs, the pages that are write and execute, and the guard pages of the kernel half;
  • the same counts for this process;
  • "pages: ok, the page tables keep the rules", or "pages: failed, ...";
  • whether the processor refuses the memory of processes to the kernel.

What it does not prove: it reads the tables of one process, its own. It shows the state at one moment, every 500 ms; it does not watch each change of a mapping.

pages module with an entry

Hash
dfdf0bbf9185b367e51a56c21141528277598f72286ea5443e217126c5a16ced
Size
227027 bytes
Exports
0
Imports
0
Imported by
0
License
MIT

A system tool: what the page tables give, as the kernel reads it from the tables themselves

FactValue
KindModules with an entry
Sourcesrc/modules/system/pages
Boot imageyes: in the boot image, 227027 bytes in this build
Build settingsnone: the defaults of the source
Importsnone
Imported bynone

Neighbours

It imports no module, and no module imports it. The module graph shows it with the other modules that have no edge.

Exports

ExportWhat it does
entry()The entry of pages: every 500 ms it reads the two mapping reports and draws them, and the first time it writes the result on the log

entry

entry()

The entry of pages: every 500 ms it reads the two mapping reports and draws them, and the first time it writes the result on the log.

With no window it stops with Failed. It never stops by itself.

Form
The entry of the module: one parameter, an address, fixed by the contract.
Source
src/modules/system/pages/main.odin:276

Read from the source of the module, as the build reads it to describe the exports (tools/modustool/build/describe.odin).

What the root service gives it

WhatValueAs the root service says
GrantsIt shows the page tables.
Other terms of its start grant setnone
Budget that it asks for
  • working memory pages 1526
  • pages of its threads 72
  • pages of the pictures of its window 4175
  • pages of the module and its imports from the files of the build
  • processes the least
  • threads the least
The least budget of 2048 pages, in which it ran before it stated its window, less that window at the scale 1 (1044 pages): its module, its stack, its tables and its glyph memory. And the picture of the logical size in which it draws by hand (interface.Hand_Picture): 800 x 668 pixels of 4 bytes, 522 pages. 1004 + 522 = 1526. The tool counts the window at the largest scale. See: Module contract: The budget that a module asks for

The start grant set is read from start_grant_sets in src/modules/system/root/start_grant_sets.odin. The stated budget is read from the constant MODULE_BUDGET of the source of the module (its line); the build adds the counted parts and writes the sum in the module (tools/modustool/build/budget_count.odin); the root service accepts it up to the largest budget of a process, and adds the limits of processor time and of log records (src/modules/system/root/budgets.odin).