mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
cpu: _bsp() -> get_bsp()
This commit is contained in:
@@ -130,6 +130,6 @@ void kernel_entry() {
|
||||
sched_threadexit();
|
||||
}
|
||||
|
||||
cpu_t *_bsp(void) {
|
||||
cpu_t *get_bsp(void) {
|
||||
return &bsp_cpu;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user