aboutsummaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorMarvin Borner2021-03-20 19:55:51 +0100
committerGitHub2021-03-20 19:55:51 +0100
commit5132bac014d63331acf61bb60b9254023f76b869 (patch)
tree8e2946b7a6630da13ee403c787f77270aeb6185d /boot
parent435231378798819304eef427bad8e77dffea85df (diff)
parentb96c27bba0b242fc860fc9a2fcb63f121312fa7e (diff)
Merged ELF loading
Diffstat (limited to 'boot')
-rw-r--r--boot/Makefile2
-rw-r--r--boot/load.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/boot/Makefile b/boot/Makefile
index 714ec22..7ef6cab 100644
--- a/boot/Makefile
+++ b/boot/Makefile
@@ -5,7 +5,7 @@ LD = ccache ../cross/opt/bin/i686-elf-ld
OC = ccache ../cross/opt/bin/i686-elf-objcopy
AS = ccache nasm
-CFLAGS = $(CFLAGS_DEFAULT) -ffreestanding -fno-stack-protector -fno-sanitize=undefined
+CFLAGS = $(CFLAGS_DEFAULT) -ffreestanding -fno-stack-protector -fno-sanitize=undefined -Ofast
ASFLAGS = -f elf32
diff --git a/boot/load.c b/boot/load.c
index 34c6af8..4a6f3db 100644
--- a/boot/load.c
+++ b/boot/load.c
@@ -336,7 +336,7 @@ void *read_inode(struct inode *in)
if (!num_blocks)
return 0;
- void *buf = (void *)0x50000;
+ void *buf = (void *)0x9000;
//assert(buf != 0);
int indirect;