Deleted Added
full compact
pte.h (279595) pte.h (285148)
1/*-
2 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
3 * Copyright (C) 1995, 1996 TooLs GmbH.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 *
31 * $NetBSD: pte.h,v 1.2 1998/08/31 14:43:40 tsubai Exp $
1/*-
2 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
3 * Copyright (C) 1995, 1996 TooLs GmbH.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 *
31 * $NetBSD: pte.h,v 1.2 1998/08/31 14:43:40 tsubai Exp $
32 * $FreeBSD: head/sys/powerpc/include/pte.h 279595 2015-03-04 17:04:22Z nwhitehorn $
32 * $FreeBSD: head/sys/powerpc/include/pte.h 285148 2015-07-04 19:00:38Z jhibbits $
33 */
34
35#ifndef _MACHINE_PTE_H_
36#define _MACHINE_PTE_H_
37
38#if defined(AIM)
39
40/*

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

205
206#define PTBL_HOLD_FLAG(pmap) (((pmap) == kernel_pmap) ? PTBL_HOLD : PTBL_UNHOLD)
207
208/*
209 * Page Table Entry definitions and macros.
210 */
211#ifndef LOCORE
212struct pte {
33 */
34
35#ifndef _MACHINE_PTE_H_
36#define _MACHINE_PTE_H_
37
38#if defined(AIM)
39
40/*

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

205
206#define PTBL_HOLD_FLAG(pmap) (((pmap) == kernel_pmap) ? PTBL_HOLD : PTBL_UNHOLD)
207
208/*
209 * Page Table Entry definitions and macros.
210 */
211#ifndef LOCORE
212struct pte {
213 vm_offset_t rpn;
213 vm_paddr_t rpn;
214 uint32_t flags;
215};
216typedef struct pte pte_t;
217#endif
218
219/* RPN mask, TLB0 4K pages */
220#define PTE_PA_MASK PAGE_MASK
221

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

268/* Macro argument must of pte_t type. */
269#define PTE_PA(pte) ((pte)->rpn & ~PTE_PA_MASK)
270#define PTE_ISVALID(pte) ((pte)->flags & PTE_VALID)
271#define PTE_ISWIRED(pte) ((pte)->flags & PTE_WIRED)
272#define PTE_ISMANAGED(pte) ((pte)->flags & PTE_MANAGED)
273#define PTE_ISMODIFIED(pte) ((pte)->flags & PTE_MODIFIED)
274#define PTE_ISREFERENCED(pte) ((pte)->flags & PTE_REFERENCED)
275
214 uint32_t flags;
215};
216typedef struct pte pte_t;
217#endif
218
219/* RPN mask, TLB0 4K pages */
220#define PTE_PA_MASK PAGE_MASK
221

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

268/* Macro argument must of pte_t type. */
269#define PTE_PA(pte) ((pte)->rpn & ~PTE_PA_MASK)
270#define PTE_ISVALID(pte) ((pte)->flags & PTE_VALID)
271#define PTE_ISWIRED(pte) ((pte)->flags & PTE_WIRED)
272#define PTE_ISMANAGED(pte) ((pte)->flags & PTE_MANAGED)
273#define PTE_ISMODIFIED(pte) ((pte)->flags & PTE_MODIFIED)
274#define PTE_ISREFERENCED(pte) ((pte)->flags & PTE_REFERENCED)
275
276#endif /* BOOKE_PPC4XX */
276#endif /* BOOKE */
277#endif /* _MACHINE_PTE_H_ */
277#endif /* _MACHINE_PTE_H_ */