PMM and liballoc port

This commit is contained in:
2025-12-17 22:42:48 +01:00
parent 13fee12f59
commit f60d8d6861
32 changed files with 1202 additions and 12 deletions

View File

@@ -4,7 +4,7 @@
void debugprintf(const char *fmt, ...);
#define DEBUG(fmt, ...) do { \
debugprintf("%s: " fmt, __PRETTY_FUNCTION__, ##__VA_ARGS__); \
debugprintf("%s: " fmt, __func__, ##__VA_ARGS__); \
} while(0)
#endif // _KERNEL_SYS_DEBUG_H

8
kernel/sys/mm.h Normal file
View File

@@ -0,0 +1,8 @@
#ifndef _KERNEL_SYS_MM_H
#define _KERNEL_SYS_MM_H
#if defined(__x86_64__)
#include <amd64/mm.h>
#endif
#endif // _KERNEL_SYS_MM_H

6
kernel/sys/spin_lock.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef _KERNEL_SYS_SPIN_LOCK_H
#define _KERNEL_SYS_SPIN_LOCK_H
void spin_lock_relax(void);
#endif // _KERNEL_SYS_SPIN_LOCK_H