feat: add new docs & tutorials; cleanup Main.cpp

This commit is contained in:
2026-07-08 16:56:05 +02:00
parent c35660be74
commit 922fafb930
16 changed files with 603 additions and 33 deletions
-13
View File
@@ -186,12 +186,6 @@ extern "C" void kmain() {
Fs::InitializeBootFilesystems(boot.modules);
// EXPERIMENT (wip/bt-deferred-init): the Bluetooth firmware bring-up is
// NOT run here -- the idle loop picks it up via ServiceDeferredInit()
// after boot, with CPU reservation, the IRQ-safe trace ring, and the
// bulk-pipelined download. Earlier deferral attempts (2026-07-05) made
// the AX211 stop answering after the first FC05; this run captures a
// ring trace of exactly what the event pipe delivers in deferred mode.
Hal::LoadTSS();
montauk::abi::InitializeSyscalls();
@@ -202,13 +196,6 @@ extern "C" void kmain() {
// Boot Application Processors (all subsystems ready, APs can schedule)
Smp::BootAPs(boot.smp);
// The Bluetooth firmware bring-up is deferred to the idle loop
// (ServiceDeferredInit from IdleOnce) so its download never stalls boot.
// Requires the HCI multi-packet event reassembly in Hci.cpp: without it,
// the next command races the tail of a multi-packet response and wedges
// the AX211 bootloader -- which only ever worked before because boot-time
// flanterm rendering accidentally paced the commands.
// Flush any stale PS/2 mouse bytes that accumulated during boot
// (edge-triggered IRQs can be lost while spinlocks disable interrupts)
Drivers::PS2::Mouse::FlushState();