Better user programs with a special std. Sleep and exit are calling scheduler instead of wfi.
This commit is contained in:
5
ilm.ld
5
ilm.ld
@@ -2,17 +2,16 @@
|
||||
* ld directives the for barmetal RISCV
|
||||
*/
|
||||
OUTPUT_ARCH(riscv)
|
||||
ENTRY(entry)
|
||||
ENTRY(_start)
|
||||
|
||||
MEMORY {
|
||||
RAM (wxa) : ORIGIN = 0x80000000, LENGTH = 128M
|
||||
}
|
||||
|
||||
SECTIONS {
|
||||
/* The kernel starts at 0x80000000 */
|
||||
. = 0x80000000;
|
||||
.text : {
|
||||
KEEP(*(.text.entry))
|
||||
KEEP(*(.text._start))
|
||||
|
||||
*(.text .text.*)
|
||||
} > RAM
|
||||
|
||||
Reference in New Issue
Block a user