mirror of
https://git.stationery.faith/corn/corn.git
synced 2024-11-24 11:02:17 +00:00
fix problem
This commit is contained in:
parent
8e74123683
commit
ac431b0050
4 changed files with 4 additions and 8 deletions
4
Makefile
4
Makefile
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue