The entry boot
A system tool: how the machine started, at any time. It draws the boot display (package bootscreen) in a window, with the records that the kernel has now. It needs the grant to inspect the machine, and the boot image.
What it is for. The boot display is on the screen only while the machine starts; the compositor then takes the screen. This process shows the same picture again, in a window, at any time: the stages of the start with their times, the memory ranges of the firmware, the processors, the files of the boot image and the check of their hashes, and the processes that run. A reader who looks for the cause of a slow or odd start reads it here, after the start.
What a reader sees. Start it from the start menu, or with start("boot") in the console. The window is the boot display at its base size (bootscreen.WIDTH by bootscreen.HEIGHT logical pixels), as a picture at the scale of the desktop, with the message "the desktop runs". It draws again each 500 ms, with the records of the kernel of that time. At its first draw it writes boot: ok, <count> stages, <count> memory ranges, <count> processes on the log.
Its grants: Inspect, the machine handle that reads the boot record and the other reports of the kernel (src/library/modus/bootscreen/collect), and Image, the boot image, read-only, for the names and the kinds of its files. It changes nothing.
What it shows of the design. One picture, three parts of the system that draw it: the boot program, the root service and this process draw the same record (bootscreen.Data) with the same package; the kernel draws nothing. The rules of the picture are in The design rules.
boot module with an entry
- Hash
abce9b7506fdb8b5a427e5460c44c6cddf177d144cae9864e33eff682f8a6e5b- Size
333025 bytes- Exports
0- Imports
0- Imported by
0- License
- MIT
A system tool: how the machine started, at any time
| Fact | Value |
|---|---|
| Kind | Modules with an entry |
| Source | src/modules/system/boot |
| Boot image | yes: in the boot image, 333025 bytes in this build |
| Build settings | none: the defaults of the source |
| Imports | none |
| Imported by | none |
Neighbours
It imports no module, and no module imports it. The module graph shows it with the other modules that have no edge.
Exports
| Export | What it does |
|---|---|
entry() | opens the window of the boot display and draws it again each 500 ms, until the process is stopped |
entry
entry()
entry opens the window of the boot display and draws it again each 500 ms, until the process is stopped.
It maps the boot image when the grant gives it. Each turn reads the records of the kernel (collect.data), draws the display into the window, and presents it. The first turn writes boot: ok, ... on the log. The events of the window are read and dropped: the window takes no input. With no window, the process stops with Failed.
- Form
- The entry of the module: one parameter, an address, fixed by the contract.
src/modules/system/boot/main.odin:72
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
| What | Value | As the root service says |
|---|---|---|
| Grants | It shows the modules of the boot image. | |
| Other terms of its start grant set | none | |
| Budget that it asks for |
| The least budget of 2048 pages, in which it ran before it stated its window, less that window at the scale 1 (1350 pages): its module, its stack, its records of the kernel and its glyph memory. And the picture of the logical size in which it draws by hand (interface.Hand_Picture): 976 x 708 pixels of 4 bytes, 675 pages. 698 + 675 = 1373. 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).
WIDTH constant of the package bootscreen
WIDTH :: 976
The logical size of the panel: the size of the display at scale 1.
HEIGHT constant of the package bootscreen
HEIGHT :: 708
Logical pixels: the panel at scale 1 leaves a bar and a title on a screen of 768 lines.
Data type of the package bootscreen
Data :: struct {...}
What the display shows: the reports of the kernel, the boot image and the.
data procedure of the package collect
data :: proc "contextless" (result: ^bootscreen.Data, machine: system.Handle)
data fills a Data with the boot report, the system report, the report of.
