diff options
Diffstat (limited to 'usr/klibc/arch/riscv64/_main.S')
-rw-r--r-- | usr/klibc/arch/riscv64/_main.S | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/usr/klibc/arch/riscv64/_main.S b/usr/klibc/arch/riscv64/_main.S new file mode 100644 index 0000000..284a222 --- /dev/null +++ b/usr/klibc/arch/riscv64/_main.S @@ -0,0 +1,17 @@ +# +# arch/riscv64/_main.S +# +# Does arch-specific initialization and invokes main with the +# appropriate arguments. +# + +#include <machine/asm.h> + +ENTRY(_main) + .option push + .option norelax + lla gp, __global_pointer$ + .option pop + + j main +END(_main) |