aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2024-01-03 20:14:39 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-01-03 21:59:55 +0100
commit0d4a2f3576ebd92ca0001645a533bf70289f264e (patch)
tree3d1467a1d0ef8b1b29b8040b0be8dcb7a423dd5f /sysdeps/mach
parent114de961e093a815b1fd6f53a92ec120fb84c092 (diff)
downloadglibc-0d4a2f3576ebd92ca0001645a533bf70289f264e.zip
glibc-0d4a2f3576ebd92ca0001645a533bf70289f264e.tar.gz
glibc-0d4a2f3576ebd92ca0001645a533bf70289f264e.tar.bz2
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>
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/sysdep.h7
-rw-r--r--sysdeps/mach/x86/sysdep.h14
2 files changed, 0 insertions, 21 deletions
diff --git a/sysdeps/mach/sysdep.h b/sysdeps/mach/sysdep.h
index 8eeac45..3e0553d 100644
--- a/sysdeps/mach/sysdep.h
+++ b/sysdeps/mach/sysdep.h
@@ -56,13 +56,6 @@
/* This is not used on all machines. */
#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
similar which will cause the process to die in a characteristic
way suggesting a bug. */
diff --git a/sysdeps/mach/x86/sysdep.h b/sysdeps/mach/x86/sysdep.h
index ed9f7f4..63be563 100644
--- a/sysdeps/mach/x86/sysdep.h
+++ b/sysdeps/mach/x86/sysdep.h
@@ -25,20 +25,6 @@
#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
/* Get the machine-independent Mach definitions. */