Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/nathanw_sa]: src/sys/arch/i386/include Define an alignment constraint, _...



details:   https://anonhg.NetBSD.org/src/rev/72283acb21c4
branches:  nathanw_sa
changeset: 506217:72283acb21c4
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Fri Sep 06 17:49:16 2002 +0000

description:
Define an alignment constraint, _UC_UCONTEXT_ALIGN; put it and
_UC_MACHINE_SP() inside #ifdef _KERNEL.

diffstat:

 sys/arch/i386/include/mcontext.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 1bad23d7994a -r 72283acb21c4 sys/arch/i386/include/mcontext.h
--- a/sys/arch/i386/include/mcontext.h  Fri Sep 06 17:37:53 2002 +0000
+++ b/sys/arch/i386/include/mcontext.h  Fri Sep 06 17:49:16 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mcontext.h,v 1.1.2.3 2002/08/14 18:26:43 nathanw Exp $ */
+/*     $NetBSD: mcontext.h,v 1.1.2.4 2002/09/06 17:49:16 nathanw Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -101,6 +101,9 @@
 
 #define _UC_MACHINE_PAD        5       /* Padding appended to ucontext_t */
 
+#ifdef _KERNEL
 #define _UC_MACHINE_SP(uc)     ((uc)->uc_mcontext.__gregs[_REG_UESP])
+#define _UC_UCONTEXT_ALIGN     (~0xf)
+#endif
 
 #endif /* !_I386_MCONTEXT_H_ */



Home | Main Index | Thread Index | Old Index