Added
Boot options for real hardware: the ISO menu now waits 3 s and adds boot log on screen (
verbose, no splash) and no USB (nousb). The kernel reads the entry'scmdline:and logsboot: options "...".xHCI on real hardware, checked on an AMD machine booting the ISO from a USB stick: low-power controllers are woken (
was in D3, waking it), dead ones skipped (does not answer), the firmware gets 5 s to release one, and Intel ports are moved from EHCI to xHCI.USB hubs and hot plug: devices behind USB 2 and USB 3 hubs (
usb-hub:log line), and devices plugged in or pulled out while running; a pulled stick's volumes are released and its block device removed. Newstorage::forget_disk,partition::drop, smokesusb-hub-smokeandusb-hotplug-smoke.USB sticks: Bulk-Only mass storage as block devices
usb0,usb1... (usb-storage:log line), with model and serial in Disk Management, which mounts them like any FAT disk.diskmgmt-smokenow also attaches a USB stick (serialSXUSB0) and mounts, writes and remounts it.USB keyboards, mice and tablets (
usb-hid), next to PS/2 and virtio ones: none silences the others, and a keyboard plugged in later works. Smokesusb-kbd-smoke,usb-pointer-smokeandusb-mouse-smokeboot without an 8042 (no_ps2); smokes get a USB mouse unless they ask for the tablet.USB: xHCI controllers and device enumeration. At boot every xHCI controller is taken from the firmware and started (
xhci:log line), and the devices on its root ports are addressed and configured (usb: port <n> <vid>:<pid> ...). No class drivers yet. Seedocs/roadmaps/done/USB_ROADMAP.md.QEMU machines with USB:
./build.sh run --usb(orSAVANXP_USB=ON) adds aqemu-xhcicontroller with a USB keyboard and tablet; smokes can ask for them (usb) and for a FAT USB stick (usb_stick_mib, serialSXUSB0). No driver yet: seedocs/roadmaps/done/USB_ROADMAP.md.System Properties keeps a short note of thanks behind its logo.
Disk Management mounts FAT volumes, owned by the person who mounts them (
fs::Owner,fs::Driver::adopt_owner). New host toolfat-image(create,put) builds FAT images with the kernel's FatFs; smokes can attach one (fat_disk_mib, serialSXFAT0).A FAT driver, and the boot volume at
/boot: FAT12/16/32 with long names on FatFs (fat::driver()), read and write. At boot the first FAT volume holdingboot/kernel.elf, ESPs first, is mounted at/boot(storage: /boot is <device>), writable by the system only, never unmounted. New host testfat-volume-test. Seedocs/roadmaps/open/FAT_ROADMAP.md.Disk Management (
/bin/diskmgmt, a SUN program under System): the volumes as a list and every disk as a map of its partitions and free space, with Properties (model, serial, GUIDs, usage). Initialize Disk (GPT), New Partition, Format (SxFS), Delete Partition, and Mount/Unmount under/mntrun elevated, never on the ESP, the disk holding/or an MBR disk. New callsSXN_SYS_STORAGE_*(SNAPSHOT, READ, WRITE, RESCAN, MOUNT, UNMOUNT); volumes can now be unmounted (fs::release). Smokes can attach a blank disk (extra_disk_mib). Seedocs/userland/DISK_MANAGEMENT.md.Files: Explorer toolbar and address bar: Back, Forward, Up, Delete, Properties and Views, an editable address bar, a Go menu and a Properties dialog (Alt+Left/Right, Alt+Enter). SXGUI gains
sxgui_toolbar_button(SXGUI_FLAG_TOOLBAR,SXGUI_FLAG_DROPDOWN) andsxgui_separator.Files: Large Icons view, now the default, next to Details (View menu, remembered in
filesapp.cfg), without the ".." entry. Folders open with nothing selected and a click on the background clears the selection. SXGUI gains theSXGUI_ICONVIEWwidget (sxgui_iconview,sxgui_iconview_item_rect),SXGUI_FLAG_EMPTY_SELECTIONandmime_icon_large. Seedocs/desktop/FILES.md.Display Properties (
/bin/display, fixed size), opened from the desktop's Properties or Program Manager's Options: any BMP as wallpaper, Center/Tile/Stretch and a colour (desktop.cfg, wallpapers in/wallpapersfromtools/gen_wallpapers.py; replaces Change Wallpaper). The Settings tab changes the resolution live with a 15-second "Keep these settings?" and saves it indisplay.cfg(SAVANXP_WM_WINDOW_ACTION_SET_DISPLAY_MODE,gfx_set_display_mode,sxgui_trackbar). Seedocs/desktop/DISPLAY_PROPERTIES.md.Desktop icons and shortcuts: the desktop shows
/users/<name>/Desktopas a grid of icons (created with Command Prompt, Files and Notepad). Double click opens, drag moves, F2 renames, Delete asks first; right click opens the background's menu (Arrange Icons, Refresh, New Folder, New Text Document, Properties) or the icon's (Open, Rename, Delete). Shortcuts are.sxlnktext files (target=,args=,workdir=,icon=). Seedocs/desktop/DESKTOP_ICONS.md.Context menus in applications: an application may open a popup owned by its window (
SAVANXP_WM_WINDOW_ROLE_POPUP), and SXGUI shows one withsxgui_context_menu_open(alsosxgui_popup_menu_*,sxgui_listbox_row_at; SUN:sxnwm_popup_open). Files gets Open, Send To Desktop, Rename... and Delete on a right click, Shift+F10 or the Menu key, and opens a folder given as its argument; Task Manager gets End Process (Tree) and Switch To / End Task on its rows.The kernel lock reports its contention:
smp-stats:lines next totimer-stats:, per entry point (syscall, timer, irq, ...), with the longest hold and the syscall behind it. Seedocs/roadmaps/open/SMP_ROADMAP.md#reading-smp-stats.Task Manager: Applications tab (End Task, Switch To, New Task). Any WM client can read the task list and switch to or close a task (
SAVANXP_WM_WINDOW_ACTION_TASK_LIST/_ACTIVATE/_CLOSE,sxnwm_task_*); closing takes the same user or the system. Seedocs/userland/SYSTEM_MONITORING.md.Task Manager: one CPU graph per core and kernel times (View → CPU History, Show Kernel Times, red under the total); Totals gains Threads.
tools/shoot.sh --smp Nboots more cores.Task Manager: User Name, CPU Time and Threads columns, sort by header, End Process Tree (elevates once for the rest of the tree). SXGUI list headers can be clicked (
SXGUI_COLUMN_CLICKABLE,SXGUI_ACTION_HEADER,sxgui_header_column).SUN programs can use the SXGUI toolkit through
sxn/sxngui.h(sxngui_app_init,sxngui_app_run), with dialogs in owned windows (sxnwm_window_open,sxnwm_poll_owned_input) andsxnwm_set_cursor_shape. Seedocs/desktop/PLATFORM_GRAPHICS.md.SUN programs can read the process table and the system (
SXN_SYS_PROCESS_SNAPSHOT,SXN_SYS_SYSTEM_INFO,sxn_process_snapshot,sxn_system_info) and ask for elevation (sxn_elevateinsxn/sxnelevate.h).savanxp_process_infogainskernel_ticks,thread_countanduid; POSIXproc_infokeeps the old size. See slice 27 indocs/kernel/KERNEL_NATIVE_API.md.SxFS records an owner, a group and a mode on every inode (
SXFS_FEATURE_OWNERSHIP, no format version bump). An existing image is stamped with the default of each path by the build or on its first mount; nothing enforces them yet.fscheckreportsownership_recordedandunowned_inodes;sxfs-cli extractandapplycarry ownership (ownerlines) through a compaction. Seedocs/kernel/USERS_AND_PERMISSIONS.md.Every process carries an identity, and the VFS checks it on every path operation; everything still runs as the system.
setuid/seteuid/setgidonly lower,chmod/fchmod/chown/accesswork,umaskapplies, andstatreports owner, mode andst_mtime(newSTAT_EX,FSTAT_EX,OPEN_MODE,MKDIR_MODE)./dev/input0and/dev/mouse0are 0600. Newidtestin the core smoke. Seedocs/kernel/USERS_AND_PERMISSIONS.md.Elevation: a program can run with the system's rights once the user says yes on a prompt windowd draws above every window, answered only by the keyboard and mouse it reads. New broker
elevationd(init starts it),elevate()in the libc,INPUT_IOC_CLAIM(windowd is the only reader of/dev/input0and/dev/mouse0),SXN_SYS_PORT_CONNECT_EX/_ACCEPT_EXandSXN_SPAWN_FLAG_IDENTITY. Newelevation-smokeanswers it with real keys over QMP. Seedocs/kernel/USERS_AND_PERMISSIONS.md#elevation.SxGL, the 3D rasterizer: a documented OpenGL 1.1 fixed-function subset in software (
sxgfx/sxgl.h), beside SxGFX and linkable from POSIX and SUN programs alike. Clipping, top-left fill rule, lighting, perspective-correct textures, fog, alpha test, blending and scissor; the program presents whatsxgl_swap_buffersreports. New host testsxgl-testwith a triangles-per-second benchmark. Seedocs/desktop/SXGL.md.Nightwood, the first game written against SUN (
/bin/nightwood.sxe, Games): a forest at night drawn with SxGL, eight photographs to find and something that follows, with mouse look and synthesized sound. Newnightwood-smoke(nightwood --selftest) andtools/shoot.sh --scenario nightwood. Seedocs/userland/NIGHTWOOD.md.SUN programs can play sound (
sxn/sxnaudio.h):audiodalso listens on the native portaudiod, and a SUN stream reaches it there, or writes/dev/audio0directly when no daemon runs. The wire protocol moved toaudio/audiod_protocol.h. Seedocs/media/AUDIO_DAEMON.md#sun-clients.A window can capture the pointer (
sxnwm_set_pointer_capture): while it is the active window the cursor hides and it gets relativeSAVANXP_WM_EVENT_POINTER_MOTION; losing the focus suspends the capture. Seedocs/desktop/WM_SUBSYSTEM.md#pointer-capture.SAVANXP_QEMU_DISPLAY=sdlopens QEMU with SDL instead of GTK, whose grab cannot confine the host pointer on Wayland; with SDL a captured pointer stays in the window. Seedocs/build/BUILD_LINUX.md#the-qemu-window.
Changed
The user's settings live in
/users/user/Settingsinstead of loose in the profile:savanxp_settings_pathmakes the folder and moves an older loose.cfg/.iniin on first use; the system's stay at the root. Seedocs/kernel/USERS_AND_PERMISSIONS.md.The development boot drive is attached as
fat:<dir>,snapshot=on(tools/run_qemu.py): the guest can write/boot, and its writes are discarded at exit instead of reachingbuild/image.Only a driver marked
can_be_rootmounts/(fs::Driver::can_be_root; SxFS is): a FAT boot drive ahead of the system disk can never become the root. FatFs R0.16 is vendored undervendor/fatfs/. Seedocs/roadmaps/open/FAT_ROADMAP.md.GPT tables are checked before they are used: both CRCs, falling back to the backup header (
partition: <disk>: primary GPT damaged, using the backup); a disk with neither is left whole. The AHCI and ATA boot lines show each disk's model and serial.The version shows the build number,
0.4.2 (Build 588)(the commit count): boot screen, kernel log, desktop stamp, About, the console banner and a newbuildline insysinfo. Master now carries the next version (0.4.2); the build warns ifversion.hnames an already tagged release.The Start menu opens without the one-second wait: it keeps the catalog and rebuilds it only when
progman_registry_disk_signature()changes, and a rebuild opens each binary once. The SDK gainsstruct sxe_file(sxe_file_open,sxe_file_read_section,sxe_file_load_meta,sxe_file_load_icons), which reads the ELF's section table in one go. Seedocs/userland/SXE_FORMAT.md.Smokes and
tools/shoot.shboot at the default resolution whatever the developer chose in Display Properties:tools/smoke_profile.pyremovesdisplay.cfgfrom the disposable copy, so abuild/disk.imgat 1024x768 no longer failstaskbar-smokeor the visual scenarios.Clicking the desktop gives it the keyboard:
windowdhas a desktop focus state, so the icons get arrows, Enter, Delete and F2. A right press activates the window it lands on and closes popups, as a left press does.A kernel panic or ring-0 fault stops every core by NMI and says so (
smp: other cores stopped (n/n)).POWER_IOC_PANICon/dev/power(system only) andpanic-smokeexercise it.Device interrupts go to the APs once they schedule (
ioapic: GSI n (vector v) -> lapic m); the BSP keeps the tick's work, MSI-X stays on it. uACPI gets real spinlocks, mutexes and events.QEMU boots two cores by default (
build.sh,tools/run_qemu.py,tools/run_smoke.py,tools/shoot.sh,SAVANXP_SMP), smokes included;--smp 1keeps one. Seedocs/roadmaps/open/SMP_ROADMAP.md#two-cores-by-default.Task Manager is a SUN program,
/bin/taskmgr.sxe, built fromsystem/taskmgr; the POSIX/bin/taskmgris removed from the image. It looks and behaves as before, and its idle window no longer wakes up between refreshes.SXN_SYS_TERMINATEfollows kill's rule: a descendant, a process of the caller's uid, or any when the caller acts as the system; otherwise-EPERM(was-ECHILD). Idle and init are-EACCES, the caller itself-EINVAL.The taskbar looks like Windows NT 4.0's. Two-pixel button bevels (24 px high), a dithered bold button for the active window, and one sunken tray well holding the layout, speaker and clock as flat cells.
Gears draws with SxGL instead of its own rasterizer: geometry crossing the near plane is clipped, and shared edges are no longer drawn twice.
The elevation prompt shows every argument of the program it would run, escaped and quoted so what is drawn is what runs, and grows to fit them; a request that does not fit on the screen fails with
E2BIGinstead of being cut off. Seedocs/kernel/USERS_AND_PERMISSIONS.md#elevation.The desktop runs as the user (uid 1000), and so does everything started from it; windowd and compositord stay the system's.
SAVANXP_PROC_FLAG_SYSTEMreports which processes act as the system. Seedocs/kernel/USERS_AND_PERMISSIONS.md.Add or Remove Programs asks for elevation to uninstall when run by the user, through
appwiz --uninstall.Settings live in the user's profile,
/users/user, which init makes at boot:progman.ini,desktop.cfg,mines.ini,assoc.ini,audio.cfg,keyboard.cfg... are found withsavanxp_settings_path(HOMEsays the same), falling back once to the old copy at the root. Doom saves in$HOME/doom. New/dev/keyboardfor the layout;killof another person's process and setting the clock areEPERMfor the user. Seedocs/kernel/USERS_AND_PERMISSIONS.md.The system runs from its disk, mounted at
/:/bin,/liband/gamesare the SxFS volume's, and the initramfs moved to/rescue, where init starts from when no disk mounts.PATHis/bin:/rescue/bin; the loader and--dynamic-linkeruse/lib./disk/...stays as an alias of/, so binaries already installed keep working. The boot log readsroot mounted. Seedocs/kernel/FILESYSTEMS.md.The initramfs is a rescue system (8.4 MB, from 45 MB): with no disk, init keeps
/rescue/bin/shon the text console. Newrescue-smokeboots with no disk (--no-disk). Add or Remove Programs subtracts the build's/system/programs.txt.The kernel is written against
namespace arch(arch/cpu.hpp, implemented byarch/x86_64), and x86 code lives only underarch/andinclude/arch/: drivers share one port I/O header (arch/x86/io.hpp) and call named CPU operations (arch::memory_barrier,arch::cpu_relax,arch::load_page_table_root, ...) instead of inline assembly. Seedocs/kernel/ARCH.md.The userland runtime's units are listed once, in
subsystems/posix/sdk/v1/runtime/units.txt; CMake,tools/build-user.shand the Doom, ccleste and FFmpeg ports read it (tools/lib/runtime_units.sh). Seedocs/build/BUILD_CMAKE.md.SXGFX, SXCHROME and SXGUI-C left the POSIX SDK for the platform layer (
system/gfx,include/sxgfx), with the pixel primitives and fonts split out of the POSIX window client. The toolkit takes clipboard and clock from astruct sxgui_host(sxgui_set_host); POSIX programs get theirs automatically.savanxp/gfx2d.h,sxchrome.handsxgui.hkeep working for POSIX code. Out-of-tree builds compilesystem/gfx/*.c. Seedocs/desktop/PLATFORM_GRAPHICS.md.The WM protocol headers moved to
include/wm/(wm/wm_protocol.h,wm/wm_shell_protocol.h), so SUN'ssxnwm.hand the native services no longer include the POSIX SDK.savanxp/wm_protocol.handsavanxp/wm_shell_protocol.hforward to them. Seedocs/desktop/PLATFORM_GRAPHICS.md.The VFS reaches filesystems only through
fs::Driver, which now carries the file, path and volume operations;sxfsis one registered driver andvfs.cppno longer names it. No mount point can be removed or renamed, not just/disk;syncflushes every mounted volume. ATA's polling diagnostics log in English viablock::report_health. Seedocs/kernel/FILESYSTEMS.md.Input drivers register with the kernel's input layer (
input::register_driver), and the keyboard logic (modifiers, locks, ES/EN layouts) is shared instead of living in the PS/2 driver. virtio-input no longer poses as PS/2, andinput_readyis true with any keyboard.kbd-smokealso checks Caps Lock and AltGr. Seedocs/kernel/INPUT.md.SUN programs are named
<name>.sxeon disk (/bin/console.sxe,/bin/windowd.sxe), and the shell finds them without the extension.tools/stamp_osabi.pyrefuses a native image without.sxeor.sxmeta, andbuild-user.sh --nativeinstallsNAME.sxe. Installing a program retires its other name in/disk/bin(sxfs-cli rm -f). Seedocs/userland/SXE_FORMAT.md.
Fixed
Booting without a PS/2 controller hung in
ps2initialization; it now logsps2: no 8042 controller.A FAT volume over a whole disk is no longer read as an MBR: its boot sector ends in
0x55AAtoo, andpartition::sliced its boot code as a table. Such a disk now has no scheme and mounts whole.Asking for a volume's usage no longer stalls the system: SxFS counted its used sectors one bit at a time, a third of a second under the kernel lock on a 1 GiB volume, each time Task Manager,
sysinfoordfasked; mouse input was lost meanwhile. It now counts 64 bits at a time (about 100 times faster).POSIX
openwith no access mode returnsEINVALinstead of a read handle that skipped the permission check (a0600file or an unreadable directory could be read). The kernel keeps it as a query open (KERNEL_SECURITY.md, E1).A port can no longer be sent over a pipe (
PIPE_SEND_HANDLEreturnsEINVAL): queued on its own pending connection it kept itself, its name and one of the 16 port slots until reboot (E2).A program started by name from the Command Prompt shows its own title and icon (
Calculator, notcalcwith the generic icon): the window runtime finds a bareargv[0]in/binand/rescue/bin. Thetaskbarscenario oftools/shoot.shfollows the NT 4 taskbar's geometry again.The APs start on processors without SMEP (QEMU
-cpu qemu64): since v0.4.0 they halted at start-up and the system ran on one core.Four cores under QEMU TCG no longer crawl: the kernel lock spins without
pausethere (cpu: QEMU TCG, the kernel lock spins without pause);smoke --smp 4passes instead of timing out.Task Manager's End Process works on processes that are not the user's: it asks for elevation and the elevated
taskmgr --end <pid>ends them; a refusal shows "Unable to Terminate Process" instead of failing silently.elevation-smokecovers it.A held key no longer answers the elevation prompt: the keyboard core marks repeats with the new
SAVANXP_KEY_MOD_REPEATbit, and the prompt ignores them.Add or Remove Programs refuses a
data_dirunder/users, so uninstalling a program cannot delete the profiles; andcompositordtakes as its window manager only a system process.elevation-smokeruns from a clean checkout:tools/qmp_elevation.py, which answers its prompts, was never tracked.ports/ffmpeg/runtime.shbuilds again: it still compiled SXGFX and SXGUI-C from the POSIX runtime directory they left forsystem/gfx.taskbar-smokepasses again. It compares the muted speaker with its icon file instead of a colour from before the Windows 2000 icon redraw, and--virtiois refused up front: the smoke needs a relative pointer.CMake uses the
python3onPATH, so a versioned interpreter earlier inPATHwithout Pillow (uv, pyenv) no longer breaks a fresh configure ortools/verify_doom_persistence.sh. Override with-DPython3_EXECUTABLE.