1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-23 08:26:17 +04:00

Make sure kern_entry at the beginning.

This commit is contained in:
WangRunji 2018-07-07 16:21:08 +08:00
parent af0e90ca1c
commit 4c1137a107
2 changed files with 4 additions and 3 deletions

View File

@ -1,10 +1,10 @@
.section .text,"ax",%progbits .section .entry
.globl kern_entry .globl kern_entry
kern_entry: kern_entry:
la sp, bootstacktop la sp, bootstacktop
tail rust_main tail rust_main
.section .data .section .data
.align 12 #PGSHIFT .align 12 #PGSHIFT
.global bootstack .global bootstack
bootstack: bootstack:

View File

@ -14,7 +14,8 @@ SECTIONS
. = BASE_ADDRESS; . = BASE_ADDRESS;
.text : { .text : {
*(.text.kern_entry .text .stub .text.* .gnu.linkonce.t.*) *(.entry)
*(.text .stub .text.* .gnu.linkonce.t.*)
} }
PROVIDE(etext = .); /* Define the 'etext' symbol to this value */ PROVIDE(etext = .); /* Define the 'etext' symbol to this value */