[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 06/23] mach: Drop SNARF_ARGS macro
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 06/23] mach: Drop SNARF_ARGS macro |
Date: |
Wed, 3 Jan 2024 22:00:28 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Applied, thanks!
Sergey Bugaev, le mer. 03 janv. 2024 20:14:39 +0300, a ecrit:
> We're obtaining arguments from the stack differently, see init-first.c.
>
> Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
> ---
> 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 8eeac45b..3e0553d8 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 ed9f7f46..63be5638 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. */
> --
> 2.43.0
>
>
--
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.
- [PATCH 02/23] hurd: Declare _hurd_intr_rpc_msg* with protected visibility, (continued)
- [PATCH 02/23] hurd: Declare _hurd_intr_rpc_msg* with protected visibility, Sergey Bugaev, 2024/01/03
- [PATCH 04/23] mach: Drop some unnecessary vm_param.h includes, Sergey Bugaev, 2024/01/03
- [RFC PATCH 03/23] Allow glibc to be compiled without EXEC_PAGESIZE, Sergey Bugaev, 2024/01/03
- [RFC PATCH 08/23] hurd: Drop x86-specific assembly from init-first.c, Sergey Bugaev, 2024/01/03
- [RFC PATCH 07/23] hurd: Pass the data pointer to _hurd_stack_setup explicitly, Sergey Bugaev, 2024/01/03
- [PATCH 06/23] mach: Drop SNARF_ARGS macro, Sergey Bugaev, 2024/01/03
- Re: [PATCH 06/23] mach: Drop SNARF_ARGS macro,
Samuel Thibault <=
- [RFC PATCH 09/23] hurd: Make init-first.c no longer x86-specific, Sergey Bugaev, 2024/01/03
- [RFC PATCH 10/23] hurd: Only init early static TLS if it's used to store stack or pointer guards, Sergey Bugaev, 2024/01/03
- [RFC PATCH 11/23] hurd: Initializy _dl_pagesize early in static builds, Sergey Bugaev, 2024/01/03
- [RFC PATCH 12/23] aarch64: Make cpu-features definitions not Linux-specific, Sergey Bugaev, 2024/01/03
- [RFC PATCH 13/23] aarch64: Add dl-procinfo, Sergey Bugaev, 2024/01/03
- [RFC PATCH 14/23] aarch64: Allow building without kernel support for BTI, Sergey Bugaev, 2024/01/03