Add null driver

This will be the target of our real ELF loader
This commit is contained in:
Justin C. Miller
2018-09-05 23:00:23 -07:00
parent 3f264b4490
commit 3d0b262435
4 changed files with 29 additions and 1 deletions

View File

@@ -1 +1,2 @@
assets/fonts/tamsyn8x16r.psf screenfont.psf #assets/fonts/tamsyn8x16r.psf screenfont.psf
build/kernel/src/drivers/nulldrv/nulldrv nulldrv

View File

@@ -0,0 +1 @@
int main(int argc, const char **argv) { return 0; }

View File

@@ -0,0 +1,11 @@
global _start
_start:
xor rbp, rbp ; Sentinel rbp
pop rsi ; My PID
mov rdi, 0 ; DEBUG syscall
.loop:
syscall
jmp .loop

View File

@@ -0,0 +1,15 @@
def configure(ctx):
pass
def build(bld):
sources = bld.path.ant_glob("**/*.cpp")
sources += bld.path.ant_glob("**/*.s")
bld.program(
source = sources,
name = 'nulldrv',
target = 'nulldrv',
)
# vim: ft=python et