diff options
author | 2013-05-29 20:36:12 +0000 | |
---|---|---|
committer | 2013-05-29 20:36:12 +0000 | |
commit | 9cb97e1e0fef0df1ce075b9dde69abb418c6ab0a (patch) | |
tree | 4b3980403435728c6d3db972603627ec97a00aec | |
parent | sync (diff) | |
download | wireguard-openbsd-9cb97e1e0fef0df1ce075b9dde69abb418c6ab0a.tar.xz wireguard-openbsd-9cb97e1e0fef0df1ce075b9dde69abb418c6ab0a.zip |
Add PMAP_PA_MASK to mips64. Needed for loongson hibernate.
Okay miod@.
-rw-r--r-- | sys/arch/mips64/include/pmap.h | 8 |
1 files changed, 7 insertions, 1 deletions
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_ */ |