mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-04 02:23:10 +00:00
Fixed the pmm_init() page fault, but i have no clue why pag_init() sometimes causes it.
This commit is contained in:
@@ -14,10 +14,10 @@ MODULES = $(KERNEL)
|
||||
all: $(TARGET)
|
||||
$(TARGET): $(SYSROOT) $(MODULES)
|
||||
cp /usr/share/limine/limine-bios.sys $(SYSROOT)/boot
|
||||
echo -e 'timeout: 5\n\n/kern.\n\tprotocol: multiboot1\n\tpath: boot():/boot/kernel.elf\n' > $(SYSROOT)/boot/limine.conf
|
||||
echo -e 'timeout: 0\n\n/kern.\n\tprotocol: multiboot1\n\tpath: boot():/boot/kernel.elf\n' > $(SYSROOT)/boot/limine.conf
|
||||
dd if=/dev/zero of=$(TARGET) bs=1M count=$(IMG_SIZE)
|
||||
echo ',,c,*' | sfdisk $(TARGET) >/dev/null
|
||||
mformat -F -i $(TARGET)@@$(OFFSET) ::/
|
||||
mformat -F -i $(TARGET)@@$(OFFSET) ::
|
||||
mcopy -i $(TARGET)@@$(OFFSET) $(SYSROOT)/* ::
|
||||
limine bios-install $(TARGET)
|
||||
|
||||
@@ -45,7 +45,8 @@ clean:
|
||||
for m in $(MODULES); do $(MAKE) -C $$m clean; done
|
||||
|
||||
qemu:
|
||||
qemu-system-x86_64 $(TARGET)\
|
||||
qemu-system-x86_64\
|
||||
-drive format=raw,file=$(TARGET),index=0,media=disk\
|
||||
-m 256M -accel tcg -monitor stdio -net none\
|
||||
-rtc base=localtime,clock=host,driftfix=slew\
|
||||
-audiodev $(AUDIODEV),id=audio0 -machine pcspk-audiodev=audio0
|
||||
|
||||
Reference in New Issue
Block a user