public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] mach: Drop SNARF_ARGS macro
@ 2024-01-03 21:00 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2024-01-03 21:00 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0d4a2f3576ebd92ca0001645a533bf70289f264e
commit 0d4a2f3576ebd92ca0001645a533bf70289f264e
Author: Sergey Bugaev <bugaevc@gmail.com>
Date: Wed Jan 3 20:14:39 2024 +0300
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>
Diff:
---
sysdeps/mach/sysdep.h | 7 -------
sysdeps/mach/x86/sysdep.h | 14 --------------
2 files changed, 21 deletions(-)
diff --git a/sysdeps/mach/sysdep.h b/sysdeps/mach/sysdep.h
index 8eeac45bad..3e0553d80f 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 ed9f7f462a..63be5638e8 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. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-03 21:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-03 21:00 [glibc] mach: Drop SNARF_ARGS macro Samuel Thibault
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).