fix redundant options

This commit is contained in:
2023-10-22 09:58:30 +02:00
parent da9e589545
commit db54cbf259
2 changed files with 4 additions and 2 deletions

View File

@@ -1,8 +1,8 @@
add_executable(kernel.elf)
target_compile_options(kernel.elf PUBLIC $<$<COMPILE_LANGUAGE:CXX>:-fstack-protector-all -fno-exceptions -fno-rtti -ffreestanding -Ofast -mno-sse>)
target_compile_options(kernel.elf PUBLIC $<$<COMPILE_LANGUAGE:C>:-fstack-protector-all -ffreestanding -Ofast -mno-sse>)
target_compile_options(kernel.elf PUBLIC $<$<COMPILE_LANGUAGE:CXX>:-fstack-protector-all>)
target_compile_options(kernel.elf PUBLIC $<$<COMPILE_LANGUAGE:C>:-fstack-protector-all>)
add_subdirectory(./arch/)
add_subdirectory(./kernel/)

View File

@@ -20,6 +20,8 @@ _sse_setup:
mov rax, cr4
or ax, 3 << 9 ;set CR4.OSFXSR and CR4.OSXMMEXCPT at the same time
mov cr4, rax
finit
emms
ret
.noSSE:
hlt