skip lists work, but sse breaks everything for some reason...

Yet predictable... On qemu every second skip list next node pointer disappears somethimes... On bochs it has a lot of 0x40 and 0x7 in the memory allocator...
This commit is contained in:
2023-10-21 22:10:33 +02:00
parent 66a89bf990
commit 9be4d04851
3 changed files with 7 additions and 6 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>)
target_compile_options(kernel.elf PUBLIC $<$<COMPILE_LANGUAGE:C>:-fstack-protector-all -ffreestanding>)
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>)
add_subdirectory(./arch/)
add_subdirectory(./kernel/)

View File

@@ -3,6 +3,7 @@
//
extern "C" void _hcf() {
// *(volatile char *) (0) = 42;
while (1)
asm volatile("cli; hlt");
}

View File

@@ -206,10 +206,10 @@ public:
int test_templates() {
// SkipListTester SLTester;
// SLTester.test();
// SkipListSetTester SLSTester;
// SLSTester.test();
SkipListTester SLTester;
SLTester.test();
SkipListSetTester SLSTester;
SLSTester.test();
StringTester stringTester;
stringTester.test();
VectorTester vectorTester;