diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2025-08-11 19:04:26 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2025-08-11 19:04:26 -0400 |
commit | f466364b8a3858e7b3f19258d142851cb4a7e6d6 (patch) | |
tree | a22819dc585c44a6dd0cdd5c6856420443a031eb /arch/x86_64/processor.c | |
parent | c4f8ef91f18d854a4ede7a94e95b2eab898d6963 (diff) | |
download | jove-kernel-f466364b8a3858e7b3f19258d142851cb4a7e6d6.tar.gz jove-kernel-f466364b8a3858e7b3f19258d142851cb4a7e6d6.tar.bz2 jove-kernel-f466364b8a3858e7b3f19258d142851cb4a7e6d6.zip |
remove _initData, replace with enum indexesmain
Diffstat (limited to 'arch/x86_64/processor.c')
-rw-r--r-- | arch/x86_64/processor.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86_64/processor.c b/arch/x86_64/processor.c index 666eb3d..3ebf1ee 100644 --- a/arch/x86_64/processor.c +++ b/arch/x86_64/processor.c @@ -103,13 +103,10 @@ bsp_setup(void) enable_avx(); #endif - uint64_t pd_i = _initDirectory.self.data++; - - _initDirectory.entries[pd_i] = (objdir_entry_t) { + _initDirectory.entries[INIT_OBJECT_PROCESSOR_DIR] = (objdir_entry_t) { .type = KO_OBJECT_DIRECTORY, .data = (uintptr_t)(&s_processor_dir) }; - _initData.processor_dir = pd_i; ivt_setup(); s_enable_sce(); |