mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
Add null driver
This will be the target of our real ELF loader
This commit is contained in:
1
src/drivers/nulldrv/main.cpp
Normal file
1
src/drivers/nulldrv/main.cpp
Normal file
@@ -0,0 +1 @@
|
||||
int main(int argc, const char **argv) { return 0; }
|
||||
11
src/drivers/nulldrv/main.s
Normal file
11
src/drivers/nulldrv/main.s
Normal 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
|
||||
|
||||
15
src/drivers/nulldrv/wscript
Normal file
15
src/drivers/nulldrv/wscript
Normal 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
|
||||
Reference in New Issue
Block a user