1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-11-20 11:16:10 -05:00

Add dummy module

This commit is contained in:
Braiden Vasco 2017-11-05 09:56:53 +00:00
parent bb7f68d633
commit b969e020ef
4 changed files with 29 additions and 2 deletions

1
.gitignore vendored
View file

@ -5,3 +5,4 @@
/arch/kernel
/libk/libk.a
/modules/dummy

View file

@ -6,8 +6,8 @@ export LIBK = $(shell pwd)/libk/libk.a
run: run-iso
all: all-kernel all-iso all-libk all-test
clean: clean-kernel clean-iso clean-libk clean-test
all: all-kernel all-iso all-libk all-test all-modules
clean: clean-kernel clean-iso clean-libk clean-test clean-modules
test: run-test
@ -56,3 +56,13 @@ all-test: all-libk
clean-test:
make clean -C test
###########
# Modules #
###########
all-modules:
make all -C modules
clean-modules:
make clean -C modules

5
modules/Makefile Normal file
View file

@ -0,0 +1,5 @@
all:
nasm -f bin dummy.asm -o dummy
clean:
rm -f dummy

11
modules/dummy.asm Normal file
View file

@ -0,0 +1,11 @@
main:
mov eax, 0
int 0x80
mov eax, 3
int 0x80
mov eax, 134
int 0x80
ret