Commit Graph

21 Commits

Author SHA1 Message Date
mintsuki
07ac3de4e6 SMP: Fix struct duplication bug 2020-10-25 12:41:13 +01:00
mintsuki
b7f4412948 Add BSP LAPIC ID field to stivale2 SMP structure. Resolves #46 2020-10-25 04:58:53 +01:00
mintsuki
e8f1c9437a Change return type of cpuid(), add APIC existance check, do not assume BSP APIC ID to be 0 2020-10-22 15:25:10 +02:00
mintsuki
2b34d88d19 Remove instances in which conv_mem_alloc() was implicitly used as a realloc() as that subtly introduces bugs 2020-10-20 08:51:56 +02:00
mintsuki
54eaf96860 Remove conv_mem_rewind() as it could be a dangerous source of bugs, modify code that used it accordingly 2020-10-20 02:38:01 +02:00
mintsuki
0c5ccf14b4 Remove eccessive memmap dumps and add stivale and stivale2 module loading feedback messages 2020-10-16 16:04:30 +02:00
mintsuki
de0f0da1c6 Move A20 handler out of bootsector and into stage 2 2020-10-15 11:35:49 +02:00
mintsuki
2aed131364 Move cpuid() to cpu.h 2020-10-12 21:49:17 +02:00
mintsuki
513d0a2279 Extend x2APIC check as per VT-d specification 2020-10-12 21:20:58 +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