Make sure the cache is enabled on all CPU cores, not just the BSP.

This commit is contained in:
Martin Whitaker 2022-02-27 16:48:59 +00:00
parent 06d670e9a8
commit 631cd553aa

View File

@ -176,8 +176,6 @@ static void global_init(void)
floppy_off();
cache_on();
cpuid_init();
screen_init();
@ -461,6 +459,7 @@ void main(void)
my_cpu = smp_my_cpu_num();
}
if (init_state < 2) {
cache_on();
if (my_cpu == 0) {
global_init();
init_state = 1;