2 * Copyright (c) 1998 Robert Nordier
5 * Redistribution and use in source and binary forms are freely
6 * permitted provided that the above copyright notice and this
7 * paragraph and the following disclaimer are duplicated in all
10 * This software is provided "AS IS" and without any express or
11 * implied warranties, including, without limitation, the implied
12 * warranties of merchantability and fitness for a particular
15 * $FreeBSD: src/sys/boot/i386/btx/lib/btxcsu.s,v 1.3 1999/08/28 00:40:07 peter Exp $
16 * $DragonFly: src/sys/boot/i386/btx/lib/Attic/btxcsu.S,v 1.4 2004/07/19 01:25:02 dillon Exp $
20 * BTX C startup code (ELF).
23 #include "../../bootasm.h"
33 _start: movl %eax,__base # Set base address
34 movl %esp,%eax # Get base of arguments
35 addl $USR_ARGSPACE-USR_ARGOFFSET,%eax
37 call main # Invoke client main()
38 call exit # Invoke client exit()
43 .comm __base,4 # Client base address
44 .comm __args,4 # Client arguments