Deleted Added
full compact
vmparam.h (281495) vmparam.h (282274)
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 * Copyright (c) 1994 John S. Dyson
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * William Jolitz.

--- 18 unchanged lines hidden (view full) ---

27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * from: @(#)vmparam.h 5.9 (Berkeley) 5/12/91
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 * Copyright (c) 1994 John S. Dyson
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * William Jolitz.

--- 18 unchanged lines hidden (view full) ---

27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * from: @(#)vmparam.h 5.9 (Berkeley) 5/12/91
35 * $FreeBSD: head/sys/i386/include/vmparam.h 281495 2015-04-13 15:22:45Z kib $
35 * $FreeBSD: head/sys/i386/include/vmparam.h 282274 2015-04-30 15:48:48Z jhb $
36 */
37
38
39#ifndef _MACHINE_VMPARAM_H_
40#define _MACHINE_VMPARAM_H_ 1
41
42/*
43 * Machine dependent constants for 386.

--- 86 unchanged lines hidden (view full) ---

130#define VM_LEVEL_0_ORDER 10
131#endif
132#endif
133
134/*
135 * Kernel physical load address.
136 */
137#ifndef KERNLOAD
36 */
37
38
39#ifndef _MACHINE_VMPARAM_H_
40#define _MACHINE_VMPARAM_H_ 1
41
42/*
43 * Machine dependent constants for 386.

--- 86 unchanged lines hidden (view full) ---

130#define VM_LEVEL_0_ORDER 10
131#endif
132#endif
133
134/*
135 * Kernel physical load address.
136 */
137#ifndef KERNLOAD
138#if defined(XEN) && !defined(XEN_PRIVILEGED_GUEST)
139#define KERNLOAD 0
140#else
141#define KERNLOAD (1 << PDRSHIFT)
138#define KERNLOAD (1 << PDRSHIFT)
142#endif
143#endif /* !defined(KERNLOAD) */
144
145/*
146 * Virtual addresses of things. Derived from the page directory and
147 * page table indexes from pmap.h for precision.
148 * Because of the page that is both a PD and PT, it looks a little
149 * messy at times, but hey, we'll do anything to save a page :-)
150 */
151
139#endif /* !defined(KERNLOAD) */
140
141/*
142 * Virtual addresses of things. Derived from the page directory and
143 * page table indexes from pmap.h for precision.
144 * Because of the page that is both a PD and PT, it looks a little
145 * messy at times, but hey, we'll do anything to save a page :-)
146 */
147
152#ifdef XEN
153#define VM_MAX_KERNEL_ADDRESS HYPERVISOR_VIRT_START
154#else
155#define VM_MAX_KERNEL_ADDRESS VADDR(KPTDI+NKPDE-1, NPTEPG-1)
148#define VM_MAX_KERNEL_ADDRESS VADDR(KPTDI+NKPDE-1, NPTEPG-1)
156#endif
157
158#define VM_MIN_KERNEL_ADDRESS VADDR(PTDPTDI, PTDPTDI)
159
160#define KERNBASE VADDR(KPTDI, 0)
161
162#define UPT_MAX_ADDRESS VADDR(PTDPTDI, PTDPTDI)
163#define UPT_MIN_ADDRESS VADDR(PTDPTDI, 0)
164

--- 48 unchanged lines hidden ---
149
150#define VM_MIN_KERNEL_ADDRESS VADDR(PTDPTDI, PTDPTDI)
151
152#define KERNBASE VADDR(KPTDI, 0)
153
154#define UPT_MAX_ADDRESS VADDR(PTDPTDI, PTDPTDI)
155#define UPT_MIN_ADDRESS VADDR(PTDPTDI, 0)
156

--- 48 unchanged lines hidden ---