aboutsummaryrefslogtreecommitdiff
path: root/pk
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2022-08-05 14:36:07 -0700
committerAndrew Waterman <andrew@sifive.com>2022-08-05 14:36:07 -0700
commit7e9b671c0415dfd7b562ac934feb9380075d4aa2 (patch)
tree403dcfeffca4d2865099e1fdf21867abe641d568 /pk
parent2efabd3e6604b8a9e8f70baf52f57696680c7855 (diff)
downloadpk-7e9b671c0415dfd7b562ac934feb9380075d4aa2.zip
pk-7e9b671c0415dfd7b562ac934feb9380075d4aa2.tar.gz
pk-7e9b671c0415dfd7b562ac934feb9380075d4aa2.tar.bz2
Specify text section in rest_of_boot_loader definition
Fixes #282
Diffstat (limited to 'pk')
-rw-r--r--pk/pk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pk/pk.c b/pk/pk.c
index b8c9337..31d8c79 100644
--- a/pk/pk.c
+++ b/pk/pk.c
@@ -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)
{