Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shoily committed Jul 17, 2020
1 parent 5cbeddc commit 43ef756
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
XIS kernel needs only 2MB of memory to run.<br>
<b>XIS</b> operating system needs only 2MB of memory to run.<br>

It supports boot loader, kernel with protected mode, paging, E820 enumeration, interrupt and exception handling, system calls and user mode.

Instructions for building kernel -<br>
<b>Instructions for building kernel -</b><br>
as --32 boot32.S -o boot32.o<br>
gcc -m32 -std=gnu99 -nostdlib -nostdinc -fno-builtin -fno-stack-protector -nostartfiles -nodefaultlibs -ffreestanding -fno-pic -Wall -Wextra -Werror -c util.c -o util.o<br>
gcc -m32 -std=gnu99 -nostdlib -nostdinc -fno-builtin -fno-stack-protector -nostartfiles -nodefaultlibs -ffreestanding -fno-pic -Wall -Wextra -Werror -c system.c -o system.o<br>
Expand All @@ -17,20 +17,20 @@ gcc -m32 -std=gnu99 -nostdlib -nostdinc -fno-builtin -fno-stack-protector -nosta
ld -static -T kernel32.ld -m elf_i386 -nostdlib --nmagic boot32.o util.o system.o setup32.o handlr32.o memory.o page32.o usermode.o start.o -o xiskernel.elf<br>
objcopy -O binary xiskernel.elf xiskernel.bin<br>

Instructions for building boot loader -<br>
<b>Instructions for building boot loader -</b><br>
echo ".equ KERNEL_SIZE, &#96;ls -l xiskernel.bin | cut -f5 -d\ &#96;" > krnlsize.h<br>
as --32 bootldr.S -o bootldr.o<br>
ld -static -T bootldr.ld -m elf_i386 -nostdlib --nmagic -o bootldr.elf bootldr.o<br>
objcopy -O binary bootldr.elf bootldr.bin<br>

Creating QEMU image -<br>
<b>Creating QEMU image -</b><br>
dd if=bootldr.bin of=hda.raw<br>
dd if=xiskernel.bin of=hda.raw seek=1<br>
qemu-img convert -O qcow2 hda.raw hda.qcow2<br>

Running using QEMU -<br>
<b>Running using QEMU -</b><br>
sudo qemu-system-i386 -hda hda.qcow2 -m 2 --enable-kvm -cpu host<br>

Contact -
<b>Contact -</b>

[email protected]

0 comments on commit 43ef756

Please sign in to comment.