Basic thread switching
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user