Add ALIGNBYTES32/ALIGN32 for netbsd32.
This commit is contained in:
parent
645c524104
commit
c97a1e79d0
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mips_param.h,v 1.32 2012/01/24 20:03:37 christos Exp $ */
|
||||
/* $NetBSD: mips_param.h,v 1.33 2012/02/01 02:05:51 matt Exp $ */
|
||||
|
||||
#ifdef _KERNEL
|
||||
#include <machine/cpu.h>
|
||||
|
@ -40,6 +40,9 @@
|
|||
#define MACHINE "mips"
|
||||
#endif
|
||||
|
||||
#define ALIGNBYTES32 (sizeof(double) - 1)
|
||||
#define ALIGN32(p) (((uintptr_t)(p) + ALIGNBYTES32) &~ALIGNBYTES32)
|
||||
|
||||
/*
|
||||
* On mips, UPAGES is fixed by sys/arch/mips/mips/locore code
|
||||
* to be the number of per-process-wired kernel-stack pages/PTES.
|
||||
|
|
Loading…
Reference in New Issue