Initial commit - slab allocator, kmalloc, other re
factors
This commit is contained in:
parent
1dd7b8b07f
commit
4e40a040dd
39 changed files with 863 additions and 412 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#include <limine.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <kprint.h>
|
||||
#include <SFB25.h>
|
||||
#include "gdt.h"
|
||||
#include "smp.h"
|
||||
|
|
@ -42,7 +42,7 @@ atomic_flag ap_init_lock = ATOMIC_FLAG_INIT;
|
|||
|
||||
void ap_init(struct limine_smp_info *smp_info){
|
||||
|
||||
acquire_lock(&ap_init_lock);
|
||||
acquire_spinlock(&ap_init_lock);
|
||||
|
||||
/* Load the GDT */
|
||||
s_load_gdt();
|
||||
|
|
@ -71,7 +71,7 @@ void ap_init(struct limine_smp_info *smp_info){
|
|||
/* Initialize APIC & APIC timer */
|
||||
ap_apic_init();
|
||||
|
||||
free_lock(&ap_init_lock);
|
||||
free_spinlock(&ap_init_lock);
|
||||
|
||||
for(;;);
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ void ap_init(struct limine_smp_info *smp_info){
|
|||
void smp_init(){
|
||||
|
||||
if(!smp_request.response){
|
||||
klog(LOG_ERROR, __func__, "Failed to get SMP request");
|
||||
klog(__func__, "Failed to get SMP request");
|
||||
kkill();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue