From 9974746c6c426e95534eb6cc99f5d4fb096fb63f Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 15 Sep 2024 22:52:24 -0300 Subject: [PATCH] cpu: _bsp() -> get_bsp() --- kernel-src/arch/x86-64/main.c | 2 +- kernel-src/include/x86-64/arch/cpu.h | 2 +- kernel-src/io/acpi/glue.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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);