Renamed assembly initialization code to _entry instead of _start, to avoid confusing with start() C function
This commit is contained in:
parent
dc3de0135e
commit
d62f9ddd85
2 changed files with 4 additions and 4 deletions
4
entry.S
4
entry.S
|
@ -1,6 +1,6 @@
|
|||
.section .text
|
||||
.globl _start
|
||||
_start:
|
||||
.globl _entry
|
||||
_entry:
|
||||
# Both call and j will work here, but since ra will be cleared,
|
||||
# we will need a jump instruction back (from _clear) to continue.
|
||||
call _clear
|
||||
|
|
4
link.ld
4
link.ld
|
@ -1,5 +1,5 @@
|
|||
OUTPUT_ARCH(riscv)
|
||||
ENTRY(_start)
|
||||
OUTPUT_ARCH( "riscv" )
|
||||
ENTRY( _entry ) /* See: entry.S */
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue