Remove interrupt setup from asm bootloader, add io module, memcpy functions, and serial driver
This commit is contained in:
parent
799b77d11a
commit
42c9ba12dc
17 changed files with 422 additions and 264 deletions
6
Makefile
6
Makefile
|
@ -10,16 +10,16 @@ bochs: build/harddrive.bin
|
|||
bochs -f bochs.$(ARCH)
|
||||
|
||||
qemu: build/harddrive.bin
|
||||
qemu-system-$(ARCH) -drive file=$<,format=raw,index=0,media=disk
|
||||
qemu-system-$(ARCH) -serial mon:stdio -drive file=$<,format=raw,index=0,media=disk
|
||||
|
||||
FORCE:
|
||||
|
||||
build/libkernel.a: FORCE
|
||||
rustc --crate-type staticlib -C lto -O src/lib.rs -o $@
|
||||
cargo rustc -- -C lto -o $@
|
||||
#--target $(ARCH)-unknown-none.json
|
||||
|
||||
build/kernel.bin: build/libkernel.a
|
||||
ld -m elf_$(ARCH) -o $@ -T bootloader/x86/kernel.ld -z max-page-size=0x1000 $<
|
||||
ld -m elf_$(ARCH) --gc-sections -z max-page-size=0x1000 -T bootloader/x86/kernel.ld -o $@ $<
|
||||
|
||||
build/kernel.list: build/kernel.bin
|
||||
objdump -C -M intel -D $< > $@
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue