diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2025-08-10 15:40:19 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2025-08-10 15:40:19 -0400 |
commit | c4f8ef91f18d854a4ede7a94e95b2eab898d6963 (patch) | |
tree | c2772c4f380a684b6fa347f03b13f9476bf9500c /arch/x86_64/processor.c | |
parent | b905869a35f062a4e5072f10bec3a2ba3db0e365 (diff) | |
download | jove-kernel-c4f8ef91f18d854a4ede7a94e95b2eab898d6963.tar.gz jove-kernel-c4f8ef91f18d854a4ede7a94e95b2eab898d6963.tar.bz2 jove-kernel-c4f8ef91f18d854a4ede7a94e95b2eab898d6963.zip |
working usermode objdir iteration
Diffstat (limited to 'arch/x86_64/processor.c')
-rw-r--r-- | arch/x86_64/processor.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86_64/processor.c b/arch/x86_64/processor.c index b39ba63..666eb3d 100644 --- a/arch/x86_64/processor.c +++ b/arch/x86_64/processor.c @@ -88,9 +88,21 @@ processor_setup(void *_processor) (uint32_t)((uintptr_t)_processor >> 32)); } +void enable_fpu(void); +void enable_sse(void); +void enable_avx(void); + void bsp_setup(void) { +#ifdef ENABLE_SSE + enable_fpu(); + enable_sse(); +#endif +#ifdef ENABLE_AVX + enable_avx(); +#endif + uint64_t pd_i = _initDirectory.self.data++; _initDirectory.entries[pd_i] = (objdir_entry_t) { |