separate source into kernel/ user/ mkfs/

This commit is contained in:
Robert Morris 2019-06-11 09:57:14 -04:00
parent 91ba81110a
commit 5753553213
72 changed files with 157 additions and 296 deletions

31
kernel/kernel.ld Normal file
View 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 = .);
}
}