kernel: ldt support

This commit is contained in:
Matheus
2026-03-20 21:23:59 -03:00
parent a73c82f912
commit 41f97c6c61
17 changed files with 315 additions and 94 deletions
+8
View File
@@ -13,6 +13,10 @@
#include <kernel/thread.h>
#ifdef __x86_64__
#include <arch/ldt.h>
#endif
#define PROC_STATE_NORMAL 0
#define PROC_STATE_ZOMBIE 1
@@ -46,6 +50,10 @@ typedef struct proc_t {
spinlock_t exiting;
int nice;
#ifdef __x86_64__
ldt_entry_t *ldt;
#endif
spinlock_t jobctllock;
struct {
// NULL if this process is leader