summaryrefslogtreecommitdiff
path: root/userspace/crt0.S
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-10-20 18:54:18 +0200
committerMichal Idziorek <m.i@gmx.at>2014-10-20 18:54:18 +0200
commit813272cd88cc6c0a1dfbb121d2130fc849042c8a (patch)
tree61b8ede4a5c191c491621f0185d3a442ff5407dd /userspace/crt0.S
parent2f6fe94d436347c4d886407dbfd44b6ac1aa41fa (diff)
1st userspace programm and partial newlib support!
Diffstat (limited to 'userspace/crt0.S')
-rw-r--r--userspace/crt0.S9
1 files changed, 9 insertions, 0 deletions
diff --git a/userspace/crt0.S b/userspace/crt0.S
new file mode 100644
index 0000000..9f7dab1
--- /dev/null
+++ b/userspace/crt0.S
@@ -0,0 +1,9 @@
+.global _start
+.extern main
+.extern exit
+_start:
+call main
+call _exit
+.wait:
+ hlt
+jmp .wait