diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-08 10:39:48 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-08 10:39:48 -0400 |
commit | 8a19547957a86bed3f58c9abc1ac218d04698faf (patch) | |
tree | ed7ccc6f3a8902915dfe6c9bf763fc45d752b3c4 /ulib/entry.S | |
parent | fmt (diff) | |
download | comus-8a19547957a86bed3f58c9abc1ac218d04698faf.tar.gz comus-8a19547957a86bed3f58c9abc1ac218d04698faf.tar.bz2 comus-8a19547957a86bed3f58c9abc1ac218d04698faf.zip |
break apart c libaray
Diffstat (limited to 'ulib/entry.S')
-rw-r--r-- | ulib/entry.S | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/ulib/entry.S b/ulib/entry.S deleted file mode 100644 index 87ad9c7..0000000 --- a/ulib/entry.S +++ /dev/null @@ -1,25 +0,0 @@ -// -// user-level startup routine -// - .text - .globl _start - .globl main - .globl exit - -// entry point - this is where the kernel starts us running -_start: - // we immediately call main() - call main - - // if we come back from that, it means the user - // program didn't call exit(), in which case the - // value returned from main() is the exit status - - // push that value onto the stack and call exit() - subl $12, %esp - pushl %eax - call exit - - // if we come back from that, something bad has - // happened, so we just lock up -1: jmp 1b |