1 /* Copyright (C) 1994 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public
15 License along with the GNU C Library; see the file COPYING.LIB. If
16 not, write to the Free Software Foundation, Inc., 675 Mass Ave,
17 Cambridge, MA 02139, USA. */
19 /* sysdeps/mach/MACHINE/sysdep.h should define these macros. */
21 /* Produce a text assembler label for the C global symbol NAME. */
24 #error ENTRY not defined by sysdeps/mach/MACHINE/sysdep.h
27 /* Define a C function called NAME which does system call NUMBER. */
29 #define SYSCALL_TRAP(name, number)
30 #error SYSCALL_TRAP not defined by sysdeps/mach/MACHINE/sysdep.h
33 /* Set variables ARGC, ARGV, and ENVP for the arguments
34 left on the stack by the microkernel. */
36 #define SNARF_ARGS(argc, argv, envp)
37 #error SNARF_ARGS not defined by sysdeps/mach/MACHINE/sysdep.h
40 /* Call the C function FN with no arguments,
41 on a stack starting at SP (as returned by *_cthread_init_routine).
42 You don't need to deal with FN returning; it shouldn't. */
44 #define CALL_WITH_SP(fn, sp)
45 #error CALL_WITH_SP not defined by sysdeps/mach/MACHINE/sysdep.h
48 /* LOSE can be defined as the `halt' instruction or something
49 similar which will cause the process to die in a characteristic
50 way suggesting a bug. */
52 #define LOSE __task_terminate (__mach_task_self ())
55 /* One of these should be defined to specify the stack direction. */
56 #if !defined (STACK_GROWTH_UP) && !defined (STACK_GROWTH_DOWN)
57 #error stack direction unspecified