diff options
author | 2014-12-13 16:26:13 +0000 | |
---|---|---|
committer | 2014-12-13 16:26:13 +0000 | |
commit | f7d58684337af132950a904c46db820a68d42541 (patch) | |
tree | 49275c4bf6287f0c166c2fd55a846f9801eac3d5 | |
parent | A first shot at MOP boot instructions. (diff) | |
download | wireguard-openbsd-f7d58684337af132950a904c46db820a68d42541.tar.xz wireguard-openbsd-f7d58684337af132950a904c46db820a68d42541.zip |
Provide our own copy of {round,trunc}_page() now that uvm's is unreachable from
non-_KERNEL code.
-rw-r--r-- | lib/libarch/alpha/bwx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libarch/alpha/bwx.c b/lib/libarch/alpha/bwx.c index 094c879e604..3647a914cac 100644 --- a/lib/libarch/alpha/bwx.c +++ b/lib/libarch/alpha/bwx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bwx.c,v 1.7 2014/04/18 15:09:52 guenther Exp $ */ +/* $OpenBSD: bwx.c,v 1.8 2014/12/13 16:26:13 miod Exp $ */ /*- * Copyright (c) 1998 Doug Rabson * All rights reserved. @@ -25,7 +25,6 @@ * SUCH DAMAGE. */ -#define vm_page_size (sysconf(_SC_PAGESIZE)) /* XXX */ #include <sys/param.h> #include <sys/mman.h> #include <sys/fcntl.h> @@ -40,6 +39,9 @@ #include "io.h" +#define round_page(x) (((x) + PAGE_MASK) & ~PAGE_MASK) +#define trunc_page(x) ((x) & ~PAGE_MASK) + #define PATH_APERTURE "/dev/xf86" #define mb() __asm__ volatile("mb" : : : "memory") |