1/** 2 * \file 3 * \brief libc startup code. 4 */ 5 6/* 7 * Copyright (c) 2007, 2008, 2009, 2010, 2011, ETH Zurich. 8 * All rights reserved. 9 * 10 * This file is distributed under the terms in the attached LICENSE file. 11 * If you do not find this file, copies can be found by writing to: 12 * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group. 13 */ 14 15#include <barrelfish/dispatch.h> 16#include <asmoffsets.h> 17 18 .text 19 .globl _start, _start_init 20 21_start: 22 mov $0, %esi 23 24_start_generic: 25 // Initialize stack for setup code 26 movl %edi, %esp 27 addl $(OFFSETOF_DISP_PRIV_STACK_LIMIT), %esp 28 29 // Call barrelfish_init_disabled (doesn't return) 30 push %esi 31 push %edi 32 call barrelfish_init_disabled 33 34/* special entry point for init domain */ 35_start_init: 36 movl $1, %esi 37 jmp _start_generic 38