From 4f39a7564e84035546c8274266a65ee46c9e777a Mon Sep 17 00:00:00 2001 From: Jozef Nagy Date: Wed, 21 May 2025 22:46:02 +0200 Subject: [PATCH] Higher half, fixed warnings --- boot/Makefile | 2 +- boot/platform/uefi/driver.c | 2 +- kernel/arch/x86_64/linker.ld | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/boot/Makefile b/boot/Makefile index e1fb122..10a6bd9 100644 --- a/boot/Makefile +++ b/boot/Makefile @@ -28,7 +28,7 @@ export BUILD_DIR ?= build export SYSROOT_DIR ?= sysroot export ASFLAGS := $(foreach d, $(DEFINES), -D$d) -export CFLAGS := $(foreach d, $(DEFINES), -D$d) -Wall -Wextra -ffreestanding -fno-stack-protector -fno-stack-check -MMD -MP +export CFLAGS := $(foreach d, $(DEFINES), -D$d) -Wall -Wextra -Wno-unused-local-typedef -ffreestanding -fno-stack-protector -fno-stack-check -MMD -MP export LDFLAGS := -nostdlib export BOOT_ROOT := $(ROOT_DIR)/boot diff --git a/boot/platform/uefi/driver.c b/boot/platform/uefi/driver.c index 25642ab..cd7283f 100644 --- a/boot/platform/uefi/driver.c +++ b/boot/platform/uefi/driver.c @@ -49,7 +49,7 @@ bool verify_secure_boot() void load_drivers() { - EFI_STATUS status; + // EFI_STATUS status; if (!verify_secure_boot()) { debug("load_drivers(): Secure boot is enabled! Won't load drivers...\n"); return; diff --git a/kernel/arch/x86_64/linker.ld b/kernel/arch/x86_64/linker.ld index 7314b13..758e8b6 100644 --- a/kernel/arch/x86_64/linker.ld +++ b/kernel/arch/x86_64/linker.ld @@ -31,8 +31,7 @@ PHDRS SECTIONS { - /* TODO: 0xffffffff80000000 */ - . = 0x1000; + . = 0xffffffff80000000; _linker_start_text = .;