mirror of
https://github.com/usatiuk/ficus.git
synced 2025-10-29 00:27:52 +01:00
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:
@@ -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/)
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
//
|
||||
|
||||
extern "C" void _hcf() {
|
||||
// *(volatile char *) (0) = 42;
|
||||
while (1)
|
||||
asm volatile("cli; hlt");
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user