diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-03 12:30:34 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-03 12:30:34 -0400 |
commit | ec3c37d1d40d7b288584c234f4c3e7a600f2353d (patch) | |
tree | bb587b33c4c793ff7a3317dfa958d69b0fa318a1 /lib/entry.S | |
parent | move boot only headers to boot (diff) | |
download | comus-ec3c37d1d40d7b288584c234f4c3e7a600f2353d.tar.gz comus-ec3c37d1d40d7b288584c234f4c3e7a600f2353d.tar.bz2 comus-ec3c37d1d40d7b288584c234f4c3e7a600f2353d.zip |
new libs
Diffstat (limited to 'lib/entry.S')
-rw-r--r-- | lib/entry.S | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/entry.S b/lib/entry.S deleted file mode 100644 index 87ad9c7..0000000 --- a/lib/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 |