Basic thread switching

This commit is contained in:
2025-03-14 22:16:36 +02:00
parent bebdb21c4e
commit aeb5950e56
16 changed files with 633 additions and 76 deletions
+5
View File
@@ -3,6 +3,8 @@ ENTRY(__rv64_entry);
SECTIONS {
. = 0x0;
PROVIDE(__kernel_start = .);
.text : ALIGN(4K) {
*(.text.entry*)
*(.text*)
@@ -36,4 +38,7 @@ SECTIONS {
. = ALIGN(4K);
PROVIDE(__bss_end = .);
}
. = ALIGN(4K);
PROVIDE(__kernel_end = .);
}
+7 -4
View File
@@ -1,7 +1,10 @@
gdb-remote localhost:1234
target modules add -s kernel zig-out/bin/kernel
# target modules load -f zig-out/bin/kernel -s 0x80200000
target modules load -f zig-out/bin/kernel -s 0x200200000
target modules add zig-out/bin/kernel
target modules load -f zig-out/bin/kernel -s 0xFFFFFFF000200000
breakpoint set -n arch.riscv64.boot.rv64BspEntryLower
breakpoint set -H -a 0x80200000
process continue
breakpoint set -H -n arch.riscv64.boot.rv64BspEntryLower
# process continue