mirror of
https://github.com/Plexi09/Nadir-Kernel.git
synced 2026-10-20 23:17:27 +02:00
Boot to C in 64-bit long mode
This commit is contained in:
parent
53f1295927
commit
7d736cd76d
14 changed files with 668 additions and 46 deletions
|
|
@ -33,11 +33,11 @@ Please stick to the following rules if you plan to use AI in your contributions:
|
|||
|
||||
## Building and running
|
||||
|
||||
The current toolchain is two commands from the repository root. See the [README](README.md) for prerequisites and troubleshooting:
|
||||
Build from the repository root. See the [README](README.md) for prerequisites and troubleshooting:
|
||||
|
||||
```
|
||||
nasm -f bin boot.asm -o boot.bin
|
||||
qemu-system-x86_64 -fda boot.bin
|
||||
make # builds os.img (boot sector + kernel)
|
||||
make run # boots it in QEMU
|
||||
```
|
||||
|
||||
The toolchain is not yet finalized (candidates: `gcc` cross + `ld`, or `clang` + `lld` + `nasm`; target `x86-64-elf`).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue