diff options
| author | user <user@clank> | 2026-07-18 00:46:26 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-07-18 00:46:26 +0200 |
| commit | 3fd3454212dc1d4dc396e393812833ec2e15e41a (patch) | |
| tree | df5888d9d7dcc377b5d8925b3cf05a3b56742318 /src/programs.asm | |
| parent | refactor: c/ -> usr/, compiled program blobs out of the source tree (diff) | |
| download | gbos-3fd3454212dc1d4dc396e393812833ec2e15e41a.tar.gz gbos-3fd3454212dc1d4dc396e393812833ec2e15e41a.tar.xz gbos-3fd3454212dc1d4dc396e393812833ec2e15e41a.zip | |
kernel: dmesg-style boot spew before init spawns
Print everything the kernel knows implicitly at boot, Linux-flavored, on
the LCD console and mirrored over the link (gbhub logs each GB's boot):
gbos sm83 microkernel
console: CGB (boot a=$11) <- boot ROM's A/B, saved at entry
cart: mbc5, 1M rom, 128K sram <- our own cart header ($0147-49)
mem: 32K wram 16K vram 127B hram <- CGB constants
proc: 8 slots, 31 programs <- link-time table sizes
net: slip on link port, 4 sockets
fs: gbfs v3 mounted, 120/128 blk free <- bitmap popcount; 'formatted'
tty: 40x18 console, SELECT = osk on first boot
init: spawning pid 1
New src/dmesg.asm with kernel print helpers (kputc/kputs/kputhex/kputdec)
that bypass KPutc (no process context at boot). term_init now runs before
net/fs init so the spew is visible as subsystems come up.
Diffstat (limited to '')
| -rw-r--r-- | src/programs.asm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/programs.asm b/src/programs.asm index 92c736b..6dbc584 100644 --- a/src/programs.asm +++ b/src/programs.asm @@ -237,6 +237,7 @@ ProgramTable:: dw ProgDhcp db LOW(BANK(ProgIrc)), HIGH(BANK(ProgIrc)) dw ProgIrc +ProgramTableEnd:: ; ----------------------------------------------------------------------------- ; NameTable (ROM0) - command name -> program id, searched by sys_lookup. |
