#1# Copyright (c) 1998 Robert Nordier2# All rights reserved.3#4# Redistribution and use in source and binary forms are freely5# permitted provided that the above copyright notice and this6# paragraph and the following disclaimer are duplicated in all7# such forms.8#9# This software is provided "AS IS" and without any express or10# implied warranties, including, without limitation, the implied11# warranties of merchantability and fitness for a particular12# purpose.13#1415#include <bootargs.h>1617#18# BTX C startup code (ELF).19#2021#22# Globals.23#24.global _start25#26# Client entry point.27#28_start: cld29pushl %eax30movl $_edata,%edi31movl $_end,%ecx32subl %edi, %ecx33xorb %al, %al34rep35stosb36popl __base37movl %esp,%eax # Set38addl $ARGADJ,%eax # argument39movl %eax,__args # pointer40call main # Invoke client main()41call exit # Invoke client exit()42#43# Data.44#45.comm __base,4 # Client base address46.comm __args,4 # Client arguments474849