summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>1999-02-26 04:19:25 +0000
committerart <art@openbsd.org>1999-02-26 04:19:25 +0000
commit95d44b90cc717dd64a39d712602d3adb15d4397b (patch)
tree305fc0837b35c72e32e0c7b63f63edae1e248e8a
parentsome defines needed by uvm (diff)
downloadwireguard-openbsd-95d44b90cc717dd64a39d712602d3adb15d4397b.tar.xz
wireguard-openbsd-95d44b90cc717dd64a39d712602d3adb15d4397b.zip
typedefs for {v,p}addr_t and {v,p}size_t needed by uvm.
We should consider switching to those some day.
-rw-r--r--sys/arch/i386/include/types.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/i386/include/types.h b/sys/arch/i386/include/types.h
index 41f4f6e50f8..c8391f16d8b 100644
--- a/sys/arch/i386/include/types.h
+++ b/sys/arch/i386/include/types.h
@@ -1,5 +1,5 @@
/* $NetBSD: types.h,v 1.12 1995/12/24 01:08:03 mycroft Exp $ */
-/* $OpenBSD: types.h,v 1.5 1999/01/08 03:04:07 millert Exp $ */
+/* $OpenBSD: types.h,v 1.6 1999/02/26 04:19:25 art Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -54,6 +54,14 @@ typedef struct label_t {
typedef unsigned long vm_offset_t;
typedef unsigned long vm_size_t;
+#ifdef UVM
+/* UVM compat (or we should consider switching to those) */
+typedef unsigned long paddr_t;
+typedef unsigned long psize_t;
+typedef unsigned long vaddr_t;
+typedef unsigned long vsize_t;
+#endif
+
/*
* Basic integral types. Omit the typedef if
* not possible for a machine/compiler combination.