|
|
@@ -16,7 +16,8 @@ Targets i586 (first-gen Pentium); runs under QEMU or on real hardware.
|
|
|
| `user/` | `ucmd_lib.h` (the ring-3 syscall wrappers) and `ucmd.ld` |
|
|
|
| `user/apps/<name>/` | One ring-3 program per directory: entry file `ucmd_<name>.c` plus private modules (`browser/` holds `browser.c`, `browser_html.c`, `js_*.c`, `svg_raster.c`; `chat/` holds `chat_login.c`; `gallery/` holds the real `gallery.c` behind the `ucmd_gallery.c` launcher; `hello/` has its own `hello.ld`) |
|
|
|
| `user/lib/<lib>/` | Ring-3 libraries: `libc`, `ngui`, `ufont`, `img`, `tls` (crypto incl. `wpa_crypto.c`), `uhttp`, `ujson`, `uwm` (`uwm_lib.c`), `wifi` (`wifi_store.c`, `wpa.c`); host tests live next to their library |
|
|
|
-| `tools/` | Host tools (`mkpack.c`, `mkrootfs.c`, `mkrtwtbl.c`, `kexec_send.c`, `netkexec_send.c`, `netmonitor.c`, `flash.sh`) and the QMP test scripts |
|
|
|
+| `tools/` | Host tools (`mkpack.c`, `mkrootfs.c`, `mkrtwtbl.c`, `mkcursors.c`, `mkicons.c`, `kexec_send.c`, `netkexec_send.c`, `netmonitor.c`, `flash.sh`, `xcursor_trim.py`), the QMP test scripts and `cursor_test.c` |
|
|
|
+| `assets/` | Imported assets: `assets/cursors/adwaita/` (the Adwaita 24 px Xcursor files) and `assets/icons/adwaita/` (the Adwaita symbolic SVGs used as UI icons), both LGPL-3 / CC-BY-SA-3.0, with README and licences |
|
|
|
| `host/` | Linux SDL3 browser harness |
|
|
|
|
|
|
The top-level `Makefile` builds everything. Objects go to `build/`
|
|
|
@@ -116,6 +117,7 @@ make test-font # host TrueType parser/rasterizer specimen test
|
|
|
make test-font-asan # ASan/UBSan variant
|
|
|
make test-svg # host tests for the inline-SVG rasterizer (ASan/UBSan)
|
|
|
make test-touchpad # host tests for the contact gesture engine
|
|
|
+make test-cursors # host test for the NBCUR1 cursor bundle (mkcursors output)
|
|
|
make test-wpa # host tests for the WPA2-PSK supplicant (SHA-1/PBKDF2/PRF/AES, 4-way)
|
|
|
make test-wifi-store # host tests for the saved-network list file
|
|
|
make test-chat # host tests: JSON parser, cookie jar, chat login parsers (ASan)
|
|
|
@@ -133,7 +135,10 @@ make clean
|
|
|
host files/sockets and `fork/exec` for `curl __serve`). Run
|
|
|
`./browser-host [--size WxH] [--root DIR] URL|FILE`, or
|
|
|
`./browser-host --headless --wait 3000 --shot out.ppm URL` to render the
|
|
|
- compat ladder without a display. It needs the multilib `lib32-sdl3`,
|
|
|
+ compat ladder without a display; `--keys 'clo{down}{enter}'` types into
|
|
|
+ the headless window (100 ms per key from 300 ms after the first frame;
|
|
|
+ `{enter} {esc} {tab} {bs} {del} {up} {down} {left} {right} {ctrl-l}
|
|
|
+ {wait}`). It needs the multilib `lib32-sdl3`,
|
|
|
`lib32-wayland` and `lib32-libxkbcommon`; host sockets replace the NebOS TCP
|
|
|
stack and the kernel/WM paths are not exercised.
|
|
|
- QEMU guests default to 512 MB (`QEMU_MEM`, e.g. `make run QEMU_MEM=1G`),
|
|
|
@@ -142,8 +147,10 @@ make clean
|
|
|
to `cmds_pack_gz.bin`, wrapped by `mkrootfs` with a one-sector `NBROOT1`
|
|
|
header into `cmds.img` (the 8 MB USB partition image) and `BOOTX64.EFI`.
|
|
|
The floppy images append `rootfs.bin`, built the same way from
|
|
|
- `cmds-lite.pack` (everything but `firmware/*`), because the ~1 MB WiFi
|
|
|
- firmware does not fit a 1.44 MB floppy. The kernel itself no longer
|
|
|
+ `cmds-lite.pack` (everything but `firmware/*`, the cursor bundle,
|
|
|
+ `install/kernel.bin` and `bin/browser.app`), because the ~1 MB WiFi
|
|
|
+ firmware and the ~500 KB gzip browser do not fit a 1.44 MB floppy; a
|
|
|
+ floppy boot runs the browser from `BROWSER` on `root.img`. The kernel itself no longer
|
|
|
carries the pack; the boot path loads it into RAM and `ramfs_init` takes a
|
|
|
private copy (`bin/<name>` mounted at `/ramfs`).
|
|
|
- The WiFi firmware `firmware/iwlwifi-7265D-29.ucode` (Chromebook) and
|
|
|
@@ -472,6 +479,8 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
input. `SYS_WIN_SCROLL` returns scroll accumulated for the canvas window
|
|
|
under the pointer, in pixels (`+dy` = later content), so every client sees
|
|
|
one unit independent of whether it came from the touchpad or a wheel.
|
|
|
+ `SYS_WIN_SET_CURSOR` (117) sets the caller's content cursor and
|
|
|
+ `SYS_WM_SET_CURSOR` (118) the WM's override (see the Mouse cursors bullet).
|
|
|
`SYS_WIN_RESIZE_SELF` (115) lets a canvas window grow or shrink itself and
|
|
|
`SYS_SCREEN_INFO` (116) returns the framebuffer dimensions; the panel uses
|
|
|
them to collapse to the pills or grow over an expanded section. The kernel
|
|
|
@@ -489,7 +498,7 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
press/release edges with a capture window, so a click that starts in a
|
|
|
window still gets its release after the pointer leaves. The userland
|
|
|
`ngui.c/h` immediate-mode toolkit builds on those: clipped RGB565
|
|
|
- primitives, buttons, text input, procedural icons and scrolling panes
|
|
|
+ primitives, buttons, text input, the Adwaita symbolic icons and scrolling panes
|
|
|
(`ngui_scroll`; `hide_bar` keeps wheel/key scrolling without drawing a
|
|
|
scrollbar).
|
|
|
`files` (`ucmd_files.c`) is its first user; `gallery` (`gallery.c`) is the
|
|
|
@@ -1004,9 +1013,75 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
`wifi.c` reloads on the next use. Tested by QEMU `usb-host` passthrough
|
|
|
on xHCI (C-cut chip, firmware 42.4): 2.4 + 5 GHz scan, WPA2-PSK connect
|
|
|
and DHCP through the control panel.
|
|
|
+- **Mouse cursors**: the set is GNOME's Adwaita theme (adwaita-cursors 51,
|
|
|
+ LGPL-3 or CC-BY-SA-3.0). `assets/cursors/adwaita/` holds its Xcursor
|
|
|
+ files trimmed to the 24 px images (`tools/xcursor_trim.py`; the X11 alias
|
|
|
+ symlinks and `X_cursor` are not copied); `tools/mkcursors.c` converts them
|
|
|
+ into one `NBCUR1` bundle (`include/cursor_abi.h`: header, per-shape
|
|
|
+ w/h/hotspot/frames/delay/offset, premultiplied ARGB8888 frames), packed as
|
|
|
+ `cursors/adwaita24.cur` in the **full pack only** (~146 KB, ~18 KB gzip;
|
|
|
+ the floppy lite pack had ~2 KB of room left, so a floppy boot keeps the
|
|
|
+ built-in 16x16 arrow of `cursor_shape.h`). `CURSOR_LIST` (an X-macro in
|
|
|
+ `cursor_abi.h`) is the shape id order, the bundle order and the CSS name
|
|
|
+ table: 35 CSS cursor names (`move` maps to Adwaita's `all-resize`, since
|
|
|
+ its `move` is a symlink to the arrow). `wait`/`progress` keep every
|
|
|
+ fourth of Adwaita's 60 x 16 ms frames (15 x 64 ms). `cursor.c/h` copies
|
|
|
+ the bundle out of the ramfs into its own pages after `ramfs_init()` and in
|
|
|
+ `ramfs_replace()` (which frees the old pack), calls `mouse_cursor_reload()`
|
|
|
+ and only then frees the previous copy. `wm.c` resolves the shape in every
|
|
|
+ `SYS_WM_POLL`: the WM override (`SYS_WM_SET_CURSOR`), else the cursor of
|
|
|
+ the window holding the pointer capture, else the content cursor
|
|
|
+ (`SYS_WIN_SET_CURSOR`, `struct window.cursor`) of the window under the
|
|
|
+ pointer (not on a normal window's 16 px grip), else `CURSOR_DEFAULT`; a WM
|
|
|
+ restart clears the override. The ring-3 WM overrides with resize arrows
|
|
|
+ on the grip and while resizing, the move cross during a title-bar drag
|
|
|
+ (once it moved), and a hand over launchers and the status area. ngui
|
|
|
+ resets `ui->cursor` to the arrow for every redrawn frame (begin returned
|
|
|
+ 1), `ngui_text_input` asks for the I-beam (not-allowed when disabled),
|
|
|
+ apps use `ngui_cursor_rect()`/`ngui_set_cursor()`, and `ngui_end_ex()`
|
|
|
+ sends it when it changed. The terminal sets the I-beam once; the browser
|
|
|
+ parses the inherited CSS `cursor` (the keyword after the last comma;
|
|
|
+ `br_style.cursor` is shape + 1, 0 = auto) and for `auto` uses a hand over
|
|
|
+ links, the I-beam over text fields and `progress` while loading; the
|
|
|
+ gallery's Cursors section shows every shape; `browser-host` maps the
|
|
|
+ shapes to SDL system cursors.
|
|
|
+- **UI icons**: ngui's icons are GNOME Adwaita symbolic icons
|
|
|
+ (adwaita-icon-theme 51, LGPL-3 or CC-BY-SA-3.0). `assets/icons/adwaita/`
|
|
|
+ holds the unchanged `*-symbolic.svg` files; `ICON_LIST` (an X-macro in
|
|
|
+ `include/icon_abi.h`: enum suffix, short name, theme file) is the icon id
|
|
|
+ order and the bundle order, so append only, and it generates
|
|
|
+ `enum ngui_icon` (`NGUI_ICON_FOLDER` .. `NGUI_ICON_MENU`,
|
|
|
+ `NGUI_ICON_COUNT`) and `ngui_icon_name()`. `tools/mkicons.c` rasterizes
|
|
|
+ each SVG with the browser's `svg_raster.c` into a 16x16 8-bit coverage
|
|
|
+ mask and writes one `NBICO1` bundle (16-byte header + masks, ~3.3 KB,
|
|
|
+ ~0.8 KB gzip) packed as `icons/adwaita16.icn` in **both** packs. Its XML
|
|
|
+ reader handles only what symbolic icons use (`<svg viewBox>`, `<g>`,
|
|
|
+ `<path>`, `<rect>`, `<circle>`, `<ellipse>`, fill/fill-rule/opacity) and
|
|
|
+ fails the build on transforms, strokes, `style` or unknown elements.
|
|
|
+ `ngui_icon()` reads the bundle once per process into a BSS buffer (not
|
|
|
+ the libc heap, so the browser's `heap_reset()` cannot free it; the read is
|
|
|
+ capped at the ids this build knows, so a newer bundle with appended icons
|
|
|
+ still works) and blends the mask tinted with the caller's colour, centred
|
|
|
+ in the rectangle and clipped. There is no line-drawn fallback: without
|
|
|
+ the bundle an icon is left blank (the old procedural drawings cost ~2 KB
|
|
|
+ of code per app and the floppy has a few hundred bytes to spare).
|
|
|
+ `browser-host` symlinks the repository's `icons/` into its `/ramfs` like
|
|
|
+ `fonts/`.
|
|
|
- **Mouse**: `mouse.c/h` — cursor move/draw shared by the PS/2 path
|
|
|
- (IntelliMouse including the 4th-byte wheel, Cirrus/Radeon hardware
|
|
|
- cursor) and the USB backend. Scroll from every backend accumulates in
|
|
|
+ (IntelliMouse including the 4th-byte wheel, Cirrus/Radeon/Intel hardware
|
|
|
+ cursor) and the USB backend. `cur_x/cur_y` are the hotspot; the image is
|
|
|
+ drawn with its top-left at hotspot minus the image hotspot, so it can be
|
|
|
+ partly off the top/left edge. The software cursor saves up to 32x32
|
|
|
+ pixels (`CURSOR_MAX_DIM`) and blends the premultiplied ARGB over them
|
|
|
+ (decoding RGB565 or BGR from the saved background); a shape change
|
|
|
+ presents the union of the old and new rectangles at once. Intel
|
|
|
+ Ironlake and Radeon copy the image into their 64x64 ARGB planes (Intel's
|
|
|
+ CURPOS takes sign-magnitude negatives; Radeon clamps the position at 0
|
|
|
+ and skips the hidden part with `HORZ_VERT_OFF` and a `CUR_OFFSET` shifted
|
|
|
+ by 256 bytes per row, like Linux's legacy path); Cirrus thresholds alpha
|
|
|
+ at 50% into its AND/XOR planes (white/black by luminance) and clamps the
|
|
|
+ position at 0. An image upload never runs from IRQ12, which only moves.
|
|
|
+ Animated shapes advance from `mouse_poll_update()`. Scroll from every backend accumulates in
|
|
|
`mouse_scroll_y` and `mouse_scroll_take()` hands it to the WM in pixels;
|
|
|
one PS/2 wheel notch is 48 px. `usbhid.c/h` — USB HID boot devices: find
|
|
|
+ configure a mouse and/or keyboard, arm their interrupt endpoints, decode
|
|
|
@@ -1268,8 +1343,8 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
is the variant that runs the bookkeeping without publishing the canvas, for
|
|
|
apps that poll input without redrawing.
|
|
|
- **Gallery**: `gallery.c` is the ngui widget gallery: typography and
|
|
|
- truncation, the drawing primitives and clip stack, the theme palette, all
|
|
|
- nine icons, live buttons/icon buttons, text fields (including a disabled,
|
|
|
+ truncation, the drawing primitives and clip stack, the theme palette, every
|
|
|
+ icon in `ICON_LIST`, live buttons/icon buttons, text fields (including a disabled,
|
|
|
read-only field) with event feedback, a nested draggable scroll pane and the
|
|
|
`ngui_cut_*` layout helpers. The real
|
|
|
ELF ships in the pack as `bin/gallery.app`; `ucmd_gallery.c` is the tiny
|
|
|
@@ -1285,7 +1360,8 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
with mirrored corner indices, notched corners and pixel-art J/Q/K portraits;
|
|
|
the back is the castle. The bar's "Cards" button launches
|
|
|
`/ramfs/bin/solitaire`.
|
|
|
-- **Browser**: the real browser ships in the pack as `bin/browser.app`
|
|
|
+- **Browser**: the real browser ships in the full pack as `bin/browser.app`
|
|
|
+ (not in the floppy lite pack: floppy boots load `BROWSER` from `root.img`)
|
|
|
(it links ngui, the full image library, inflate, TLS, uhttp and the
|
|
|
vendored QuickJS engine in `third_party/quickjs/`, but the rootfs is no longer
|
|
|
constrained by the kernel's low-memory window).
|
|
|
@@ -1387,6 +1463,25 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
so later visits to a bare domain go straight to its canonical scheme/host.
|
|
|
Remote stylesheets are cached under `/share/bcss-*` for the current boot, so
|
|
|
a reload or a fresh browser launch does not fetch the same CSS sheets again.
|
|
|
+ **Visit history and URL-bar autocomplete**: every page that finishes
|
|
|
+ loading (not `about:`, URLs under 512 bytes) is recorded in a 128-entry
|
|
|
+ BSS table (`hist_tab`: URL, title, visit count, stamp; the page heap is
|
|
|
+ reset per navigation, so it cannot live there). The stamp is a counter
|
|
|
+ carried in the file (max + 1 per visit), so it orders visits across
|
|
|
+ windows and reboots without a wall clock; a full table evicts the lowest
|
|
|
+ stamp. The boot's windows share `/share/bhist`, rewritten on every visit
|
|
|
+ after merging the current file in (max visits, newest title), and
|
|
|
+ `persist_tick()` copies it to `/data/BHIST.DAT` (8.3, plaintext
|
|
|
+ `NBHIST1\n` then `<visits> <stamp> <url>\t<title>\n`); startup reads
|
|
|
+ `/share` first, else `/data`. While the address bar has the focus a
|
|
|
+ dropdown lists up to six entries: an empty bar shows the top sites, typing
|
|
|
+ ranks prefixes of the URL (also without scheme or `www.`) over URL and
|
|
|
+ then title substrings, plus visits and recency. Typing at the end also
|
|
|
+ completes inline to the next `/` of the best prefix match, selected, and
|
|
|
+ Enter on that text opens the URL it came from (scheme included).
|
|
|
+ Up/Down preview a row in the bar, Delete forgets the highlighted row,
|
|
|
+ Esc closes the list (and drops the completion), a click opens a row.
|
|
|
+ The in-session back/forward stack (`history[]`, 16 entries) is separate.
|
|
|
Images are prefetched up to four at a time and only when their measured
|
|
|
position is within the viewport plus 160 px; deferred images are loaded as
|
|
|
the page scrolls. Network work runs in up to `FETCH_WORKERS` (four)
|
|
|
@@ -1627,7 +1722,21 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
`value`/`checked`/`selectedIndex` properties read/write the live control
|
|
|
state. Forms expose `elements`/`length`/`submit()`/`reset()`; typing and
|
|
|
checkbox/select changes fire `input` and `change`, and submit/reset fire
|
|
|
- their cancellable events. Flex/grid, basic tables, inline SVG and CSS
|
|
|
+ their cancellable events. A control with author CSS (background, border
|
|
|
+ or radius -- `background:transparent;border:none` counts, which is why
|
|
|
+ `background: transparent|none` is a real cascaded value, `PROP_BG_NONE`)
|
|
|
+ is painted with that background/border/radius and text colour and sized
|
|
|
+ from its padding, height, min-width and margins (buttons border-box);
|
|
|
+ unstyled controls keep the ngui theme look. Scripting is always on, so
|
|
|
+ `<noscript>` is a raw-text, `display:none` element: google.com's
|
|
|
+ noscript meta refresh plus `table,div,span,p{display:none}` used to hide
|
|
|
+ the whole page. URLs (`BR_URL_MAX`, `href`/`src` attributes, the helper
|
|
|
+ request/meta files, `UHTTP_PATH_MAX`) hold 4 KB: google.com's script URL
|
|
|
+ is ~3.7 KB. Inline `<style>` text is collected up to 256 KB
|
|
|
+ (`BR_CSS_SIZE`; google.com inlines ~94 KB). Media features with a known
|
|
|
+ answer are evaluated (`forced-colors: none`, normal contrast,
|
|
|
+ `hover: hover`, `pointer: fine`); unknown ones stay true. Flex/grid,
|
|
|
+ basic tables, inline SVG and CSS
|
|
|
variables are supported (see known issue 22 for the remaining CSS and DOM
|
|
|
gaps). `SYS_SPAWN`
|
|
|
loads FAT ELFs through `kmalloc` now (the old 16 KB `fat_load_buf` is gone)
|
|
|
@@ -1685,7 +1794,7 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
deletion); uhttp stores every `Set-Cookie` (redirects too), sends matching
|
|
|
cookies on each hop, splits requests/bodies into 1024-byte TLS records or
|
|
|
MSS-sized TCP sends, takes `accept`/`extra_headers`, follows up to 8
|
|
|
- redirects with 1 KB paths and 1.5 KB header lines, and treats 1xx/204/304
|
|
|
+ redirects with 4 KB paths and 4.5 KB header lines, and treats 1xx/204/304
|
|
|
as bodyless. `ujson.c/h` is the arena JSON DOM parser (caller-owned node
|
|
|
and string pools, \uXXXX/surrogates to UTF-8, depth 48). Host tests:
|
|
|
`make test-chat`; `tools/mock_chat.py` mocks Chat + the OIDC provider on
|
|
|
@@ -1884,9 +1993,11 @@ 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 high-memory legacy path supports up to 2 MB (known issue 8). The UI
|
|
|
font subsets live in the pack under `fonts/`, the WiFi firmware under
|
|
|
-`firmware/`, and the flat kernel at `install/kernel.bin` (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;
|
|
|
`install self` reads it). The floppy images use `cmds-lite.pack` (no
|
|
|
-firmware and no `install/kernel.bin`, to stay inside 1.44 MB).
|
|
|
+firmware, cursor bundle, `install/kernel.bin` or `bin/browser.app`, to stay
|
|
|
+inside 1.44 MB; the browser launcher falls back to `BROWSER` on `root.img`).
|
|
|
|
|
|
`rootfs.bin` is the floppy append (header + lite pack); `rootfs-full.bin`
|
|
|
is the header + full gzip pack used by `make net-install`; `cmds.img` is the
|
|
|
@@ -2075,10 +2186,20 @@ briefly reporting disconnected.
|
|
|
bounded wait for the BIOS-owned semaphore to clear, and only programs
|
|
|
`CONFIG`/`DCBAAP`/scratchpads/`CRCR`/`ERST` once the post-reset controller
|
|
|
is halted. Port reset clears stale change latches, waits for `PRC` then
|
|
|
- `PED`, and adds the 10 ms USB2 reset-recovery delay. The BSR Address
|
|
|
- Device uses the port-speed EP0 max packet size (64 for high/full speed,
|
|
|
- 8 for low speed); using 8 for a high-speed slot leaves EP0 unusable on
|
|
|
- real xHCs. Enumeration uses the traditional scheme: **SET_ADDRESS before
|
|
|
+ `PED`, and adds the 10 ms USB2 reset-recovery delay. Only a USB2 port
|
|
|
+ is disabled (PED write) before the reset: on a SuperSpeed port that puts
|
|
|
+ the link into SS.Disabled, which a hot reset does not leave. Address
|
|
|
+ Device programs the speed's fixed EP0 max packet size (8 low, 64 high,
|
|
|
+ 512 SuperSpeed) whatever the core passes; only a full-speed EP0 takes the
|
|
|
+ core's 8-byte first guess and is then corrected with an **Evaluate
|
|
|
+ Context** once the core reads the real `bMaxPacketSize0`. Without that
|
|
|
+ the VIA VL805 (`1106:3483`) on the 970A-DS3P kept an 8-byte EP0 for a
|
|
|
+ high-speed stick, and the 18-byte descriptor read failed with Babble
|
|
|
+ Detected, so a USB-booted stick never became `usb0` for `install`. The
|
|
|
+ Setup TRB's Transfer Type field is only set on xHCI >= 1.0 (reserved in
|
|
|
+ 0.96). The init line (`xhci: <pci id> hci <ver> ...`) and every failed
|
|
|
+ control transfer (request, completion code, PORTSC, slot/EP0 state) are
|
|
|
+ always logged to COM1/netmon. Enumeration uses the traditional scheme: **SET_ADDRESS before
|
|
|
the first descriptor read**. The xHCI SET_ADDRESS intercept creates the
|
|
|
slot in the Enabled state and issues Address Device with **BSR=0**
|
|
|
directly (Enabled -> Addressed), never leaving the slot in the Default
|
|
|
@@ -2348,8 +2469,9 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
~204 KiB gzip), the RTL8821A firmware and tables (31,898 + 11,668
|
|
|
bytes) and `install/kernel.bin` is ~1.88 MiB gzip (~120 KB under the
|
|
|
cap), inflating to ~3.6 MB, which adds about
|
|
|
- half a second to the boot; the floppy lite pack is ~930 KiB gzip and
|
|
|
- deliberately omits the firmware and `install/kernel.bin`. `libdeflate-gzip -12` is still preferred. Over
|
|
|
+ half a second to the boot; the floppy lite pack is ~580 KiB gzip and
|
|
|
+ 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
|
|
|
115200 serial a raw `cmds-dev` pack (3.5 MiB) now takes about four
|
|
|
minutes; use `net-cmds`.
|
|
|
9. SMP is **ACPI/MADT only**: no Intel MP-table fallback, so a Pentium II SMP
|
|
|
@@ -2417,9 +2539,9 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
(8 slots x 1 KB), and the FAT listing cache another 5 KB. The command
|
|
|
pack is out of the kernel now; after the WiFi/netmenu/install code and the
|
|
|
per-connection TCP queues moved to the frame allocator, `_end` is
|
|
|
- ~0x8a440 (with the 6200/6300 DVM layer, the RTL8821AU driver, the
|
|
|
+ ~0x8eb20 (with the 6200/6300 DVM layer, the RTL8821AU driver, the
|
|
|
8×16 boot-console font, the IOAPIC/AMD-thermal additions and the safe
|
|
|
- AMD MTRR path), ~23 KB below the `0x90000` wall, and the remaining limit
|
|
|
+ AMD MTRR path and the 32x32 cursor save buffer), ~5 KB below the `0x90000` wall, and the remaining limit
|
|
|
is kernel code/buffers only.
|
|
|
|
|
|
22. Browser limits: JavaScript runs inline and external classic scripts on
|
|
|
@@ -2487,7 +2609,12 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
painting without moving flow (and joins the deferred stack when it has a
|
|
|
z-index), and `position:sticky` supports top and
|
|
|
bottom offsets and clamps to the containing block. `prefers-color-scheme`
|
|
|
- media queries are ignored so the page's base palette is used. Block
|
|
|
+ media queries are ignored so the page's base palette is used, and
|
|
|
+ `forced-colors`/`prefers-contrast`/`hover`/`pointer` are answered for a
|
|
|
+ normal-contrast mouse screen. A flex row narrower than 160 px is still a
|
|
|
+ row when its items fit, and `align-self` overrides the row's
|
|
|
+ `align-items`; a clamped `max-width` makes `margin: auto` centre the
|
|
|
+ box. Block
|
|
|
`width`/`max-width`/`min-width`, content-box `height` with `min`/`max`,
|
|
|
`box-sizing: border-box`, `margin: 0 auto` and `calc(percent ± px)`
|
|
|
work in widths, margins/padding, heights and min/max;
|
|
|
@@ -2804,3 +2931,17 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
for a few seconds on the first `wifi` command. A plugged-in stick
|
|
|
always wins over the built-in Intel card; there is no command to pick
|
|
|
the Intel card while it is attached.
|
|
|
+
|
|
|
+39. Mouse cursor limits: one fixed 24 px theme (no HiDPI size selection or
|
|
|
+ user theme switch), no CSS `url()` cursors (the fallback keyword after
|
|
|
+ the last comma is used) and no `none`/hidden cursor (it maps to the
|
|
|
+ arrow). Floppy boots have only the built-in 16x16 arrow, because the
|
|
|
+ lite pack has no room for the ~18 KB gzip bundle. Cirrus is
|
|
|
+ two-colour, and its position cannot go negative, so near the top/left
|
|
|
+ edge the hotspot is off by up to the image's hotspot offset. The
|
|
|
+ Intel/Radeon image upload (16 KB, plus `wbinvd` on Intel) also runs
|
|
|
+ for every spinner frame; both paths were written from the Linux
|
|
|
+ drivers and only Cirrus and the software cursor are tested in QEMU.
|
|
|
+ The cursor shape follows the WM poll, so it can lag the pointer by
|
|
|
+ one WM loop. The 4 KB save buffer and the cursor code (~8 KB in all) leave `_end` at
|
|
|
+ ~0x8eb20, ~5 KB below the `0x90000` wall.
|