summaryrefslogtreecommitdiffstats
path: root/include/arch/x86_64/object.h
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2025-08-10 15:40:19 -0400
committerJon Santmyer <jon@jonsantmyer.com>2025-08-10 15:40:19 -0400
commitc4f8ef91f18d854a4ede7a94e95b2eab898d6963 (patch)
treec2772c4f380a684b6fa347f03b13f9476bf9500c /include/arch/x86_64/object.h
parentb905869a35f062a4e5072f10bec3a2ba3db0e365 (diff)
downloadjove-kernel-c4f8ef91f18d854a4ede7a94e95b2eab898d6963.tar.gz
jove-kernel-c4f8ef91f18d854a4ede7a94e95b2eab898d6963.tar.bz2
jove-kernel-c4f8ef91f18d854a4ede7a94e95b2eab898d6963.zip
working usermode objdir iteration
Diffstat (limited to 'include/arch/x86_64/object.h')
-rw-r--r--include/arch/x86_64/object.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/arch/x86_64/object.h b/include/arch/x86_64/object.h
index 8d5af33..6512049 100644
--- a/include/arch/x86_64/object.h
+++ b/include/arch/x86_64/object.h
@@ -3,15 +3,18 @@
#include <stdint.h>
+#ifndef KERNEL_STACKBYTES
+#define KERNEL_STACKBYTES 4096
+#endif
+
typedef struct jove_InitData
{
uint8_t log_object;
- uint8_t untyped_data_dir;
- uint8_t processor_dir;
+ uint16_t untyped_data_dir;
+ uint16_t processor_dir;
uint8_t pm_object; //Page mapping object.
- uint8_t initrd_dir; //Init ramdisk files directory.
+ uint16_t initrd_dir; //Init ramdisk files directory.
uint8_t tcb_object;
- uint8_t kernel_stack_object;
uint8_t message_object;
uintptr_t message_object_address;
} init_data_t;
@@ -21,6 +24,7 @@ typedef struct jove_ThreadControlBlock
void *stack;
uintptr_t sp, ksp;
void *pml4;
+ uint8_t kstack[KERNEL_STACKBYTES];
} tcb_t;
#endif