override KSTACK_LOWEST_ADDR and KSTACK_SIZE for redzone.
This commit is contained in:
parent
65f69fe0f2
commit
663d2c5069
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: proc.h,v 1.14 2001/09/10 10:11:21 fvdl Exp $ */
|
||||
/* $NetBSD: proc.h,v 1.15 2002/10/11 17:49:11 yamt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991 Regents of the University of California.
|
||||
@ -51,3 +51,12 @@ struct mdproc {
|
||||
/* md_flags */
|
||||
#define MDP_USEDFPU 0x0001 /* has used the FPU */
|
||||
#define MDP_USEDMTRR 0x0002 /* has set volatile MTRRs */
|
||||
|
||||
/* kernel stack params */
|
||||
#ifndef NOREDZONE
|
||||
/* override default for redzone */
|
||||
#define KSTACK_LOWEST_ADDR(p) \
|
||||
((caddr_t)ALIGN((p)->p_addr + 1) + NBPG)
|
||||
#define KSTACK_SIZE \
|
||||
(USPACE - NBPG*2)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user