diff --git a/kernel-src/arch/x86-64/main.c b/kernel-src/arch/x86-64/main.c index 10d7f6ed..a6b80410 100644 --- a/kernel-src/arch/x86-64/main.c +++ b/kernel-src/arch/x86-64/main.c @@ -130,6 +130,6 @@ void kernel_entry() { sched_threadexit(); } -cpu_t *_bsp(void) { +cpu_t *get_bsp(void) { return &bsp_cpu; } diff --git a/kernel-src/include/x86-64/arch/cpu.h b/kernel-src/include/x86-64/arch/cpu.h index bb45a64e..48ebb8e5 100644 --- a/kernel-src/include/x86-64/arch/cpu.h +++ b/kernel-src/include/x86-64/arch/cpu.h @@ -54,7 +54,7 @@ static inline uint16_t be_to_cpu_w(uint16_t w) { return __builtin_bswap16(w); } -cpu_t *_bsp(void); +cpu_t *get_bsp(void); static inline thread_t *current_thread(void) { thread_t *thread; diff --git a/kernel-src/io/acpi/glue.c b/kernel-src/io/acpi/glue.c index 775ab73e..a71d5d0b 100644 --- a/kernel-src/io/acpi/glue.c +++ b/kernel-src/io/acpi/glue.c @@ -355,7 +355,7 @@ static void acpi_dowork(struct acpi_workctx *ctx) { } static void acpi_dogpework() { - sched_targetcpu(_bsp()); + sched_targetcpu(get_bsp()); sched_yield(); acpi_dowork(&gpework);