diff options
author | Andrew Waterman <andrew@sifive.com> | 2022-08-05 14:36:07 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2022-08-05 14:36:07 -0700 |
commit | 7e9b671c0415dfd7b562ac934feb9380075d4aa2 (patch) | |
tree | 403dcfeffca4d2865099e1fdf21867abe641d568 /pk/pk.c | |
parent | 2efabd3e6604b8a9e8f70baf52f57696680c7855 (diff) | |
download | riscv-pk-7e9b671c0415dfd7b562ac934feb9380075d4aa2.zip riscv-pk-7e9b671c0415dfd7b562ac934feb9380075d4aa2.tar.gz riscv-pk-7e9b671c0415dfd7b562ac934feb9380075d4aa2.tar.bz2 |
Specify text section in rest_of_boot_loader definition
Fixes #282
Diffstat (limited to 'pk/pk.c')
-rw-r--r-- | pk/pk.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -183,10 +183,12 @@ static void run_loaded_program(size_t argc, char** argv, uintptr_t kstack_top) void rest_of_boot_loader(uintptr_t kstack_top); asm ("\n\ + .pushsection .text\n\ .globl rest_of_boot_loader\n\ rest_of_boot_loader:\n\ mv sp, a0\n\ - tail rest_of_boot_loader_2"); + tail rest_of_boot_loader_2\n\ + .popsection"); void rest_of_boot_loader_2(uintptr_t kstack_top) { |