|
@@ -130,7 +130,7 @@ make clean
|
|
|
- Build flags (in `Makefile`): `-m32 -march=i586 -ffreestanding -fno-pie -nostdlib
|
|
- Build flags (in `Makefile`): `-m32 -march=i586 -ffreestanding -fno-pie -nostdlib
|
|
|
-fno-stack-protector -mno-sse -mno-sse2 -mno-mmx -O2`. The ring-3 WM and
|
|
-fno-stack-protector -mno-sse -mno-sse2 -mno-mmx -O2`. The ring-3 WM and
|
|
|
viewer are per-object `-Os` with function sections, like the other size-
|
|
viewer are per-object `-Os` with function sections, like the other size-
|
|
|
- sensitive GUIs, because the 2 MB gzip rootfs pack is close to its cap.
|
|
|
|
|
|
|
+ sensitive GUIs, to keep the gzip rootfs pack small (its cap is 4 MB).
|
|
|
- `make browser-host` is a development-only harness, not part of the images: it
|
|
- `make browser-host` is a development-only harness, not part of the images: it
|
|
|
builds `browser.c`, ngui, the image/TLS stack and QuickJS as a 32-bit Linux
|
|
builds `browser.c`, ngui, the image/TLS stack and QuickJS as a 32-bit Linux
|
|
|
program against the same `SYS_*` ABI (`host/syscall.c`, an SDL3 window,
|
|
program against the same `SYS_*` ABI (`host/syscall.c`, an SDL3 window,
|
|
@@ -228,7 +228,8 @@ and `make net-dev`/`kernel-net-dev` reload over the network. `bootlog save
|
|
|
12-dword `struct boot_info` (magic/checksum/rsdp/flags/pack range) to
|
|
12-dword `struct boot_info` (magic/checksum/rsdp/flags/pack range) to
|
|
|
`0x500`, enters protected mode and jumps to `kernel_entry` (`entry.S`,
|
|
`0x500`, enters protected mode and jumps to `kernel_entry` (`entry.S`,
|
|
|
re-points ESP to the current stack top, then `kernel_main`). The pack
|
|
re-points ESP to the current stack top, then `kernel_main`). The pack
|
|
|
- never occupies the low gap, so the cap is `PACK_MAX` (2 MB) and the
|
|
|
|
|
|
|
+ never occupies the low gap, so the cap is `PACK_MAX` (4 MB, copied to
|
|
|
|
|
+ `0x900000..0xD00000`) and the
|
|
|
kernel BSS/boot stack may extend past `0x60000`. The stage prints
|
|
kernel BSS/boot stack may extend past `0x60000`. The stage prints
|
|
|
`Loading rootfs [d=<drive> lba=<hex> e=<0|1> m=<C|L>]...`, then a dot
|
|
`Loading rootfs [d=<drive> lba=<hex> e=<0|1> m=<C|L>]...`, then a dot
|
|
|
after the header and one per 16 KB chunk, so a BIOS hang is localised.
|
|
after the header and one per 16 KB chunk, so a BIOS hang is localised.
|
|
@@ -293,7 +294,7 @@ a Pentium 1 (and a Pentium II board without ACPI) on the UP path.
|
|
|
| `0x60000` | No longer a rootfs staging area: the legacy stage copies each 16 KB chunk straight to `0x900000`. The kernel BSS/boot stack may use this range |
|
|
| `0x60000` | No longer a rootfs staging area: the legacy stage copies each 16 KB chunk straight to `0x900000`. The kernel BSS/boot stack may use this range |
|
|
|
| `_end` | Kernel end (linker symbol; `kernel.ld` keeps `_end <= 0x90000` so the top of the low-memory gap and the EBDA stay untouched). BSS and the boot stack may extend past `0x60000` |
|
|
| `_end` | Kernel end (linker symbol; `kernel.ld` keeps `_end <= 0x90000` so the top of the low-memory gap and the EBDA stay untouched). BSS and the boot stack may extend past `0x60000` |
|
|
|
| (in-image) | Bootstrap/protected-mode stack: 8 KB `.stack` NOLOAD section, `__boot_stack_top`/`__boot_stack_bottom` (travels with the kernel) |
|
|
| (in-image) | Bootstrap/protected-mode stack: 8 KB `.stack` NOLOAD section, `__boot_stack_top`/`__boot_stack_bottom` (travels with the kernel) |
|
|
|
-| `0x900000`| Legacy boot-time rootfs pack written directly by `vesa_stage.S` (reserved by `mm_init` until `ramfs_init` takes its copy, then freed); `mm_init` places the frame bitmap in the first RAM after it (`0xAF3000` with today's pack); process stacks and kexec staging also start here |
|
|
|
|
|
|
|
+| `0x900000`| Legacy boot-time rootfs pack written directly by `vesa_stage.S` (reserved by `mm_init` until `ramfs_init` takes its copy, then freed); `mm_init` places the frame bitmap in the first RAM after it (`0xB02000` with today's 2.1 MB pack, at most `0xD00000`); process stacks and kexec staging also start here |
|
|
|
| `0x100000`| VGA shadow buffer (`VGA_SHADOW_BASE`, `vga.h`) |
|
|
| `0x100000`| VGA shadow buffer (`VGA_SHADOW_BASE`, `vga.h`) |
|
|
|
|
|
|
|
|
The legacy stage uses `0x3000..0x6FFF` as a 16 KB-chunk rootfs staging
|
|
The legacy stage uses `0x3000..0x6FFF` as a 16 KB-chunk rootfs staging
|
|
@@ -2474,8 +2475,9 @@ The commands live in `cmds.pack` (`bin/<name>` entries, built by `mkpack`),
|
|
|
compressed with `libdeflate-gzip -12` when it is installed (falling back to
|
|
compressed with `libdeflate-gzip -12` when it is installed (falling back to
|
|
|
`gzip -9`) to `cmds_pack_gz.bin` and wrapped by `mkrootfs` with a
|
|
`gzip -9`) to `cmds_pack_gz.bin` and wrapped by `mkrootfs` with a
|
|
|
one-sector `NBROOT1` header (magic, version, exact `pack_bytes`, checksum,
|
|
one-sector `NBROOT1` header (magic, version, exact `pack_bytes`, checksum,
|
|
|
-gzip flag). The build rejects a pack above the `PACK_MAX` cap (2 MB,
|
|
|
|
|
-`CMDS_GZ_MAX` in the Makefile, `PACK_MAX` in `vesa_stage.S`);
|
|
|
|
|
|
|
+gzip flag). The build rejects a pack above the `PACK_MAX` cap (4 MB,
|
|
|
|
|
+`CMDS_GZ_MAX` in the Makefile, `PACK_MAX` in `vesa_stage.S`, the embedded
|
|
|
|
|
+cap in `boot/efi/main.c`; all three must match);
|
|
|
`libdeflate` buys several KB over `gzip -9` and is still preferred. The boot
|
|
`libdeflate` buys several KB over `gzip -9` and is still preferred. The boot
|
|
|
path loads the gz pack into RAM — the legacy stage copies it directly to
|
|
path loads the gz pack into RAM — the legacy stage copies it directly to
|
|
|
`0x900000` with its protected-mode `rep movsb`, the UEFI loader into a
|
|
`0x900000` with its protected-mode `rep movsb`, the UEFI loader into a
|
|
@@ -2483,7 +2485,10 @@ loader-data buffer below 512 MB, kexec via its staging buffer — and
|
|
|
`ramfs_init()`
|
|
`ramfs_init()`
|
|
|
inflates it into page-allocated memory and mounts it read-only at `/ramfs`.
|
|
inflates it into page-allocated memory and mounts it read-only at `/ramfs`.
|
|
|
The kernel image no longer contains it, so the pack no longer moves `_end`;
|
|
The kernel image no longer contains it, so the pack no longer moves `_end`;
|
|
|
-the high-memory legacy path supports up to 2 MB (known issue 8). The UI
|
|
|
|
|
|
|
+the high-memory legacy path supports up to 4 MB (known issue 8). Hot
|
|
|
|
|
+reloads stage kernel + gzip pack, or a raw runtime pack (`cmds-dev`/
|
|
|
|
|
+`net-cmds`, up to the 8 MB ramfs cap), in one buffer of at most `KEXEC_MAX`
|
|
|
|
|
+(8 MB, `kexec.h`; `PAYLOAD_MAX` in `payload.c` and `netkexec_send.c` match). The UI
|
|
|
font subsets live in the pack under `fonts/`, the WiFi firmware under
|
|
font subsets live in the pack under `fonts/`, the WiFi firmware under
|
|
|
`firmware/`, the mouse cursors at `cursors/adwaita24.cur` (full pack only),
|
|
`firmware/`, the mouse cursors at `cursors/adwaita24.cur` (full pack only),
|
|
|
the UI icons at `icons/adwaita16.icn` (both packs) and the flat kernel at `install/kernel.bin` (full pack only;
|
|
the UI icons at `icons/adwaita16.icn` (both packs) and the flat kernel at `install/kernel.bin` (full pack only;
|
|
@@ -2991,19 +2996,21 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
load (the USB rootfs partition is 8 MB, so this only bites if the cap is
|
|
load (the USB rootfs partition is 8 MB, so this only bites if the cap is
|
|
|
raised without a bigger partition). The legacy stage copies the
|
|
raised without a bigger partition). The legacy stage copies the
|
|
|
compressed pack directly to `0x900000` with a protected-mode
|
|
compressed pack directly to `0x900000` with a protected-mode
|
|
|
- `rep movsb`, so the cap is `PACK_MAX` 2 MB (raised from 1 MB for the WiFi
|
|
|
|
|
- firmware). The browser and
|
|
|
|
|
|
|
+ `rep movsb`, so the cap is `PACK_MAX` 4 MB (raised from 1 MB for the WiFi
|
|
|
|
|
+ firmware, then from 2 MB when the browser grew; it ends at `0xD00000`,
|
|
|
|
|
+ inside the 16 MB no-E820 fallback). A 4.15 MB pack was boot-tested on
|
|
|
|
|
+ the legacy and UEFI paths and over `net-dev`. The browser and
|
|
|
its ring-3 dependencies are compiled with function sections and linked
|
|
its ring-3 dependencies are compiled with function sections and linked
|
|
|
with `--gc-sections`; the current full pack with the UI fonts, both
|
|
with `--gc-sections`; the current full pack with the UI fonts, both
|
|
|
WiFi firmwares (7265D 1,036,312 bytes, ~442 KiB gzip; 6000 454,608 bytes,
|
|
WiFi firmwares (7265D 1,036,312 bytes, ~442 KiB gzip; 6000 454,608 bytes,
|
|
|
~204 KiB gzip), the RTL8821A firmware and tables (31,898 + 11,668
|
|
~204 KiB gzip), the RTL8821A firmware and tables (31,898 + 11,668
|
|
|
- bytes) and `install/kernel.bin` is ~2.00 MiB gzip (~4 KB under the
|
|
|
|
|
- cap), inflating to ~4.13 MB, which adds about
|
|
|
|
|
|
|
+ bytes) and `install/kernel.bin` is ~2.0 MiB gzip (~2 MB under the
|
|
|
|
|
+ cap), inflating to ~4.35 MB, which adds about
|
|
|
half a second to the boot; the floppy lite pack is ~641 KiB gzip and
|
|
half a second to the boot; the floppy lite pack is ~641 KiB gzip and
|
|
|
deliberately omits the firmware, `install/kernel.bin` and the browser
|
|
deliberately omits the firmware, `install/kernel.bin` and the browser
|
|
|
(`BROWSER` on `root.img` is the floppy copy). `libdeflate-gzip -12` is still preferred. Over
|
|
(`BROWSER` on `root.img` is the floppy copy). `libdeflate-gzip -12` is still preferred. Over
|
|
|
- 115200 serial a raw `cmds-dev` pack (4.1 MiB) now takes about four
|
|
|
|
|
- minutes; use `net-cmds`.
|
|
|
|
|
|
|
+ 115200 serial a raw `cmds-dev` pack (4.3 MiB) now takes about four
|
|
|
|
|
+ minutes; use `net-cmds` (~45 s in QEMU).
|
|
|
9. SMP is **ACPI/MADT only**: no Intel MP-table fallback, so a Pentium II SMP
|
|
9. SMP is **ACPI/MADT only**: no Intel MP-table fallback, so a Pentium II SMP
|
|
|
board that exposes only MP tables stays UP (deliberate; there is no test
|
|
board that exposes only MP tables stays UP (deliberate; there is no test
|
|
|
hardware).
|
|
hardware).
|
|
@@ -3132,15 +3139,8 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
background layers, `background-attachment`, 3D/perspective transforms
|
|
background layers, `background-attachment`, 3D/perspective transforms
|
|
|
and transformed text/descendants (`scale`/`rotate` paint the element box
|
|
and transformed text/descendants (`scale`/`rotate` paint the element box
|
|
|
and inline images; layout geometry is unchanged), border-radius clipping
|
|
and inline images; layout geometry is unchanged), border-radius clipping
|
|
|
- of descendant content, gradients/box-shadow/transitions (a gradient
|
|
|
|
|
|
|
+ of descendant content, gradients/box-shadow (a gradient
|
|
|
background falls back to its last solid colour), or CSS `color-mix`.
|
|
background falls back to its last solid colour), or CSS `color-mix`.
|
|
|
- A non-uniform `background-size` uses the width scale for both axes.
|
|
|
|
|
- CSS custom properties (`var()`: one document-wide table, expanded when
|
|
|
|
|
- a sheet is parsed; definitions on `:root`/`html`/`body`/`*`/`:host`
|
|
|
|
|
- win, a component-level definition applies only while no other rule
|
|
|
|
|
- gives the name a different value, otherwise `var()` uses its fallback
|
|
|
|
|
- -- Font Awesome's competing `--fa-width` values made every icon 100%
|
|
|
|
|
- wide; rules touching such names are re-expanded per element against
|
|
|
|
|
Transitions animate only `opacity` (painted only on absolute/fixed
|
|
Transitions animate only `opacity` (painted only on absolute/fixed
|
|
|
boxes; in-flow translucency paints opaque) and `translate()`; colours,
|
|
boxes; in-flow translucency paints opaque) and `translate()`; colours,
|
|
|
sizes, `scale`/`rotate`, `@keyframes` animations, per-property
|
|
sizes, `scale`/`rotate`, `@keyframes` animations, per-property
|
|
@@ -3148,6 +3148,13 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
`transitionstart` are not supported, and every animation frame is a
|
|
`transitionstart` are not supported, and every animation frame is a
|
|
|
full page re-render (~25 ms on the host, several times that on the
|
|
full page re-render (~25 ms on the host, several times that on the
|
|
|
ION, so slides are choppy there).
|
|
ION, so slides are choppy there).
|
|
|
|
|
+ A non-uniform `background-size` uses the width scale for both axes.
|
|
|
|
|
+ CSS custom properties (`var()`: one document-wide table, expanded when
|
|
|
|
|
+ a sheet is parsed; definitions on `:root`/`html`/`body`/`*`/`:host`
|
|
|
|
|
+ win, a component-level definition applies only while no other rule
|
|
|
|
|
+ gives the name a different value, otherwise `var()` uses its fallback
|
|
|
|
|
+ -- Font Awesome's competing `--fa-width` values made every icon 100%
|
|
|
|
|
+ wide; rules touching such names are re-expanded per element against
|
|
|
that element's own matched rules, but values are not inherited from
|
|
that element's own matched rules, but values are not inherited from
|
|
|
ancestors' rules), percentage heights (against the containing block's definite
|
|
ancestors' rules), percentage heights (against the containing block's definite
|
|
|
height, `lay.cb_h`, with the viewport for `html`/`body`; used as a
|
|
height, `lay.cb_h`, with the viewport for `html`/`body`; used as a
|