feat: Improved SMP and added CPU-local contexts
This commit is contained in:
parent
8fac1270b1
commit
7ad2167e9d
7 changed files with 86 additions and 20 deletions
|
@ -5,6 +5,14 @@
|
|||
#include <stdint.h>
|
||||
|
||||
extern uint32_t bootstrap_lapic_id;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint32_t lapic_id;
|
||||
uint32_t cpu_index;
|
||||
} cpu_local_t;
|
||||
|
||||
void smp_init();
|
||||
cpu_local_t *get_cpu_local(void);
|
||||
|
||||
#endif // SMP_H
|
Loading…
Add table
Add a link
Reference in a new issue