Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm Expose vm_inherit/voff_t/pgoff_t to userland to fix ...



details:   https://anonhg.NetBSD.org/src/rev/bfee0b5cf865
branches:  trunk
changeset: 778199:bfee0b5cf865
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Mon Mar 19 00:17:08 2012 +0000

description:
Expose vm_inherit/voff_t/pgoff_t to userland to fix build.

diffstat:

 sys/uvm/uvm_param.h |  23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 deletions(-)

diffs (43 lines):

diff -r 054e3bb820db -r bfee0b5cf865 sys/uvm/uvm_param.h
--- a/sys/uvm/uvm_param.h       Sun Mar 18 23:48:00 2012 +0000
+++ b/sys/uvm/uvm_param.h       Mon Mar 19 00:17:08 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_param.h,v 1.30 2012/03/18 13:31:15 uebayasi Exp $  */
+/*     $NetBSD: uvm_param.h,v 1.31 2012/03/19 00:17:08 uebayasi Exp $  */
 
 /*
  * Copyright (c) 1991, 1993
@@ -249,16 +249,6 @@
 # endif /* VM_DEFAULT_ADDRESS */
 #endif /* !__USING_TOPDOWN_VM */
 
-/*
- * typedefs, necessary for standard UVM headers.
- */
-
-typedef unsigned int uvm_flag_t;
-
-typedef int vm_inherit_t;      /* XXX: inheritance codes */
-typedef off_t voff_t;          /* XXX: offset within a uvm_object */
-typedef voff_t pgoff_t;                /* XXX: number of pages within a uvm object */
-
 extern int             ubc_nwins;      /* number of UBC mapping windows */
 extern int             ubc_winshift;   /* shift for a UBC mapping window */
 extern u_int           uvm_emap_size;  /* size of emap */
@@ -272,5 +262,16 @@
        ((((vaddr_t)(x)) / vm_page_size) * vm_page_size)
 
 #endif /* _KERNEL */
+
+/*
+ * typedefs, necessary for standard UVM headers.
+ */
+
+typedef unsigned int uvm_flag_t;
+
+typedef int vm_inherit_t;      /* XXX: inheritance codes */
+typedef off_t voff_t;          /* XXX: offset within a uvm_object */
+typedef voff_t pgoff_t;                /* XXX: number of pages within a uvm object */
+
 #endif /* ASSEMBLER */
 #endif /* _VM_PARAM_ */



Home | Main Index | Thread Index | Old Index