mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
cpu: _bsp() -> get_bsp()
This commit is contained in:
@@ -130,6 +130,6 @@ void kernel_entry() {
|
|||||||
sched_threadexit();
|
sched_threadexit();
|
||||||
}
|
}
|
||||||
|
|
||||||
cpu_t *_bsp(void) {
|
cpu_t *get_bsp(void) {
|
||||||
return &bsp_cpu;
|
return &bsp_cpu;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ static inline uint16_t be_to_cpu_w(uint16_t w) {
|
|||||||
return __builtin_bswap16(w);
|
return __builtin_bswap16(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
cpu_t *_bsp(void);
|
cpu_t *get_bsp(void);
|
||||||
|
|
||||||
static inline thread_t *current_thread(void) {
|
static inline thread_t *current_thread(void) {
|
||||||
thread_t *thread;
|
thread_t *thread;
|
||||||
|
|||||||
@@ -355,7 +355,7 @@ static void acpi_dowork(struct acpi_workctx *ctx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void acpi_dogpework() {
|
static void acpi_dogpework() {
|
||||||
sched_targetcpu(_bsp());
|
sched_targetcpu(get_bsp());
|
||||||
sched_yield();
|
sched_yield();
|
||||||
|
|
||||||
acpi_dowork(&gpework);
|
acpi_dowork(&gpework);
|
||||||
|
|||||||
Reference in New Issue
Block a user