From ae052c66f1a84d972dcd9e1b93e153c52bd6fcb4 Mon Sep 17 00:00:00 2001 From: plane000 Date: Sun, 7 Oct 2018 15:16:25 +0100 Subject: [PATCH] inital commit --- .vscode/tasks.json | 54 ++++++++++++++++++++++++++++++++++ ISO/boot/grub/grub.cfg | 6 ++++ ISO/boot/kernel | Bin 0 -> 5324 bytes kernel.asm | 21 ++++++++++++++ kernel.c | 24 ++++++++++++++++ link.ld | 9 ++++++ makefile | 64 +++++++++++++++++++++++++++++++++++++++++ 7 files changed, 178 insertions(+) create mode 100644 .vscode/tasks.json create mode 100644 ISO/boot/grub/grub.cfg create mode 100644 ISO/boot/kernel create mode 100644 kernel.asm create mode 100644 kernel.c create mode 100644 link.ld create mode 100644 makefile diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..a8e9261 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,54 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Build", + "type": "shell", + "command": "bash --login -c 'make'", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [] + }, + { + "label": "Build (With ISO)", + "type": "shell", + "command": "bash --login -c 'make iso'", + "group": { + "kind": "test", + "isDefault": true, + }, + "problemMatcher": [] + }, + { + "label": "Run", + "type": "shell", + "command": "&('C:/Program Files/qemu/qemu-system-i386') -kernel bin/ThanOS.bin -serial mon:stdio -drive id=disk,file=hda.img,if=none -device ahci,id=ahci -device ide-drive,drive=disk,bus=ahci.0", + "group": { + "kind": "test", + "isDefault": true + } + }, + { + "label": "Run (With ISO)", + "type": "shell", + "command": "&('C:/Program Files/qemu/qemu-system-i386') -cdrom bin/ThanOS.iso -serial mon:stdio -drive file=hda.img,format=raw", + "group": { + "kind": "test", + "isDefault": true + } + }, + { + "label": "Run in BOCHS (Rqrs. ISO)", + "type": "shell", + "command": "&('C:/Program Files (x86)/Bochs-2.6.9/bochsdbg.exe') -f bochsrc.bxrc -q", + "group": { + "kind": "test", + "isDefault": true + } + } + ] +} \ No newline at end of file diff --git a/ISO/boot/grub/grub.cfg b/ISO/boot/grub/grub.cfg new file mode 100644 index 0000000..6567823 --- /dev/null +++ b/ISO/boot/grub/grub.cfg @@ -0,0 +1,6 @@ +set timeout=0 +set default=0 + +menuentry "UrMumOS" { + multiboot /boot/kernel +} diff --git a/ISO/boot/kernel b/ISO/boot/kernel new file mode 100644 index 0000000000000000000000000000000000000000..5252d728ed6da5c97fb971023a80ceb425ee0d17 GIT binary patch literal 5324 zcmeHLK}Zx~6n-)p@W2n4w0k<9z1tW5b9uHu*A~#-pu^AEgiaa`yc-Q`@jEt@6F8jzdiWh zS7O70AOJHFd_brPg3yD$?Uc*(fCM6RLL(e^c%;#23PKnY!W{th-qwvhYl@b&M!b_& zOK{8;;0kaBxB^@Ot^iknE5H@t3UCFu0$c&Ez<*Uhe6`k25BM1$`~2fgxFZPr^zZ-S z#LC{%*WmsWTnE16w7U4BQmL#chug{lEH=WnQpR0$C30WR*b@h~QWAEzKtjKIU9gn{ zLiI~ZNqlgx^t=V&_9qtJ<%E}oclPKZrG0354a=gfl>bZ=mXxw+PdFjF81nFKaqIEN zP1_&doXi(Z$;ex2-IQju1u2`)LL0pbns8?fgu4wwdz0V4j9+sa_h_8MFL*`)11B0D ziG$4n@#%XEaqc9p;Py-8{lwSU$k5Pbsq>nioYittuY5s{bVvKUru5{cV)U%LA)Svz z`yv;ky)~&-(7pL^Z&v`;y_*mp-l~vo9ATe>caE_8Mj?Ua2OK_pgzFs4CLi9y&;c^@ z!?#Kk0yLA2O^u$*|2jf)^u;&R7fIh_ReOpBlMiJBf5LpnPHjX}oE7G==o}SUo zoSv1nf&m3fOJ&r;oR-qrb_&#ySbT6GrpAYd$CZSd7#NHxDyZswf3G~FTk2d&wbI30 zM%L!3fN4R-&}MT0a$&)+v?O}VbbXqwEPdVrnP&O#g=8~7rCA!tdRm<}HA4q^CU41e zSxie73LvNQhN0&y`l^33`r(k)?g^kC__tn_$`mI(SsdxOjzo2z5l40v2d$|is2?^k zj`cKdIUIS#TT>kM$qvTFi13Wnjw7ae)KPSvp_6oOzm4K(+{Dp