[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 04/15] compute mach port size from the corresponding type
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 04/15] compute mach port size from the corresponding type |
Date: |
Sun, 28 Aug 2022 02:54:22 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Luca Dariz, le mar. 28 juin 2022 12:10:43 +0200, a ecrit:
> * ipc/ipc_machdep.h: re-define PORT_T_SIZE_IN_BITS to be computed from
> mach_port_t instead of being hardcoded.
>
> Signed-off-by: Luca Dariz <luca@orpolo.org>
Applied, thanks!
> ---
> ipc/ipc_machdep.h | 12 +++---------
> 1 file changed, 3 insertions(+), 9 deletions(-)
>
> diff --git a/ipc/ipc_machdep.h b/ipc/ipc_machdep.h
> index c205ba45..29878dc9 100755
> --- a/ipc/ipc_machdep.h
> +++ b/ipc/ipc_machdep.h
> @@ -27,18 +27,12 @@
> #ifndef _IPC_IPC_MACHDEP_H_
> #define _IPC_IPC_MACHDEP_H_
>
> +#include <mach/message.h>
> +
> /*
> * At times, we need to know the size of a port in bits
> */
>
> -/* 64 bit machines */
> -#if defined(__alpha)
> -#define PORT_T_SIZE_IN_BITS 64
> -#endif
> -
> -/* default, 32 bit machines */
> -#if !defined(PORT_T_SIZE_IN_BITS)
> -#define PORT_T_SIZE_IN_BITS 32
> -#endif
> +#define PORT_T_SIZE_IN_BITS (sizeof(mach_port_t)*8)
>
> #endif /* _IPC_IPC_MACHDEP_H_ */
> --
> 2.30.2
>
>
--
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH 04/15] compute mach port size from the corresponding type,
Samuel Thibault <=