x86_64: init local apic on boot, or legacy pic/pit as fallback

This commit is contained in:
2023-03-19 20:36:36 +00:00
parent 7e26050bde
commit 8e9127cd6a
13 changed files with 274 additions and 72 deletions

View File

@@ -16,6 +16,9 @@ typedef struct ml_cpu_block {
unsigned int c_cpu_id;
} ml_cpu_block;
#define ml_cpu_pause() asm volatile("hlt")
#define ml_cpu_relax() asm volatile("pause")
extern int ml_init_bootcpu(void);
extern int ml_cpu_block_init(ml_cpu_block *p);