File tree Expand file tree Collapse file tree 8 files changed +16
-16
lines changed Expand file tree Collapse file tree 8 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 1
- /* $OpenBSD: vmparam.h,v 1.14 2005/04/11 15:12:59 deraadt Exp $ */
1
+ /* $OpenBSD: vmparam.h,v 1.15 2008/06/24 21:24:01 deraadt Exp $ */
2
2
/* $NetBSD: vmparam.h,v 1.18 2000/05/22 17:13:54 thorpej Exp $ */
3
3
4
4
/*
102
102
*/
103
103
104
104
/* user/kernel map constants */
105
- #define VM_MIN_ADDRESS ((vaddr_t)ALPHA_USEG_BASE) /* 0 */
105
+ #define VM_MIN_ADDRESS ((vaddr_t)PAGE_SIZE)
106
106
#define VM_MAXUSER_ADDRESS ((vaddr_t)(ALPHA_USEG_END + 1L)) /* 4T */
107
107
#define VM_MAX_ADDRESS VM_MAXUSER_ADDRESS
108
108
#define VM_MIN_KERNEL_ADDRESS ((vaddr_t)ALPHA_K1SEG_BASE)
Original file line number Diff line number Diff line change 1
- /* $OpenBSD: vmparam.h,v 1.8 2008/06/10 02:55:39 weingart Exp $ */
1
+ /* $OpenBSD: vmparam.h,v 1.9 2008/06/24 21:24:03 deraadt Exp $ */
2
2
/* $NetBSD: vmparam.h,v 1.1 2003/04/26 18:39:49 fvdl Exp $ */
3
3
4
4
/*-
88
88
*/
89
89
90
90
/* user/kernel map constants */
91
- #define VM_MIN_ADDRESS 0
91
+ #define VM_MIN_ADDRESS PAGE_SIZE
92
92
#define VM_MAXUSER_ADDRESS 0x00007f7fffffc000
93
93
#define VM_MAX_ADDRESS 0x00007fbfdfeff000
94
94
#define VM_MIN_KERNEL_ADDRESS 0xffff800000000000
Original file line number Diff line number Diff line change 1
- /* $OpenBSD: vmparam.h,v 1.3 2005/04/11 15:13:01 deraadt Exp $ */
1
+ /* $OpenBSD: vmparam.h,v 1.4 2008/06/24 21:24:03 deraadt Exp $ */
2
2
/* $NetBSD: vmparam.h,v 1.18 2003/05/21 18:04:44 thorpej Exp $ */
3
3
4
4
/*
91
91
/*
92
92
* Mach derived constants
93
93
*/
94
- #define VM_MIN_ADDRESS ((vaddr_t) 0x00001000 )
94
+ #define VM_MIN_ADDRESS ((vaddr_t) PAGE_SIZE )
95
95
#define VM_MAXUSER_ADDRESS ((vaddr_t) ARM_KERNEL_BASE)
96
96
#define VM_MAX_ADDRESS VM_MAXUSER_ADDRESS
97
97
Original file line number Diff line number Diff line change 1
- /* $OpenBSD: vmparam.h,v 1.39 2007 /06/01 18:57:02 miod Exp $ */
1
+ /* $OpenBSD: vmparam.h,v 1.40 2008 /06/24 21:24:03 deraadt Exp $ */
2
2
/* $NetBSD: vmparam.h,v 1.15 1994/10/27 04:16:34 cgd Exp $ */
3
3
4
4
/*-
96
96
#define DEADBEEF1 0xefffaabb /* pool's filler */
97
97
98
98
/* user/kernel map constants */
99
- #define VM_MIN_ADDRESS ((vaddr_t)0 )
99
+ #define VM_MIN_ADDRESS ((vaddr_t)PAGE_SIZE )
100
100
#define VM_MAXUSER_ADDRESS ((vaddr_t)((PDSLOT_PTE<<PDSHIFT) - USPACE))
101
101
#define VM_MAX_ADDRESS ((vaddr_t)((PDSLOT_PTE<<PDSHIFT) + \
102
102
(PDSLOT_PTE<<PGSHIFT)))
Original file line number Diff line number Diff line change 1
- /* $OpenBSD: vmparam.h,v 1.4 2007/09/02 21:18:08 hshoexer Exp $ */
1
+ /* $OpenBSD: vmparam.h,v 1.5 2008/06/24 21:24:03 deraadt Exp $ */
2
2
/* $NetBSD: vmparam.h,v 1.17 2006/03/04 01:55:03 uwe Exp $ */
3
3
4
4
/*-
42
42
#include <sys/queue.h>
43
43
44
44
/* Virtual address map. */
45
- #define VM_MIN_ADDRESS ((vaddr_t)0 )
45
+ #define VM_MIN_ADDRESS ((vaddr_t)PAGE_SIZE )
46
46
#define VM_MAXUSER_ADDRESS ((vaddr_t)0x7ffff000)
47
47
#define VM_MAX_ADDRESS ((vaddr_t)0x7ffff000)
48
48
#define VM_MIN_KERNEL_ADDRESS ((vaddr_t)0xc0000000)
Original file line number Diff line number Diff line change 1
- /* $OpenBSD: trap.c,v 1.12 2007/03/15 10:22:29 art Exp $ */
1
+ /* $OpenBSD: trap.c,v 1.13 2008/06/24 21:24:03 deraadt Exp $ */
2
2
/* $NetBSD: exception.c,v 1.32 2006/09/04 23:57:52 uwe Exp $ */
3
3
/* $NetBSD: syscall.c,v 1.6 2006/03/07 07:21:50 thorpej Exp $ */
4
4
@@ -510,7 +510,7 @@ cachectl(struct proc *p, struct trapframe *tf)
510
510
va = (vaddr_t )tf -> tf_r4 ;
511
511
len = (vsize_t )tf -> tf_r5 ;
512
512
513
- if (/* va < VM_MIN_ADDRESS || */ va >= VM_MAXUSER_ADDRESS ||
513
+ if (va < VM_MIN_ADDRESS || va >= VM_MAXUSER_ADDRESS ||
514
514
va + len <= va || va + len >= VM_MAXUSER_ADDRESS )
515
515
len = 0 ;
516
516
Original file line number Diff line number Diff line change 1
- /* $OpenBSD: vmparam.h,v 1.31 2005/04/17 18:47:48 miod Exp $ */
1
+ /* $OpenBSD: vmparam.h,v 1.32 2008/06/24 21:24:03 deraadt Exp $ */
2
2
/* $NetBSD: vmparam.h,v 1.13 1997/07/12 16:20:03 perry Exp $ */
3
3
4
4
/*
89
89
* IO space virtual base, which must be the same as VM_MAX_KERNEL_ADDRESS:
90
90
* tread with care.
91
91
*/
92
- #define VM_MIN_ADDRESS ((vaddr_t)0 )
92
+ #define VM_MIN_ADDRESS ((vaddr_t)__LDPGSZ )
93
93
#define VM_MAX_ADDRESS ((vaddr_t)VM_MIN_KERNEL_ADDRESS)
94
94
#define VM_MAXUSER_ADDRESS ((vaddr_t)VM_MIN_KERNEL_ADDRESS)
95
95
#define VM_MIN_KERNEL_ADDRESS ((vaddr_t)KERNBASE)
Original file line number Diff line number Diff line change 1
- /* $OpenBSD: vmparam.h,v 1.28 2007/04/22 10:05:51 miod Exp $ */
1
+ /* $OpenBSD: vmparam.h,v 1.29 2008/06/24 21:24:03 deraadt Exp $ */
2
2
/* $NetBSD: vmparam.h,v 1.32 2000/03/07 00:05:59 matt Exp $ */
3
3
4
4
/*-
97
97
#define vax_trunc_page (x ) ((vaddr_t)(x) & ~VAX_PGOFSET)
98
98
99
99
/* user/kernel map constants */
100
- #define VM_MIN_ADDRESS ((vaddr_t)0 )
100
+ #define VM_MIN_ADDRESS ((vaddr_t)PAGE_SIZE )
101
101
#define VM_MAXUSER_ADDRESS ((vaddr_t)KERNBASE)
102
102
#define VM_MAX_ADDRESS ((vaddr_t)KERNBASE)
103
103
#define VM_MIN_KERNEL_ADDRESS ((vaddr_t)KERNBASE)
You can’t perform that action at this time.
0 commit comments