Commit Graph

21 Commits

Author SHA1 Message Date
mintsuki e0f0d96875 LAPIC: Fix bug where wrong CPUID bit was tested to check for APIC 2020-10-26 17:37:35 +01:00
mintsuki 57ca321cca SMP: Fix struct duplication bug 2020-10-25 12:45:49 +01:00
mintsuki 2ab2c153f5 Change return type of cpuid(), add APIC existance check, do not assume BSP APIC ID to be 0 2020-10-24 08:07:46 +02:00
mintsuki 5bd25ac520 Remove instances in which conv_mem_alloc() was implicitly used as a realloc() as that subtly introduces bugs 2020-10-20 09:01:19 +02:00
mintsuki ebb543f87c Remove conv_mem_rewind() as it could be a dangerous source of bugs, modify code that used it accordingly 2020-10-20 08:59:19 +02:00
mintsuki 21ff1c452f Remove eccessive memmap dumps and add stivale and stivale2 module loading feedback messages 2020-10-16 16:07:31 +02:00
mintsuki 6b75c3bd8b Move A20 handler out of bootsector and into stage 2 2020-10-16 16:06:39 +02:00
mintsuki 037e19768f Move cpuid() to cpu.h 2020-10-12 21:50:19 +02:00
mintsuki b6d170367a Extend x2APIC check as per VT-d specification 2020-10-12 21:42:22 +02:00
mintsuki c913a7ccf4 Fix up some inline assembly in sys/cpu.h 2020-10-01 20:05:41 +02:00
mintsuki e886a6fa76 stivale2: Finish implementing x2APIC support 2020-09-27 01:32:47 +02:00
mintsuki b733ef25ef Fix stivale2 SMP tag issue 2020-09-26 17:12:52 +02:00
mintsuki a58fd6bd3c Fix stivale2 SMP tag issue 2020-09-26 17:03:51 +02:00
mintsuki 0dc73b3529 Fix conv_mem_alloc bug introduced by e721c3c 2020-09-26 15:41:37 +02:00
mintsuki f245d0e280 Reorganise headers 2020-09-21 12:15:55 +02:00
mintsuki e721c3c814 Reorganise pmm code 2020-09-20 12:03:44 +02:00
mintsuki f59a3d67d6 Change how smp works a little 2020-09-20 10:28:39 +02:00
mintsuki 4927abcfaf Adjust stivale2 SMP spec a little to add an extra argument to the smp_info struct 2020-09-19 00:50:16 +02:00
mintsuki 10ce8e07bf Do not align allocations in init_smp 2020-09-19 00:21:54 +02:00
mintsuki 73fa01d1d0 smp: Fix bug where started APs would not be aware of 5-level paging 2020-09-18 20:21:16 +02:00
mintsuki c2bf4835ef Add sys/ directory to stage2 2020-09-18 20:02:10 +02:00