1
0
Fork 0

feat: Improved SMP and added CPU-local contexts

This commit is contained in:
Kevin Alavik 2025-05-26 19:37:22 +02:00
parent 8fac1270b1
commit 7ad2167e9d
No known key found for this signature in database
GPG key ID: 47AAEA397DB76AD0
7 changed files with 86 additions and 20 deletions

View file

@ -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