There's no point in having two separate sets of padding; add the local

__filler bytes to _UC_MACHINE_PAD.
This commit is contained in:
pk 2003-10-12 16:01:35 +00:00
parent f70031fee9
commit 179cafcae3

View File

@ -1,4 +1,4 @@
/* $NetBSD: mcontext.h,v 1.3 2003/10/08 22:43:01 thorpej Exp $ */
/* $NetBSD: mcontext.h,v 1.4 2003/10/12 16:01:35 pk Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -149,18 +149,13 @@ typedef struct {
#ifdef __arch64__
__asrset_t __asrs; /* ASR state */
#endif
#ifdef __arch64__
long int __filler[4];
#else
long int __filler[19];
#endif
} mcontext_t;
} mcontext_t;
#ifdef __arch64__
#define _UC_MACHINE_PAD 4 /* Padding appended to ucontext_t */
#define _UC_MACHINE_PAD 8 /* Padding appended to ucontext_t */
#define _UC_MACHINE_SP(uc) (((uc)->uc_mcontext.__gregs[_REG_O6])+0x7ff)
#else
#define _UC_MACHINE_PAD 23 /* Padding appended to ucontext_t */
#define _UC_MACHINE_PAD 43 /* Padding appended to ucontext_t */
#define _UC_MACHINE_SP(uc) ((uc)->uc_mcontext.__gregs[_REG_O6])
#endif
#define _UC_MACHINE_PC(uc) ((uc)->uc_mcontext.__gregs[_REG_PC])