From 9aed1af5985c1aba5c1d2229c080737fa4228099 Mon Sep 17 00:00:00 2001 From: Paul Irofti Date: Wed, 29 May 2013 20:36:13 +0000 Subject: Add PMAP_PA_MASK to mips64. Needed for loongson hibernate. Okay miod@. --- sys/arch/mips64/include/pmap.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/arch/mips64/include/pmap.h b/sys/arch/mips64/include/pmap.h index aee2fb6b8eb..9db0f268fff 100644 --- a/sys/arch/mips64/include/pmap.h +++ b/sys/arch/mips64/include/pmap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.h,v 1.28 2012/05/10 21:12:26 miod Exp $ */ +/* $OpenBSD: pmap.h,v 1.29 2013/05/29 20:36:12 pirofti Exp $ */ /* * Copyright (c) 1987 Carnegie-Mellon University @@ -168,6 +168,12 @@ vaddr_t pmap_map_direct(vm_page_t); vm_page_t pmap_unmap_direct(vaddr_t); #endif +/* + * MD flags to pmap_enter: + */ + +#define PMAP_PA_MASK ~((paddr_t)PAGE_MASK) + #endif /* _KERNEL */ #endif /* !_MIPS64_PMAP_H_ */ -- cgit v1.2.3