mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Use UPAGES_HOLE instead of UPAGES in case it's changed some time.
Rename the PT* index KSTK* #defines to UMAX*, since we don't have a kernel stack there any more.. These are used to calculate VM_MAXUSER_ADDRESS and USRSTACK, and really do not want to be changed with UPAGES since BSD/OS 2.x binary compatability depends on it.
This commit is contained in:
parent
de871ab682
commit
a0c3795f19
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24696
@ -42,7 +42,7 @@
|
||||
*
|
||||
* from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90
|
||||
* from: @(#)pmap.h 7.4 (Berkeley) 5/12/91
|
||||
* $Id$
|
||||
* $Id: pmap.h,v 1.48 1997/02/22 09:34:58 peter Exp $
|
||||
*/
|
||||
|
||||
#ifndef _MACHINE_PMAP_H_
|
||||
@ -103,8 +103,8 @@
|
||||
#define APTDPTDI (NPDEPG-1) /* alt ptd entry that points to APTD */
|
||||
#define KPTDI (APTDPTDI-NKPDE)/* start of kernel virtual pde's */
|
||||
#define PTDPTDI (KPTDI-1) /* ptd entry that points to ptd! */
|
||||
#define KSTKPTDI (PTDPTDI-1) /* ptd entry for u./kernel&user stack */
|
||||
#define KSTKPTEOFF (NPTEPG-UPAGES) /* pte entry for kernel stack */
|
||||
#define UMAXPTDI (PTDPTDI-1) /* ptd entry for user space end */
|
||||
#define UMAXPTEOFF (NPTEPG-UPAGES_HOLE) /* pte entry for user space end */
|
||||
|
||||
/*
|
||||
* XXX doesn't really belong here I guess...
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)vmparam.h 5.9 (Berkeley) 5/12/91
|
||||
* $Id$
|
||||
* $Id: vmparam.h,v 1.24 1997/02/22 09:35:23 peter Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -108,7 +108,7 @@
|
||||
#define UPT_MAX_ADDRESS VADDR(PTDPTDI, PTDPTDI)
|
||||
#define UPT_MIN_ADDRESS VADDR(PTDPTDI, 0)
|
||||
|
||||
#define VM_MAXUSER_ADDRESS VADDR(KSTKPTDI, KSTKPTEOFF)
|
||||
#define VM_MAXUSER_ADDRESS VADDR(UMAXPTDI, UMAXPTEOFF)
|
||||
|
||||
#define USRSTACK VM_MAXUSER_ADDRESS
|
||||
|
||||
|
@ -42,7 +42,7 @@
|
||||
*
|
||||
* from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90
|
||||
* from: @(#)pmap.h 7.4 (Berkeley) 5/12/91
|
||||
* $Id$
|
||||
* $Id: pmap.h,v 1.48 1997/02/22 09:34:58 peter Exp $
|
||||
*/
|
||||
|
||||
#ifndef _MACHINE_PMAP_H_
|
||||
@ -103,8 +103,8 @@
|
||||
#define APTDPTDI (NPDEPG-1) /* alt ptd entry that points to APTD */
|
||||
#define KPTDI (APTDPTDI-NKPDE)/* start of kernel virtual pde's */
|
||||
#define PTDPTDI (KPTDI-1) /* ptd entry that points to ptd! */
|
||||
#define KSTKPTDI (PTDPTDI-1) /* ptd entry for u./kernel&user stack */
|
||||
#define KSTKPTEOFF (NPTEPG-UPAGES) /* pte entry for kernel stack */
|
||||
#define UMAXPTDI (PTDPTDI-1) /* ptd entry for user space end */
|
||||
#define UMAXPTEOFF (NPTEPG-UPAGES_HOLE) /* pte entry for user space end */
|
||||
|
||||
/*
|
||||
* XXX doesn't really belong here I guess...
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)vmparam.h 5.9 (Berkeley) 5/12/91
|
||||
* $Id$
|
||||
* $Id: vmparam.h,v 1.24 1997/02/22 09:35:23 peter Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -108,7 +108,7 @@
|
||||
#define UPT_MAX_ADDRESS VADDR(PTDPTDI, PTDPTDI)
|
||||
#define UPT_MIN_ADDRESS VADDR(PTDPTDI, 0)
|
||||
|
||||
#define VM_MAXUSER_ADDRESS VADDR(KSTKPTDI, KSTKPTEOFF)
|
||||
#define VM_MAXUSER_ADDRESS VADDR(UMAXPTDI, UMAXPTEOFF)
|
||||
|
||||
#define USRSTACK VM_MAXUSER_ADDRESS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user