separate source into kernel/ user/ mkfs/
This commit is contained in:
parent
91ba81110a
commit
5753553213
72 changed files with 157 additions and 296 deletions
31
kernel/kernel.ld
Normal file
31
kernel/kernel.ld
Normal file
|
@ -0,0 +1,31 @@
|
|||
OUTPUT_ARCH( "riscv" )
|
||||
ENTRY( _entry )
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
/*
|
||||
* ensure that entry.S / _entry is at 0x80000000,
|
||||
* where qemu's -kernel jumps.
|
||||
*/
|
||||
. = 0x80000000;
|
||||
.text :
|
||||
{
|
||||
*(.text)
|
||||
. = ALIGN(0x1000);
|
||||
*(trampoline)
|
||||
}
|
||||
|
||||
. = ALIGN(0x1000);
|
||||
PROVIDE(etext = .);
|
||||
|
||||
/*
|
||||
* make sure end is after data and bss.
|
||||
*/
|
||||
.data : {
|
||||
*(.data)
|
||||
}
|
||||
bss : {
|
||||
*(.bss)
|
||||
PROVIDE(end = .);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue