mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
mach: Drop SNARF_ARGS macro
We're obtaining arguments from the stack differently, see init-first.c. Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
This commit is contained in:
parent
114de961e0
commit
0d4a2f3576
@ -56,13 +56,6 @@
|
|||||||
/* This is not used on all machines. */
|
/* This is not used on all machines. */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Set variables ARGC, ARGV, and ENVP for the arguments
|
|
||||||
left on the stack by the microkernel. */
|
|
||||||
#ifndef SNARF_ARGS
|
|
||||||
#define SNARF_ARGS(argc, argv, envp)
|
|
||||||
#error SNARF_ARGS not defined by sysdeps/mach/MACHINE/sysdep.h
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* LOSE can be defined as the `halt' instruction or something
|
/* LOSE can be defined as the `halt' instruction or something
|
||||||
similar which will cause the process to die in a characteristic
|
similar which will cause the process to die in a characteristic
|
||||||
way suggesting a bug. */
|
way suggesting a bug. */
|
||||||
|
@ -25,20 +25,6 @@
|
|||||||
|
|
||||||
#define LOSE asm volatile ("hlt")
|
#define LOSE asm volatile ("hlt")
|
||||||
|
|
||||||
#define SNARF_ARGS(entry_sp, argc, argv, envp) \
|
|
||||||
do \
|
|
||||||
{ \
|
|
||||||
char **p; \
|
|
||||||
argc = (int) *entry_sp; \
|
|
||||||
argv = (char **) (entry_sp + 1); \
|
|
||||||
p = argv; \
|
|
||||||
while (*p++ != NULL) \
|
|
||||||
; \
|
|
||||||
if (p >= (char **) argv[0]) \
|
|
||||||
--p; \
|
|
||||||
envp = p; \
|
|
||||||
} while (0)
|
|
||||||
|
|
||||||
#define STACK_GROWTH_DOWN
|
#define STACK_GROWTH_DOWN
|
||||||
|
|
||||||
/* Get the machine-independent Mach definitions. */
|
/* Get the machine-independent Mach definitions. */
|
||||||
|
Loading…
Reference in New Issue
Block a user