Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch expose the kernel types for standalone code.
details: https://anonhg.NetBSD.org/src/rev/6d74f2dbbb31
branches: trunk
changeset: 343162:6d74f2dbbb31
user: christos <christos%NetBSD.org@localhost>
date: Sat Jan 23 22:31:19 2016 +0000
description:
expose the kernel types for standalone code.
diffstat:
sys/arch/aarch64/include/types.h | 4 ++--
sys/arch/alpha/include/types.h | 4 ++--
sys/arch/amd64/include/types.h | 4 ++--
sys/arch/arm/include/types.h | 4 ++--
sys/arch/hppa/include/types.h | 4 ++--
sys/arch/i386/include/types.h | 6 +++---
sys/arch/ia64/include/types.h | 4 ++--
sys/arch/m68k/include/types.h | 4 ++--
sys/arch/mips/include/types.h | 4 ++--
sys/arch/or1k/include/types.h | 4 ++--
sys/arch/powerpc/include/types.h | 4 ++--
sys/arch/riscv/include/types.h | 4 ++--
sys/arch/sh3/include/types.h | 4 ++--
sys/arch/sparc/include/types.h | 6 +++---
sys/arch/usermode/include/types.h | 4 ++--
sys/arch/vax/include/types.h | 4 ++--
16 files changed, 34 insertions(+), 34 deletions(-)
diffs (truncated from 306 to 300 lines):
diff -r 96ad05dd796c -r 6d74f2dbbb31 sys/arch/aarch64/include/types.h
--- a/sys/arch/aarch64/include/types.h Sat Jan 23 22:29:29 2016 +0000
+++ b/sys/arch/aarch64/include/types.h Sat Jan 23 22:31:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.3 2016/01/23 21:22:13 christos Exp $ */
+/* $NetBSD: types.h,v 1.4 2016/01/23 22:31:19 christos Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
} label_t;
#endif
-#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES)
+#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
typedef unsigned long vm_offset_t; /* depreciated */
typedef unsigned long vm_size_t; /* depreciated */
diff -r 96ad05dd796c -r 6d74f2dbbb31 sys/arch/alpha/include/types.h
--- a/sys/arch/alpha/include/types.h Sat Jan 23 22:29:29 2016 +0000
+++ b/sys/arch/alpha/include/types.h Sat Jan 23 22:31:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.52 2016/01/23 21:22:13 christos Exp $ */
+/* $NetBSD: types.h,v 1.53 2016/01/23 22:31:19 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -44,7 +44,7 @@
} label_t;
#endif
-#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES)
+#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
typedef unsigned long paddr_t;
typedef unsigned long psize_t;
typedef unsigned long vaddr_t;
diff -r 96ad05dd796c -r 6d74f2dbbb31 sys/arch/amd64/include/types.h
--- a/sys/arch/amd64/include/types.h Sat Jan 23 22:29:29 2016 +0000
+++ b/sys/arch/amd64/include/types.h Sat Jan 23 22:31:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.49 2016/01/23 21:22:13 christos Exp $ */
+/* $NetBSD: types.h,v 1.50 2016/01/23 22:31:19 christos Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -46,7 +46,7 @@
} label_t;
#endif
-#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES)
+#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
typedef unsigned long paddr_t;
typedef unsigned long psize_t;
typedef unsigned long vaddr_t;
diff -r 96ad05dd796c -r 6d74f2dbbb31 sys/arch/arm/include/types.h
--- a/sys/arch/arm/include/types.h Sat Jan 23 22:29:29 2016 +0000
+++ b/sys/arch/arm/include/types.h Sat Jan 23 22:31:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.31 2016/01/23 21:22:13 christos Exp $ */
+/* $NetBSD: types.h,v 1.32 2016/01/23 22:31:19 christos Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
@@ -44,7 +44,7 @@
} label_t;
#endif
-#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES)
+#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
typedef unsigned long paddr_t;
typedef unsigned long psize_t;
typedef unsigned long vaddr_t;
diff -r 96ad05dd796c -r 6d74f2dbbb31 sys/arch/hppa/include/types.h
--- a/sys/arch/hppa/include/types.h Sat Jan 23 22:29:29 2016 +0000
+++ b/sys/arch/hppa/include/types.h Sat Jan 23 22:31:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.25 2016/01/23 21:22:13 christos Exp $ */
+/* $NetBSD: types.h,v 1.26 2016/01/23 22:31:19 christos Exp $ */
/* $OpenBSD: types.h,v 1.6 2001/08/11 01:58:34 art Exp $ */
@@ -49,7 +49,7 @@
} label_t;
#endif
-#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES)
+#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
typedef unsigned long hppa_hpa_t;
typedef unsigned long hppa_spa_t;
typedef unsigned int pa_space_t;
diff -r 96ad05dd796c -r 6d74f2dbbb31 sys/arch/i386/include/types.h
--- a/sys/arch/i386/include/types.h Sat Jan 23 22:29:29 2016 +0000
+++ b/sys/arch/i386/include/types.h Sat Jan 23 22:31:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.84 2016/01/23 21:22:14 christos Exp $ */
+/* $NetBSD: types.h,v 1.85 2016/01/23 22:31:19 christos Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -66,7 +66,7 @@
#define PRIuPSIZE "lu"
#endif /* PAE */
-#elif defined(_KMEMUSER) || defined(_KERNTYPES)
+#elif defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
/* paddr_t is always 64 bits for userland */
typedef __uint64_t paddr_t;
typedef __uint64_t psize_t;
@@ -76,7 +76,7 @@
#endif /* _KERNEL */
-#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES)
+#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
typedef unsigned long vaddr_t;
typedef unsigned long vsize_t;
diff -r 96ad05dd796c -r 6d74f2dbbb31 sys/arch/ia64/include/types.h
--- a/sys/arch/ia64/include/types.h Sat Jan 23 22:29:29 2016 +0000
+++ b/sys/arch/ia64/include/types.h Sat Jan 23 22:31:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.9 2016/01/23 21:22:14 christos Exp $ */
+/* $NetBSD: types.h,v 1.10 2016/01/23 22:31:19 christos Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -44,7 +44,7 @@
} label_t;
#endif
-#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES)
+#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
typedef unsigned long paddr_t;
typedef unsigned long psize_t;
typedef unsigned long vaddr_t;
diff -r 96ad05dd796c -r 6d74f2dbbb31 sys/arch/m68k/include/types.h
--- a/sys/arch/m68k/include/types.h Sat Jan 23 22:29:29 2016 +0000
+++ b/sys/arch/m68k/include/types.h Sat Jan 23 22:31:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.32 2016/01/23 21:22:14 christos Exp $ */
+/* $NetBSD: types.h,v 1.33 2016/01/23 22:31:19 christos Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -43,7 +43,7 @@
} label_t;
#endif
-#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES)
+#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
typedef unsigned long vm_offset_t; /* depreciated */
typedef unsigned long vm_size_t; /* depreciated */
diff -r 96ad05dd796c -r 6d74f2dbbb31 sys/arch/mips/include/types.h
--- a/sys/arch/mips/include/types.h Sat Jan 23 22:29:29 2016 +0000
+++ b/sys/arch/mips/include/types.h Sat Jan 23 22:31:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.60 2016/01/23 21:22:14 christos Exp $ */
+/* $NetBSD: types.h,v 1.61 2016/01/23 22:31:19 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -48,7 +48,7 @@
*/
-#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES)
+#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
#if defined(_MIPS_PADDR_T_64BIT) || defined(_LP64)
typedef __uint64_t paddr_t;
typedef __uint64_t psize_t;
diff -r 96ad05dd796c -r 6d74f2dbbb31 sys/arch/or1k/include/types.h
--- a/sys/arch/or1k/include/types.h Sat Jan 23 22:29:29 2016 +0000
+++ b/sys/arch/or1k/include/types.h Sat Jan 23 22:31:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.3 2016/01/23 21:22:14 christos Exp $ */
+/* $NetBSD: types.h,v 1.4 2016/01/23 22:31:20 christos Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
#include <sys/featuretest.h>
#include <or1k/int_types.h>
-#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES)
+#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
typedef unsigned long vm_offset_t; /* deprecated */
typedef unsigned long vm_size_t; /* deprecated */
diff -r 96ad05dd796c -r 6d74f2dbbb31 sys/arch/powerpc/include/types.h
--- a/sys/arch/powerpc/include/types.h Sat Jan 23 22:29:29 2016 +0000
+++ b/sys/arch/powerpc/include/types.h Sat Jan 23 22:31:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.52 2016/01/23 21:22:14 christos Exp $ */
+/* $NetBSD: types.h,v 1.53 2016/01/23 22:31:20 christos Exp $ */
/*-
* Copyright (C) 1995 Wolfgang Solfrank.
@@ -38,7 +38,7 @@
#include <sys/featuretest.h>
#include <powerpc/int_types.h>
-#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES)
+#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
typedef unsigned long paddr_t, vaddr_t;
typedef unsigned long psize_t, vsize_t;
#define PRIxPADDR "lx"
diff -r 96ad05dd796c -r 6d74f2dbbb31 sys/arch/riscv/include/types.h
--- a/sys/arch/riscv/include/types.h Sat Jan 23 22:29:29 2016 +0000
+++ b/sys/arch/riscv/include/types.h Sat Jan 23 22:31:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.4 2016/01/23 21:22:14 christos Exp $ */
+/* $NetBSD: types.h,v 1.5 2016/01/23 22:31:20 christos Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
#include <sys/featuretest.h>
#include <riscv/int_types.h>
-#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES)
+#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
typedef __UINTPTR_TYPE__ paddr_t;
typedef __UINTPTR_TYPE__ psize_t;
typedef __UINTPTR_TYPE__ vaddr_t;
diff -r 96ad05dd796c -r 6d74f2dbbb31 sys/arch/sh3/include/types.h
--- a/sys/arch/sh3/include/types.h Sat Jan 23 22:29:29 2016 +0000
+++ b/sys/arch/sh3/include/types.h Sat Jan 23 22:31:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.36 2016/01/23 21:22:14 christos Exp $ */
+/* $NetBSD: types.h,v 1.37 2016/01/23 22:31:20 christos Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -44,7 +44,7 @@
} label_t;
#endif
-#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES)
+#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
typedef unsigned long vm_offset_t;
typedef unsigned long vm_size_t;
diff -r 96ad05dd796c -r 6d74f2dbbb31 sys/arch/sparc/include/types.h
--- a/sys/arch/sparc/include/types.h Sat Jan 23 22:29:29 2016 +0000
+++ b/sys/arch/sparc/include/types.h Sat Jan 23 22:31:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.65 2016/01/23 21:22:14 christos Exp $ */
+/* $NetBSD: types.h,v 1.66 2016/01/23 22:31:20 christos Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -58,7 +58,7 @@
#include <machine/int_types.h>
/* The following are unsigned to prevent annoying sign extended pointers. */
-#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES)
+#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
typedef unsigned long int register_t;
#define PRIxREGISTER "lx"
typedef unsigned int register32_t;
@@ -83,7 +83,7 @@
} label_t;
#endif
-#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES)
+#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
typedef unsigned long int vaddr_t;
typedef vaddr_t vsize_t;
#define PRIxVADDR "lx"
diff -r 96ad05dd796c -r 6d74f2dbbb31 sys/arch/usermode/include/types.h
--- a/sys/arch/usermode/include/types.h Sat Jan 23 22:29:29 2016 +0000
+++ b/sys/arch/usermode/include/types.h Sat Jan 23 22:31:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.10 2016/01/23 21:22:14 christos Exp $ */
+/* $NetBSD: types.h,v 1.11 2016/01/23 22:31:20 christos Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -39,7 +39,7 @@
} label_t;
#endif
-#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES)
+#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
typedef unsigned long paddr_t;
typedef unsigned long psize_t;
typedef unsigned long vaddr_t;
diff -r 96ad05dd796c -r 6d74f2dbbb31 sys/arch/vax/include/types.h
--- a/sys/arch/vax/include/types.h Sat Jan 23 22:29:29 2016 +0000
+++ b/sys/arch/vax/include/types.h Sat Jan 23 22:31:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.49 2016/01/23 21:22:14 christos Exp $ */
+/* $NetBSD: types.h,v 1.50 2016/01/23 22:31:20 christos Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -44,7 +44,7 @@
} label_t;
#endif
Home |
Main Index |
Thread Index |
Old Index