SchOS/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nexoniarz 9735279970 acpi: take the RSDP from the loader when firmware gives it to us
find_rsdp() scanned the EBDA and 0xE0000-0x100000. That is a BIOS
convention, and UEFI firmware is under no obligation to leave a copy
there -- OVMF does not. So the kernel found no RSDP, no MADT and no
IOAPIC, and nothing routed IRQ 4. Serial output is polled, so the machine
booted all the way to a shell prompt and then ignored every key, which
reads as a broken console rather than a missing table.

The UEFI loader reads the RSDP out of the EFI configuration table,
preferring ACPI 2.0 for its XSDT, and leaves it at SCHBOOT_RSDP_ADDR --
the same low-memory hand-off block the e820 map already uses, now
described in include/schboot.h so the two sides cannot disagree.

The kernel validates it rather than trusting it: the BIOS path never
writes that slot, so there it holds whatever was in memory, and following
a wild pointer faults before there is anything to report the fault with.
Signature and checksum do that. It deliberately does not require 16-byte
alignment -- that rule is about searching the BIOS area, and OVMF's RSDP
sits at 0x3f77e014, so demanding it threw away the one address this code
exists to use.

UEFI now reports "acpi: 1 cpu, lapic at ..., ioapic id 0" and the ISO
boots to an interactive shell: uname, ls /bin (241), writing and reading
a file, ps, /proc/schfs -- all driven over serial.

BIOS unchanged: bootcheck 108 [ok], same ACPI line as before.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-09 22:02:57 +02:00
..
asm.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
buf.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
config_sinit.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
date.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
defs.h Map device registers with ioremap instead of assuming a low BAR 2026-08-09 21:31:01 +02:00
device.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
display.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
dma.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
e1000.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
elf.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
errno.h Rename Schunix to SchOS; the kernel becomes SchIFT 2026-08-09 14:09:59 +02:00
fb.h Rename Schunix to SchOS; the kernel becomes SchIFT 2026-08-09 14:09:59 +02:00
fcntl.h Rename Schunix to SchOS; the kernel becomes SchIFT 2026-08-09 14:09:59 +02:00
file.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
font.h Rename Schunix to SchOS; the kernel becomes SchIFT 2026-08-09 14:09:59 +02:00
fs.h init survives stray signals; commands are 4-34x faster 2026-08-09 15:54:05 +02:00
input.h Rename Schunix to SchOS; the kernel becomes SchIFT 2026-08-09 14:09:59 +02:00
irq.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
kbd.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
logo.h Fix the boot logo source, and put /etc under version control 2026-08-09 16:51:04 +02:00
memlayout.h Free every usable memory region, not one contiguous run 2026-08-09 20:03:51 +02:00
mmu.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
mp.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
param.h init survives stray signals; commands are 4-34x faster 2026-08-09 15:54:05 +02:00
pci.h Rename Schunix to SchOS; the kernel becomes SchIFT 2026-08-09 14:09:59 +02:00
posix.h Rename Schunix to SchOS; the kernel becomes SchIFT 2026-08-09 14:09:59 +02:00
proc.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
qr.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
schboot.h acpi: take the RSDP from the loader when firmware gives it to us 2026-08-09 22:02:57 +02:00
schfs.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
sleeplock.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
socket.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
spinlock.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
stat.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
syscall.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
text.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
theme.h boot: separate BIOS from UEFI 2026-08-09 16:00:03 +02:00
traps.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
ttf.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
types.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
uaccess.h Rename Schunix to SchOS; the kernel becomes SchIFT 2026-08-09 14:09:59 +02:00
usb.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
user.h schinit: a launchd-shaped process 1 2026-08-09 16:36:13 +02:00
virtio.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
x86.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
xhci.h Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00