fix problem

This commit is contained in:
trimill 2024-02-03 15:32:43 -05:00
parent 8e74123683
commit ac431b0050
No known key found for this signature in database
GPG key ID: 4F77A16E17E10BCB
4 changed files with 4 additions and 8 deletions

View file

@ -6,9 +6,9 @@ CC=cc
LD=ld
AS=nasm
CFLAGS += -std=c2x -ffreestanding -lgcc -isystem include
CFLAGS += -std=c2x -ffreestanding -lgcc -isystem include -pipe
CFLAGS += -Wall -Wextra -pedantic
CFLAGS += -O3 -pipe -g -fno-stack-protector
CFLAGS += -O2 -g -fno-stack-protector -fno-omit-frame-pointer
CFLAGS += -DPAGE_SIZE=4096
LDFLAGS += -nmagic --no-warn-rwx-segments -nostdlib

View file

@ -36,9 +36,9 @@ void log_backtrace() {
void log_backtrace_ex(void *ip, void *bp) {
struct stackframe *frame = bp;
kputs("Stack trace:\n");
kprintf(" %#lx\n", (size_t)ip);
kprintf(" 0x%p\n", ip);
while (frame) {
kprintf(" %#lx\n", (size_t)frame->rip);
kprintf(" 0x%p\n", frame->rip);
frame = frame->rbp;
}

View file

@ -14,7 +14,6 @@ static struct boot_info boot_info;
void *amd64_shim(long mboot_magic, volatile void *mboot_data_ptr) {
serial_init();
paging_init();
serial_out_str("aaaa\n");
pic_remap();
idt_init();

View file

@ -2,9 +2,6 @@
#include <acpi.h>
#include <memory.h>
#include <lib.h>
#include <serial.h>
#include <shim.h>
#include <panic.h>
#include <pci.h>
#include <screen.h>