CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Wed Aug 1 09:52:15 UTC 2018 Added Files: src/sys/arch/usermode/include: cpufunc.h ucontext.h Log Message: Forgot the two header files To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/sys/arch/usermode/include/cpufunc.h \ src/sys/arch/usermode/include/ucontext.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Added files: Index: src/sys/arch/usermode/include/cpufunc.h diff -u /dev/null src/sys/arch/usermode/include/cpufunc.h:1.1 --- /dev/null Wed Aug 1 09:52:15 2018 +++ src/sys/arch/usermode/include/cpufunc.h Wed Aug 1 09:52:15 2018 @@ -0,0 +1,20 @@ +/* $NetBSD: cpufunc.h,v 1.1 2018/08/01 09:52:15 reinoud Exp $ */ + +/* + * Automatically generated by ./genheaders.sh on Wed May 16 14:39:02 CEST 2018 + * Do not modify directly! + */ +#ifndef _USERMODE_INT_LIMITS_H +#define _USERMODE_INT_LIMITS_H + +#if defined(__i386__) +#include "../../i386/include/cpufunc.h" +#elif defined(__x86_64__) +#include "../../amd64/include/cpufunc.h" +#elif defined(__arm__) +#include "../../arm/include/cpufunc.h" +#else +#error port me +#endif + +#endif Index: src/sys/arch/usermode/include/ucontext.h diff -u /dev/null src/sys/arch/usermode/include/ucontext.h:1.1 --- /dev/null Wed Aug 1 09:52:15 2018 +++ src/sys/arch/usermode/include/ucontext.h Wed Aug 1 09:52:15 2018 @@ -0,0 +1,23 @@ +/* $NetBSD: ucontext.h,v 1.1 2018/08/01 09:52:15 reinoud Exp $ */ + +#ifndef _USERMODE_UCONTEXT_H +#define _USERMODE_UCONTEXT_H + +#include +#include +#include + +#if defined(__i386__) + +#elif defined(__x86_64__) + +#define _UC_MACHINE_RFLAGS(uc) ((uc)->uc_mcontext.__gregs[26]) + +#elif defined(__arm__) +#error port me +#else +#error port me +#endif + +#endif /* _USERMODE_UCONTEXT_H */ +
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Wed Aug 1 09:52:15 UTC 2018 Added Files: src/sys/arch/usermode/include: cpufunc.h ucontext.h Log Message: Forgot the two header files To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/sys/arch/usermode/include/cpufunc.h \ src/sys/arch/usermode/include/ucontext.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Wed Aug 1 09:46:46 UTC 2018 Modified Files: src/sys/arch/usermode/include: thunk.h Log Message: Add headers for support functions for kgdb To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 src/sys/arch/usermode/include/thunk.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/thunk.h diff -u src/sys/arch/usermode/include/thunk.h:1.65 src/sys/arch/usermode/include/thunk.h:1.66 --- src/sys/arch/usermode/include/thunk.h:1.65 Mon Jun 4 19:53:01 2018 +++ src/sys/arch/usermode/include/thunk.h Wed Aug 1 09:46:46 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: thunk.h,v 1.65 2018/06/04 19:53:01 reinoud Exp $ */ +/* $NetBSD: thunk.h,v 1.66 2018/08/01 09:46:46 reinoud Exp $ */ /*- * Copyright (c) 2011 Jared D. McNeill @@ -127,6 +127,11 @@ int thunk_mkstemp(char *); int thunk_unlink(const char *); pid_t thunk_getpid(void); +int thunk_gdb_open(void); +int thunk_gdb_accept(int sockfd); +int thunk_kgdb_getc(int fd, char *ch); +int thunk_kgdb_putc(int fd, char ch); + int thunk_sigaction(int, const struct sigaction *, struct sigaction *); int thunk_sigaltstack(const stack_t *, stack_t *); void thunk_signal(int, void (*)(int));
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Wed Aug 1 09:46:46 UTC 2018 Modified Files: src/sys/arch/usermode/include: thunk.h Log Message: Add headers for support functions for kgdb To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 src/sys/arch/usermode/include/thunk.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Wed Aug 1 09:46:16 UTC 2018 Modified Files: src/sys/arch/usermode/include: vmparam.h Log Message: Max kernel address is end of kernel To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/sys/arch/usermode/include/vmparam.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Wed Aug 1 09:46:16 UTC 2018 Modified Files: src/sys/arch/usermode/include: vmparam.h Log Message: Max kernel address is end of kernel To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/sys/arch/usermode/include/vmparam.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/vmparam.h diff -u src/sys/arch/usermode/include/vmparam.h:1.17 src/sys/arch/usermode/include/vmparam.h:1.18 --- src/sys/arch/usermode/include/vmparam.h:1.17 Sun Nov 10 19:52:01 2013 +++ src/sys/arch/usermode/include/vmparam.h Wed Aug 1 09:46:16 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: vmparam.h,v 1.17 2013/11/10 19:52:01 jmcneill Exp $ */ +/* $NetBSD: vmparam.h,v 1.18 2018/08/01 09:46:16 reinoud Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill @@ -43,7 +43,7 @@ extern paddr_t kmem_user_start, kmem_use #define VM_MAX_ADDRESS kmem_user_end #define VM_MAXUSER_ADDRESS kmem_user_end #define VM_MIN_KERNEL_ADDRESS kmem_kvm_start -#define VM_MAX_KERNEL_ADDRESS kmem_kvm_end +#define VM_MAX_KERNEL_ADDRESS kmem_k_end #define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST #define VM_PHYSSEG_MAX 1
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sat Jul 28 20:26:13 UTC 2018 Added Files: src/sys/arch/usermode/include: trap.h Log Message: Provide hand-doctored redirection of trap.h in preparation for ddb/kgdb To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/sys/arch/usermode/include/trap.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sat Jul 28 20:26:13 UTC 2018 Added Files: src/sys/arch/usermode/include: trap.h Log Message: Provide hand-doctored redirection of trap.h in preparation for ddb/kgdb To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/sys/arch/usermode/include/trap.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Added files: Index: src/sys/arch/usermode/include/trap.h diff -u /dev/null src/sys/arch/usermode/include/trap.h:1.1 --- /dev/null Sat Jul 28 20:26:13 2018 +++ src/sys/arch/usermode/include/trap.h Sat Jul 28 20:26:13 2018 @@ -0,0 +1,19 @@ +/* $NetBSD: trap.h,v 1.1 2018/07/28 20:26:13 reinoud Exp $ */ + +/* + * Handcrafted redirect to prevent problems with i386 and x86_64 sharing x86 + */ +#ifndef _USERMODE_TRAP_H +#define _USERMODE_TRAP_H + +#if defined(__i386__) +#include "../../x86/include/trap.h" +#elif defined(__x86_64__) +#include "../../x86/include/trap.h" +#elif defined(__arm__) +#include "../../arm/include/trap.h" +#else +#error port me +#endif + +#endif
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Fri Jun 1 07:19:50 UTC 2018 Modified Files: src/sys/arch/usermode/include: types.h Log Message: Fix compilation errors so NetBSD/usermode compiles under ./build.sh To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/arch/usermode/include/types.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/types.h diff -u src/sys/arch/usermode/include/types.h:1.13 src/sys/arch/usermode/include/types.h:1.14 --- src/sys/arch/usermode/include/types.h:1.13 Tue May 29 07:35:39 2018 +++ src/sys/arch/usermode/include/types.h Fri Jun 1 07:19:50 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: types.h,v 1.13 2018/05/29 07:35:39 reinoud Exp $ */ +/* $NetBSD: types.h,v 1.14 2018/06/01 07:19:50 reinoud Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill @@ -40,9 +40,31 @@ typedef struct label_t { #endif #if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE) +#if defined(__i386__) || defined(__arm__) typedef unsigned long paddr_t; typedef unsigned long psize_t; -typedef unsigned long vaddr_t; +typedef unsigned long __vaddr_t; +typedef unsigned long vsize_t; +typedef int register_t; + +#ifndef __x86_64__ +// XXX hack to allow for amd64->i386 crosscompile, why? +#define PRIxPADDR "lx" +#define PRIxPSIZE "lx" +#define PRIuPSIZE "lu" +#else +#define PRIxPADDR "llx" +#define PRIxPSIZE "llx" +#define PRIuPSIZE "llu" +#endif +#define PRIxVADDR "lx" +#define PRIxVSIZE "lx" +#define PRIuVSIZE "lu" +#define PRIxREGISTER "lx" +#elif defined(__x86_64__) +typedef unsigned long paddr_t; +typedef unsigned long psize_t; +typedef unsigned long __vaddr_t; typedef unsigned long vsize_t; typedef long int register_t; #define PRIxPADDR "lx" @@ -53,9 +75,11 @@ typedef long int register_t; #define PRIuVSIZE "lu" #define PRIxREGISTER "lx" #endif +#endif +typedef __vaddr_t vaddr_t; typedef unsigned char __cpu_simple_lock_nv_t; -typedef long int __register_t; +typedef register_t __register_t; #define __CPU_SIMPLE_LOCK_PAD
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Fri Jun 1 07:19:50 UTC 2018 Modified Files: src/sys/arch/usermode/include: types.h Log Message: Fix compilation errors so NetBSD/usermode compiles under ./build.sh To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/arch/usermode/include/types.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Fri May 18 20:24:57 UTC 2018 Modified Files: src/sys/arch/usermode/include: thunk.h Log Message: Include OUR types.h and not the machine's. A small step to allow for crosscompilation. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/sys/arch/usermode/include/thunk.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/thunk.h diff -u src/sys/arch/usermode/include/thunk.h:1.62 src/sys/arch/usermode/include/thunk.h:1.63 --- src/sys/arch/usermode/include/thunk.h:1.62 Fri Feb 6 10:25:13 2015 +++ src/sys/arch/usermode/include/thunk.h Fri May 18 20:24:57 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: thunk.h,v 1.62 2015/02/06 10:25:13 prlw1 Exp $ */ +/* $NetBSD: thunk.h,v 1.63 2018/05/18 20:24:57 reinoud Exp $ */ /*- * Copyright (c) 2011 Jared D. McNeill@@ -29,7 +29,7 @@ #ifndef _ARCH_USERMODE_INCLUDE_THUNK_H #define _ARCH_USERMODE_INCLUDE_THUNK_H -#include +#include "types.h" #include #include #include
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Fri May 18 20:24:57 UTC 2018 Modified Files: src/sys/arch/usermode/include: thunk.h Log Message: Include OUR types.h and not the machine's. A small step to allow for crosscompilation. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/sys/arch/usermode/include/thunk.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Fri May 18 20:09:33 UTC 2018 Modified Files: src/sys/arch/usermode/include: reg.h Log Message: Implement own process register capture from userland. NetBSD/usermode now creates readable and sensible coredumps To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/usermode/include/reg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/reg.h diff -u src/sys/arch/usermode/include/reg.h:1.3 src/sys/arch/usermode/include/reg.h:1.4 --- src/sys/arch/usermode/include/reg.h:1.3 Sat Jan 13 14:39:15 2018 +++ src/sys/arch/usermode/include/reg.h Fri May 18 20:09:32 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: reg.h,v 1.3 2018/01/13 14:39:15 reinoud Exp $ */ +/* $NetBSD: reg.h,v 1.4 2018/05/18 20:09:32 reinoud Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill@@ -29,10 +29,16 @@ #ifndef _ARCH_USERMODE_INCLUDE_REG_H #define _ARCH_USERMODE_INCLUDE_REG_H +#include "machine/mcontext.h" + +/* registers are already in the right order since they follow mcontext.h */ struct reg { + __gregset_t regs; }; +/* registers are already in the right order since they follow mcontext.h */ struct fpreg { +__fpregset_t fpregs; }; /* x86_64 only */
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Fri May 18 20:09:33 UTC 2018 Modified Files: src/sys/arch/usermode/include: reg.h Log Message: Implement own process register capture from userland. NetBSD/usermode now creates readable and sensible coredumps To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/usermode/include/reg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Wed May 16 12:40:43 UTC 2018 Modified Files: src/sys/arch/usermode/include: asm.h bswap.h byte_swap.h cdefs.h disklabel.h elf_machdep.h endian.h endian_machdep.h int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h mcontext.h netbsd32_machdep.h param.h ptrace.h wchar_limits.h Added Files: src/sys/arch/usermode/include: frame_regs.h Log Message: Regen usermode headers To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.6 -r1.7 src/sys/arch/usermode/include/cdefs.h cvs rdiff -u -r1.13 -r1.14 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h cvs rdiff -u -r0 -r1.1 src/sys/arch/usermode/include/frame_regs.h cvs rdiff -u -r1.3 -r1.4 src/sys/arch/usermode/include/mcontext.h cvs rdiff -u -r1.12 -r1.13 src/sys/arch/usermode/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Wed May 16 12:40:26 UTC 2018 Modified Files: src/sys/arch/usermode/include: genheaders.sh Log Message: Add new mcontext and depends to the usermode generated headerfiles To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/usermode/include/genheaders.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Wed May 16 12:40:43 UTC 2018 Modified Files: src/sys/arch/usermode/include: asm.h bswap.h byte_swap.h cdefs.h disklabel.h elf_machdep.h endian.h endian_machdep.h int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h mcontext.h netbsd32_machdep.h param.h ptrace.h wchar_limits.h Added Files: src/sys/arch/usermode/include: frame_regs.h Log Message: Regen usermode headers To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.6 -r1.7 src/sys/arch/usermode/include/cdefs.h cvs rdiff -u -r1.13 -r1.14 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h cvs rdiff -u -r0 -r1.1 src/sys/arch/usermode/include/frame_regs.h cvs rdiff -u -r1.3 -r1.4 src/sys/arch/usermode/include/mcontext.h cvs rdiff -u -r1.12 -r1.13 src/sys/arch/usermode/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/asm.h diff -u src/sys/arch/usermode/include/asm.h:1.11 src/sys/arch/usermode/include/asm.h:1.12 --- src/sys/arch/usermode/include/asm.h:1.11 Sun Nov 10 19:52:01 2013 +++ src/sys/arch/usermode/include/asm.h Wed May 16 12:40:43 2018 @@ -1,7 +1,7 @@ -/* $NetBSD: asm.h,v 1.11 2013/11/10 19:52:01 jmcneill Exp $ */ +/* $NetBSD: asm.h,v 1.12 2018/05/16 12:40:43 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Sun Nov 10 15:47:57 AST 2013 + * Automatically generated by ./genheaders.sh on Wed May 16 14:39:02 CEST 2018 * Do not modify directly! */ #ifndef _USERMODE_ASM_H Index: src/sys/arch/usermode/include/bswap.h diff -u src/sys/arch/usermode/include/bswap.h:1.11 src/sys/arch/usermode/include/bswap.h:1.12 --- src/sys/arch/usermode/include/bswap.h:1.11 Sun Nov 10 19:52:01 2013 +++ src/sys/arch/usermode/include/bswap.h Wed May 16 12:40:43 2018 @@ -1,7 +1,7 @@ -/* $NetBSD: bswap.h,v 1.11 2013/11/10 19:52:01 jmcneill Exp $ */ +/* $NetBSD: bswap.h,v 1.12 2018/05/16 12:40:43 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Sun Nov 10 15:47:57 AST 2013 + * Automatically generated by ./genheaders.sh on Wed May 16 14:39:02 CEST 2018 * Do not modify directly! */ #ifndef _USERMODE_BSWAP_H Index: src/sys/arch/usermode/include/byte_swap.h diff -u src/sys/arch/usermode/include/byte_swap.h:1.11 src/sys/arch/usermode/include/byte_swap.h:1.12 --- src/sys/arch/usermode/include/byte_swap.h:1.11 Sun Nov 10 19:52:01 2013 +++ src/sys/arch/usermode/include/byte_swap.h Wed May 16 12:40:43 2018 @@ -1,7 +1,7 @@ -/* $NetBSD: byte_swap.h,v 1.11 2013/11/10 19:52:01 jmcneill Exp $ */ +/* $NetBSD: byte_swap.h,v 1.12 2018/05/16 12:40:43 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Sun Nov 10 15:47:57 AST 2013 + * Automatically generated by ./genheaders.sh on Wed May 16 14:39:02 CEST 2018 * Do not modify directly! */ #ifndef _USERMODE_BYTE_SWAP_H Index: src/sys/arch/usermode/include/elf_machdep.h diff -u src/sys/arch/usermode/include/elf_machdep.h:1.11 src/sys/arch/usermode/include/elf_machdep.h:1.12 --- src/sys/arch/usermode/include/elf_machdep.h:1.11 Sun Nov 10 19:52:01 2013 +++ src/sys/arch/usermode/include/elf_machdep.h Wed May 16 12:40:43 2018 @@ -1,7 +1,7 @@ -/* $NetBSD: elf_machdep.h,v 1.11 2013/11/10 19:52:01 jmcneill Exp $ */ +/* $NetBSD: elf_machdep.h,v 1.12 2018/05/16 12:40:43 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Sun Nov 10 15:47:57 AST 2013 + * Automatically generated by ./genheaders.sh on Wed May 16 14:39:02 CEST 2018 * Do not modify directly! */ #ifndef _USERMODE_ELF_MACHDEP_H Index: src/sys/arch/usermode/include/endian.h diff -u src/sys/arch/usermode/include/endian.h:1.11 src/sys/arch/usermode/include/endian.h:1.12 --- src/sys/arch/usermode/include/endian.h:1.11 Sun Nov 10 19:52:01 2013 +++ src/sys/arch/usermode/include/endian.h Wed May 16 12:40:43 2018 @@ -1,7 +1,7 @@ -/* $NetBSD: endian.h,v 1.11 2013/11/10 19:52:01 jmcneill Exp $ */ +/* $NetBSD: endian.h,v 1.12 2018/05/16 12:40:43 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Sun Nov 10 15:47:57 AST 2013 + * Automatically generated by ./genheaders.sh on Wed May 16 14:39:02 CEST 2018
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Wed May 16 12:40:26 UTC 2018 Modified Files: src/sys/arch/usermode/include: genheaders.sh Log Message: Add new mcontext and depends to the usermode generated headerfiles To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/usermode/include/genheaders.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/genheaders.sh diff -u src/sys/arch/usermode/include/genheaders.sh:1.9 src/sys/arch/usermode/include/genheaders.sh:1.10 --- src/sys/arch/usermode/include/genheaders.sh:1.9 Sun Nov 10 19:52:01 2013 +++ src/sys/arch/usermode/include/genheaders.sh Wed May 16 12:40:26 2018 @@ -21,6 +21,8 @@ HDRS="$HDRS param.h" HDRS="$HDRS ptrace.h" HDRS="$HDRS wchar_limits.h" HDRS="$HDRS cdefs.h" +HDRS="$HDRS mcontext.h" +HDRS="$HDRS frame_regs.h" for hdr in ${HDRS}; do G="_USERMODE_$(echo ${hdr} | sed 's/\./_/g' | tr [a-z] [A-Z])"
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sat Jan 13 14:39:15 UTC 2018 Modified Files: src/sys/arch/usermode/include: reg.h Log Message: Add dbreg structure prototype needed for x86_64 To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/usermode/include/reg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/reg.h diff -u src/sys/arch/usermode/include/reg.h:1.2 src/sys/arch/usermode/include/reg.h:1.3 --- src/sys/arch/usermode/include/reg.h:1.2 Wed Oct 21 16:06:59 2009 +++ src/sys/arch/usermode/include/reg.h Sat Jan 13 14:39:15 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: reg.h,v 1.2 2009/10/21 16:06:59 snj Exp $ */ +/* $NetBSD: reg.h,v 1.3 2018/01/13 14:39:15 reinoud Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill@@ -35,4 +35,8 @@ struct reg { struct fpreg { }; +/* x86_64 only */ +struct dbreg { +}; + #endif /* !_ARCH_USERMODE_INCLUDE_REG_H */
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sat Jan 13 14:39:15 UTC 2018 Modified Files: src/sys/arch/usermode/include: reg.h Log Message: Add dbreg structure prototype needed for x86_64 To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/usermode/include/reg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: msaitoh Date: Mon Oct 23 06:43:00 UTC 2017 Modified Files: src/sys/arch/usermode/include: lock.h Log Message: Fix compile error. Use const correctly. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/usermode/include/lock.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/lock.h diff -u src/sys/arch/usermode/include/lock.h:1.4 src/sys/arch/usermode/include/lock.h:1.5 --- src/sys/arch/usermode/include/lock.h:1.4 Sun Sep 17 00:01:08 2017 +++ src/sys/arch/usermode/include/lock.h Mon Oct 23 06:43:00 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: lock.h,v 1.4 2017/09/17 00:01:08 christos Exp $ */ +/* $NetBSD: lock.h,v 1.5 2017/10/23 06:43:00 msaitoh Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill@@ -30,13 +30,13 @@ #define _ARCH_USERMODE_INCLUDE_LOCK_H __inline static void -__cpu_simple_lock_init(const __cpu_simple_lock_t *lockp) +__cpu_simple_lock_init(__cpu_simple_lock_t *lockp) { *lockp = __SIMPLELOCK_UNLOCKED; } __inline static int -__cpu_simple_lock_try(const __cpu_simple_lock_t *lockp) +__cpu_simple_lock_try(__cpu_simple_lock_t *lockp) { if (*lockp == __SIMPLELOCK_LOCKED) return 0; @@ -58,13 +58,13 @@ __cpu_simple_unlock(__cpu_simple_lock_t } __inline static int -__SIMPLELOCK_LOCKED_P(__cpu_simple_lock_t *lockp) +__SIMPLELOCK_LOCKED_P(const __cpu_simple_lock_t *lockp) { return *lockp == __SIMPLELOCK_LOCKED; } __inline static int -__SIMPLELOCK_UNLOCKED_P(__cpu_simple_lock_t *lockp) +__SIMPLELOCK_UNLOCKED_P(const __cpu_simple_lock_t *lockp) { return *lockp == __SIMPLELOCK_UNLOCKED; }
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: msaitoh Date: Mon Oct 23 06:43:00 UTC 2017 Modified Files: src/sys/arch/usermode/include: lock.h Log Message: Fix compile error. Use const correctly. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/usermode/include/lock.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Sun Nov 10 19:52:01 UTC 2013 Modified Files: src/sys/arch/usermode/include: ansi.h asm.h bswap.h byte_swap.h cdefs.h disklabel.h elf_machdep.h endian.h endian_machdep.h genheaders.sh int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h netbsd32_machdep.h param.h psl.h ptrace.h vmparam.h wchar_limits.h Log Message: support building on arm To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/usermode/include/ansi.h cvs rdiff -u -r1.10 -r1.11 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.5 -r1.6 src/sys/arch/usermode/include/cdefs.h cvs rdiff -u -r1.12 -r1.13 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h cvs rdiff -u -r1.8 -r1.9 src/sys/arch/usermode/include/genheaders.sh cvs rdiff -u -r1.11 -r1.12 src/sys/arch/usermode/include/param.h cvs rdiff -u -r1.1 -r1.2 src/sys/arch/usermode/include/psl.h cvs rdiff -u -r1.16 -r1.17 src/sys/arch/usermode/include/vmparam.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/ansi.h diff -u src/sys/arch/usermode/include/ansi.h:1.3 src/sys/arch/usermode/include/ansi.h:1.4 --- src/sys/arch/usermode/include/ansi.h:1.3 Mon Aug 22 21:45:38 2011 +++ src/sys/arch/usermode/include/ansi.h Sun Nov 10 19:52:01 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: ansi.h,v 1.3 2011/08/22 21:45:38 jmcneill Exp $ */ +/* $NetBSD: ansi.h,v 1.4 2013/11/10 19:52:01 jmcneill Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca @@ -50,6 +50,11 @@ #define _BSD_PTRDIFF_T_ long #define _BSD_SIZE_T_ unsigned long #define _BSD_SSIZE_T_ long +#elif defined(__arm__) +#define _BSD_CLOCK_T_ unsigned int +#define _BSD_PTRDIFF_T_ long int +#define _BSD_SIZE_T_ unsigned long int +#define _BSD_SSIZE_T_ long int #else #error platform not supported #endif Index: src/sys/arch/usermode/include/asm.h diff -u src/sys/arch/usermode/include/asm.h:1.10 src/sys/arch/usermode/include/asm.h:1.11 --- src/sys/arch/usermode/include/asm.h:1.10 Sun Feb 5 17:40:08 2012 +++ src/sys/arch/usermode/include/asm.h Sun Nov 10 19:52:01 2013 @@ -1,7 +1,7 @@ -/* $NetBSD: asm.h,v 1.10 2012/02/05 17:40:08 reinoud Exp $ */ +/* $NetBSD: asm.h,v 1.11 2013/11/10 19:52:01 jmcneill Exp $ */ /* - * Automatically generated by genheaders.sh on Sun Feb 5 18:39:33 CET 2012 + * Automatically generated by genheaders.sh on Sun Nov 10 15:47:57 AST 2013 * Do not modify directly! */ #ifndef _USERMODE_ASM_H @@ -11,6 +11,8 @@ #include ../../i386/include/asm.h #elif defined(__x86_64__) #include ../../amd64/include/asm.h +#elif defined(__arm__) +#include ../../arm/include/asm.h #else #error port me #endif Index: src/sys/arch/usermode/include/bswap.h diff -u src/sys/arch/usermode/include/bswap.h:1.10 src/sys/arch/usermode/include/bswap.h:1.11 --- src/sys/arch/usermode/include/bswap.h:1.10 Sun Feb 5 17:40:08 2012 +++ src/sys/arch/usermode/include/bswap.h Sun Nov 10 19:52:01 2013 @@ -1,7 +1,7 @@ -/* $NetBSD: bswap.h,v 1.10 2012/02/05 17:40:08 reinoud Exp $ */ +/* $NetBSD: bswap.h,v 1.11 2013/11/10 19:52:01 jmcneill Exp $ */ /* - * Automatically generated by genheaders.sh on Sun Feb 5 18:39:34 CET 2012 + * Automatically generated by genheaders.sh on Sun Nov 10 15:47:57 AST 2013 * Do not modify directly! */ #ifndef _USERMODE_BSWAP_H @@ -11,6 +11,8 @@ #include ../../i386/include/bswap.h #elif defined(__x86_64__) #include ../../amd64/include/bswap.h +#elif defined(__arm__) +#include ../../arm/include/bswap.h #else #error port me #endif Index: src/sys/arch/usermode/include/byte_swap.h diff -u src/sys/arch/usermode/include/byte_swap.h:1.10 src/sys/arch/usermode/include/byte_swap.h:1.11 --- src/sys/arch/usermode/include/byte_swap.h:1.10 Sun Feb 5 17:40:08 2012 +++ src/sys/arch/usermode/include/byte_swap.h Sun Nov 10 19:52:01 2013 @@ -1,7 +1,7 @@ -/* $NetBSD: byte_swap.h,v 1.10 2012/02/05 17:40:08 reinoud Exp $ */ +/* $NetBSD: byte_swap.h,v 1.11 2013/11/10 19:52:01 jmcneill Exp $ */ /* - * Automatically generated by genheaders.sh on Sun Feb 5 18:39:34 CET 2012 + * Automatically generated by genheaders.sh on Sun Nov 10 15:47:57 AST 2013 * Do not modify directly! */
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Sun Nov 10 19:52:01 UTC 2013 Modified Files: src/sys/arch/usermode/include: ansi.h asm.h bswap.h byte_swap.h cdefs.h disklabel.h elf_machdep.h endian.h endian_machdep.h genheaders.sh int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h netbsd32_machdep.h param.h psl.h ptrace.h vmparam.h wchar_limits.h Log Message: support building on arm To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/usermode/include/ansi.h cvs rdiff -u -r1.10 -r1.11 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.5 -r1.6 src/sys/arch/usermode/include/cdefs.h cvs rdiff -u -r1.12 -r1.13 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h cvs rdiff -u -r1.8 -r1.9 src/sys/arch/usermode/include/genheaders.sh cvs rdiff -u -r1.11 -r1.12 src/sys/arch/usermode/include/param.h cvs rdiff -u -r1.1 -r1.2 src/sys/arch/usermode/include/psl.h cvs rdiff -u -r1.16 -r1.17 src/sys/arch/usermode/include/vmparam.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sun Feb 5 14:27:09 UTC 2012 Modified Files: src/sys/arch/usermode/include: asm.h bswap.h byte_swap.h cdefs.h disklabel.h elf_machdep.h endian.h endian_machdep.h int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h netbsd32_machdep.h param.h ptrace.h wchar_limits.h Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.3 -r1.4 src/sys/arch/usermode/include/cdefs.h cvs rdiff -u -r1.10 -r1.11 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h cvs rdiff -u -r1.9 -r1.10 src/sys/arch/usermode/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/asm.h diff -u src/sys/arch/usermode/include/asm.h:1.8 src/sys/arch/usermode/include/asm.h:1.9 --- src/sys/arch/usermode/include/asm.h:1.8 Thu Feb 2 11:12:40 2012 +++ src/sys/arch/usermode/include/asm.h Sun Feb 5 14:27:08 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: asm.h,v 1.8 2012/02/02 11:12:40 reinoud Exp $ */ +/* $NetBSD: asm.h,v 1.9 2012/02/05 14:27:08 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Fri Jan 27 08:34:26 CET 2012 + * Automatically generated by genheaders.sh on Sun Feb 5 15:25:56 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_ASM_H Index: src/sys/arch/usermode/include/bswap.h diff -u src/sys/arch/usermode/include/bswap.h:1.8 src/sys/arch/usermode/include/bswap.h:1.9 --- src/sys/arch/usermode/include/bswap.h:1.8 Thu Feb 2 11:12:40 2012 +++ src/sys/arch/usermode/include/bswap.h Sun Feb 5 14:27:08 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: bswap.h,v 1.8 2012/02/02 11:12:40 reinoud Exp $ */ +/* $NetBSD: bswap.h,v 1.9 2012/02/05 14:27:08 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Fri Jan 27 08:34:26 CET 2012 + * Automatically generated by genheaders.sh on Sun Feb 5 15:25:56 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_BSWAP_H Index: src/sys/arch/usermode/include/byte_swap.h diff -u src/sys/arch/usermode/include/byte_swap.h:1.8 src/sys/arch/usermode/include/byte_swap.h:1.9 --- src/sys/arch/usermode/include/byte_swap.h:1.8 Thu Feb 2 11:12:40 2012 +++ src/sys/arch/usermode/include/byte_swap.h Sun Feb 5 14:27:08 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: byte_swap.h,v 1.8 2012/02/02 11:12:40 reinoud Exp $ */ +/* $NetBSD: byte_swap.h,v 1.9 2012/02/05 14:27:08 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Fri Jan 27 08:34:26 CET 2012 + * Automatically generated by genheaders.sh on Sun Feb 5 15:25:56 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_BYTE_SWAP_H Index: src/sys/arch/usermode/include/elf_machdep.h diff -u src/sys/arch/usermode/include/elf_machdep.h:1.8 src/sys/arch/usermode/include/elf_machdep.h:1.9 --- src/sys/arch/usermode/include/elf_machdep.h:1.8 Thu Feb 2 11:12:40 2012 +++ src/sys/arch/usermode/include/elf_machdep.h Sun Feb 5 14:27:08 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: elf_machdep.h,v 1.8 2012/02/02 11:12:40 reinoud Exp $ */ +/* $NetBSD: elf_machdep.h,v 1.9 2012/02/05 14:27:08 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Fri Jan 27 08:34:26 CET 2012 + * Automatically generated by genheaders.sh on Sun Feb 5 15:25:56 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_ELF_MACHDEP_H Index: src/sys/arch/usermode/include/endian.h diff -u src/sys/arch/usermode/include/endian.h:1.8 src/sys/arch/usermode/include/endian.h:1.9 --- src/sys/arch/usermode/include/endian.h:1.8 Thu Feb 2 11:12:40 2012 +++ src/sys/arch/usermode/include/endian.h Sun Feb 5 14:27:08 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: endian.h,v 1.8 2012/02/02 11:12:40 reinoud Exp $ */ +/* $NetBSD: endian.h,v 1.9 2012/02/05 14:27:08 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Fri Jan 27 08:34:26 CET 2012 + * Automatically generated by genheaders.sh on Sun Feb 5 15:25:57 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_ENDIAN_H Index: src/sys/arch/usermode/include/endian_machdep.h diff -u src/sys/arch/usermode/include/endian_machdep.h:1.8 src/sys/arch/usermode/include/endian_machdep.h:1.9 ---
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sun Feb 5 17:39:18 UTC 2012 Modified Files: src/sys/arch/usermode/include: genheaders.sh Log Message: With the recent kmem changes, remove the `unlimited' maximum setting of NKMEMPAGES from amd64 since it gets us into trouble. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/usermode/include/genheaders.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/genheaders.sh diff -u src/sys/arch/usermode/include/genheaders.sh:1.7 src/sys/arch/usermode/include/genheaders.sh:1.8 --- src/sys/arch/usermode/include/genheaders.sh:1.7 Sat Feb 4 23:04:15 2012 +++ src/sys/arch/usermode/include/genheaders.sh Sun Feb 5 17:39:18 2012 @@ -60,6 +60,9 @@ EOF echo #define UPAGES 12 ${hdr} echo #undef USPACE ${hdr} echo #define USPACE (PAGE_SIZE*UPAGES) ${hdr} + echo ${hdr} + echo #undef NKMEMPAGES_MAX_UNLIMITED ${hdr} + echo #include \opt_kmempages.h\ ${hdr} fi echo ${hdr}
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sun Feb 5 17:40:08 UTC 2012 Modified Files: src/sys/arch/usermode/include: asm.h bswap.h byte_swap.h cdefs.h disklabel.h elf_machdep.h endian.h endian_machdep.h int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h netbsd32_machdep.h param.h ptrace.h wchar_limits.h Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.4 -r1.5 src/sys/arch/usermode/include/cdefs.h cvs rdiff -u -r1.11 -r1.12 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h cvs rdiff -u -r1.10 -r1.11 src/sys/arch/usermode/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/asm.h diff -u src/sys/arch/usermode/include/asm.h:1.9 src/sys/arch/usermode/include/asm.h:1.10 --- src/sys/arch/usermode/include/asm.h:1.9 Sun Feb 5 14:27:08 2012 +++ src/sys/arch/usermode/include/asm.h Sun Feb 5 17:40:08 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: asm.h,v 1.9 2012/02/05 14:27:08 reinoud Exp $ */ +/* $NetBSD: asm.h,v 1.10 2012/02/05 17:40:08 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Sun Feb 5 15:25:56 CET 2012 + * Automatically generated by genheaders.sh on Sun Feb 5 18:39:33 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_ASM_H Index: src/sys/arch/usermode/include/bswap.h diff -u src/sys/arch/usermode/include/bswap.h:1.9 src/sys/arch/usermode/include/bswap.h:1.10 --- src/sys/arch/usermode/include/bswap.h:1.9 Sun Feb 5 14:27:08 2012 +++ src/sys/arch/usermode/include/bswap.h Sun Feb 5 17:40:08 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: bswap.h,v 1.9 2012/02/05 14:27:08 reinoud Exp $ */ +/* $NetBSD: bswap.h,v 1.10 2012/02/05 17:40:08 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Sun Feb 5 15:25:56 CET 2012 + * Automatically generated by genheaders.sh on Sun Feb 5 18:39:34 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_BSWAP_H Index: src/sys/arch/usermode/include/byte_swap.h diff -u src/sys/arch/usermode/include/byte_swap.h:1.9 src/sys/arch/usermode/include/byte_swap.h:1.10 --- src/sys/arch/usermode/include/byte_swap.h:1.9 Sun Feb 5 14:27:08 2012 +++ src/sys/arch/usermode/include/byte_swap.h Sun Feb 5 17:40:08 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: byte_swap.h,v 1.9 2012/02/05 14:27:08 reinoud Exp $ */ +/* $NetBSD: byte_swap.h,v 1.10 2012/02/05 17:40:08 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Sun Feb 5 15:25:56 CET 2012 + * Automatically generated by genheaders.sh on Sun Feb 5 18:39:34 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_BYTE_SWAP_H Index: src/sys/arch/usermode/include/elf_machdep.h diff -u src/sys/arch/usermode/include/elf_machdep.h:1.9 src/sys/arch/usermode/include/elf_machdep.h:1.10 --- src/sys/arch/usermode/include/elf_machdep.h:1.9 Sun Feb 5 14:27:08 2012 +++ src/sys/arch/usermode/include/elf_machdep.h Sun Feb 5 17:40:08 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: elf_machdep.h,v 1.9 2012/02/05 14:27:08 reinoud Exp $ */ +/* $NetBSD: elf_machdep.h,v 1.10 2012/02/05 17:40:08 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Sun Feb 5 15:25:56 CET 2012 + * Automatically generated by genheaders.sh on Sun Feb 5 18:39:34 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_ELF_MACHDEP_H Index: src/sys/arch/usermode/include/endian.h diff -u src/sys/arch/usermode/include/endian.h:1.9 src/sys/arch/usermode/include/endian.h:1.10 --- src/sys/arch/usermode/include/endian.h:1.9 Sun Feb 5 14:27:08 2012 +++ src/sys/arch/usermode/include/endian.h Sun Feb 5 17:40:08 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: endian.h,v 1.9 2012/02/05 14:27:08 reinoud Exp $ */ +/* $NetBSD: endian.h,v 1.10 2012/02/05 17:40:08 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Sun Feb 5 15:25:57 CET 2012 + * Automatically generated by genheaders.sh on Sun Feb 5 18:39:34 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_ENDIAN_H Index: src/sys/arch/usermode/include/endian_machdep.h diff -u src/sys/arch/usermode/include/endian_machdep.h:1.9 src/sys/arch/usermode/include/endian_machdep.h:1.10 ---
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sun Feb 5 14:27:09 UTC 2012 Modified Files: src/sys/arch/usermode/include: asm.h bswap.h byte_swap.h cdefs.h disklabel.h elf_machdep.h endian.h endian_machdep.h int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h netbsd32_machdep.h param.h ptrace.h wchar_limits.h Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.3 -r1.4 src/sys/arch/usermode/include/cdefs.h cvs rdiff -u -r1.10 -r1.11 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h cvs rdiff -u -r1.9 -r1.10 src/sys/arch/usermode/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sun Feb 5 17:39:18 UTC 2012 Modified Files: src/sys/arch/usermode/include: genheaders.sh Log Message: With the recent kmem changes, remove the `unlimited' maximum setting of NKMEMPAGES from amd64 since it gets us into trouble. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/usermode/include/genheaders.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sun Feb 5 17:40:08 UTC 2012 Modified Files: src/sys/arch/usermode/include: asm.h bswap.h byte_swap.h cdefs.h disklabel.h elf_machdep.h endian.h endian_machdep.h int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h netbsd32_machdep.h param.h ptrace.h wchar_limits.h Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.4 -r1.5 src/sys/arch/usermode/include/cdefs.h cvs rdiff -u -r1.11 -r1.12 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h cvs rdiff -u -r1.10 -r1.11 src/sys/arch/usermode/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sat Feb 4 23:04:15 UTC 2012 Modified Files: src/sys/arch/usermode/include: genheaders.sh Log Message: Bump UPAGES effectively bumping per-process (system) stack i.e. the stack on which traps are taken. When it was 8 it could run out of space on big NFS stack traces in combination with timer and memory paging. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/usermode/include/genheaders.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/genheaders.sh diff -u src/sys/arch/usermode/include/genheaders.sh:1.6 src/sys/arch/usermode/include/genheaders.sh:1.7 --- src/sys/arch/usermode/include/genheaders.sh:1.6 Thu Feb 2 11:10:24 2012 +++ src/sys/arch/usermode/include/genheaders.sh Sat Feb 4 23:04:15 2012 @@ -57,7 +57,7 @@ EOF echo #undef __HAVE_PROCFS_MACHDEP ${hdr} elif [ $hdr = param.h ]; then echo #undef UPAGES ${hdr} - echo #define UPAGES 8 ${hdr} + echo #define UPAGES 12 ${hdr} echo #undef USPACE ${hdr} echo #define USPACE (PAGE_SIZE*UPAGES) ${hdr} fi
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sat Feb 4 23:04:15 UTC 2012 Modified Files: src/sys/arch/usermode/include: genheaders.sh Log Message: Bump UPAGES effectively bumping per-process (system) stack i.e. the stack on which traps are taken. When it was 8 it could run out of space on big NFS stack traces in combination with timer and memory paging. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/usermode/include/genheaders.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Thu Feb 2 11:10:24 UTC 2012 Modified Files: src/sys/arch/usermode/include: genheaders.sh Log Message: Add cdefs.h to usermode's genheaders.sh To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/usermode/include/genheaders.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/genheaders.sh diff -u src/sys/arch/usermode/include/genheaders.sh:1.5 src/sys/arch/usermode/include/genheaders.sh:1.6 --- src/sys/arch/usermode/include/genheaders.sh:1.5 Sat Jan 14 21:20:56 2012 +++ src/sys/arch/usermode/include/genheaders.sh Thu Feb 2 11:10:24 2012 @@ -20,6 +20,7 @@ HDRS=$HDRS netbsd32_machdep.h HDRS=$HDRS param.h HDRS=$HDRS ptrace.h HDRS=$HDRS wchar_limits.h +HDRS=$HDRS cdefs.h for hdr in ${HDRS}; do G=_USERMODE_$(echo ${hdr} | sed 's/\./_/g' | tr [a-z] [A-Z])
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Thu Feb 2 11:12:40 UTC 2012 Modified Files: src/sys/arch/usermode/include: asm.h bswap.h byte_swap.h cdefs.h disklabel.h elf_machdep.h endian.h endian_machdep.h int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h netbsd32_machdep.h param.h ptrace.h wchar_limits.h Log Message: Regen To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.2 -r1.3 src/sys/arch/usermode/include/cdefs.h cvs rdiff -u -r1.9 -r1.10 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h cvs rdiff -u -r1.8 -r1.9 src/sys/arch/usermode/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/asm.h diff -u src/sys/arch/usermode/include/asm.h:1.7 src/sys/arch/usermode/include/asm.h:1.8 --- src/sys/arch/usermode/include/asm.h:1.7 Sat Jan 14 21:21:48 2012 +++ src/sys/arch/usermode/include/asm.h Thu Feb 2 11:12:40 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: asm.h,v 1.7 2012/01/14 21:21:48 reinoud Exp $ */ +/* $NetBSD: asm.h,v 1.8 2012/02/02 11:12:40 reinoud Exp $ */ /* - * Automatically generated by ./genheaders.sh on Sat Jan 14 22:20:59 CET 2012 + * Automatically generated by genheaders.sh on Fri Jan 27 08:34:26 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_ASM_H Index: src/sys/arch/usermode/include/bswap.h diff -u src/sys/arch/usermode/include/bswap.h:1.7 src/sys/arch/usermode/include/bswap.h:1.8 --- src/sys/arch/usermode/include/bswap.h:1.7 Sat Jan 14 21:21:48 2012 +++ src/sys/arch/usermode/include/bswap.h Thu Feb 2 11:12:40 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: bswap.h,v 1.7 2012/01/14 21:21:48 reinoud Exp $ */ +/* $NetBSD: bswap.h,v 1.8 2012/02/02 11:12:40 reinoud Exp $ */ /* - * Automatically generated by ./genheaders.sh on Sat Jan 14 22:20:59 CET 2012 + * Automatically generated by genheaders.sh on Fri Jan 27 08:34:26 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_BSWAP_H Index: src/sys/arch/usermode/include/byte_swap.h diff -u src/sys/arch/usermode/include/byte_swap.h:1.7 src/sys/arch/usermode/include/byte_swap.h:1.8 --- src/sys/arch/usermode/include/byte_swap.h:1.7 Sat Jan 14 21:21:48 2012 +++ src/sys/arch/usermode/include/byte_swap.h Thu Feb 2 11:12:40 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: byte_swap.h,v 1.7 2012/01/14 21:21:48 reinoud Exp $ */ +/* $NetBSD: byte_swap.h,v 1.8 2012/02/02 11:12:40 reinoud Exp $ */ /* - * Automatically generated by ./genheaders.sh on Sat Jan 14 22:20:59 CET 2012 + * Automatically generated by genheaders.sh on Fri Jan 27 08:34:26 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_BYTE_SWAP_H Index: src/sys/arch/usermode/include/elf_machdep.h diff -u src/sys/arch/usermode/include/elf_machdep.h:1.7 src/sys/arch/usermode/include/elf_machdep.h:1.8 --- src/sys/arch/usermode/include/elf_machdep.h:1.7 Sat Jan 14 21:21:48 2012 +++ src/sys/arch/usermode/include/elf_machdep.h Thu Feb 2 11:12:40 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: elf_machdep.h,v 1.7 2012/01/14 21:21:48 reinoud Exp $ */ +/* $NetBSD: elf_machdep.h,v 1.8 2012/02/02 11:12:40 reinoud Exp $ */ /* - * Automatically generated by ./genheaders.sh on Sat Jan 14 22:20:59 CET 2012 + * Automatically generated by genheaders.sh on Fri Jan 27 08:34:26 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_ELF_MACHDEP_H Index: src/sys/arch/usermode/include/endian.h diff -u src/sys/arch/usermode/include/endian.h:1.7 src/sys/arch/usermode/include/endian.h:1.8 --- src/sys/arch/usermode/include/endian.h:1.7 Sat Jan 14 21:21:48 2012 +++ src/sys/arch/usermode/include/endian.h Thu Feb 2 11:12:40 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: endian.h,v 1.7 2012/01/14 21:21:48 reinoud Exp $ */ +/* $NetBSD: endian.h,v 1.8 2012/02/02 11:12:40 reinoud Exp $ */ /* - * Automatically generated by ./genheaders.sh on Sat Jan 14 22:20:59 CET 2012 + * Automatically generated by genheaders.sh on Fri Jan 27 08:34:26 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_ENDIAN_H Index: src/sys/arch/usermode/include/endian_machdep.h diff -u src/sys/arch/usermode/include/endian_machdep.h:1.7 src/sys/arch/usermode/include/endian_machdep.h:1.8 ---
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Thu Feb 2 11:10:24 UTC 2012 Modified Files: src/sys/arch/usermode/include: genheaders.sh Log Message: Add cdefs.h to usermode's genheaders.sh To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/usermode/include/genheaders.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Thu Feb 2 11:12:40 UTC 2012 Modified Files: src/sys/arch/usermode/include: asm.h bswap.h byte_swap.h cdefs.h disklabel.h elf_machdep.h endian.h endian_machdep.h int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h netbsd32_machdep.h param.h ptrace.h wchar_limits.h Log Message: Regen To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.2 -r1.3 src/sys/arch/usermode/include/cdefs.h cvs rdiff -u -r1.9 -r1.10 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h cvs rdiff -u -r1.8 -r1.9 src/sys/arch/usermode/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Thu Feb 2 11:13:41 UTC 2012 Modified Files: src/sys/arch/usermode/include: intr.h Log Message: spl_intr() is not defined anymore so remove from the header file To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/usermode/include/intr.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Thu Jan 19 12:10:00 UTC 2012 Modified Files: src/sys/arch/usermode/include: cpu.h Log Message: Add macro cpu_need_resched To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/usermode/include/cpu.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/cpu.h diff -u src/sys/arch/usermode/include/cpu.h:1.7 src/sys/arch/usermode/include/cpu.h:1.8 --- src/sys/arch/usermode/include/cpu.h:1.7 Sat Jan 14 21:23:24 2012 +++ src/sys/arch/usermode/include/cpu.h Thu Jan 19 12:10:00 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.h,v 1.7 2012/01/14 21:23:24 reinoud Exp $ */ +/* $NetBSD: cpu.h,v 1.8 2012/01/19 12:10:00 reinoud Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca @@ -45,6 +45,7 @@ extern void userret(struct lwp *); extern int astpending; #define aston(ci) (astpending++) +#define cpu_need_resched(ci, flags) { ci-ci_want_resched = 1; aston(); } struct cpu_info {
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Thu Jan 19 12:14:49 UTC 2012 Modified Files: src/sys/arch/usermode/include: cpu.h Log Message: My fault, forgot that cpu_need_resched() is indeed already declared as a function To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/usermode/include/cpu.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/cpu.h diff -u src/sys/arch/usermode/include/cpu.h:1.8 src/sys/arch/usermode/include/cpu.h:1.9 --- src/sys/arch/usermode/include/cpu.h:1.8 Thu Jan 19 12:10:00 2012 +++ src/sys/arch/usermode/include/cpu.h Thu Jan 19 12:14:49 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.h,v 1.8 2012/01/19 12:10:00 reinoud Exp $ */ +/* $NetBSD: cpu.h,v 1.9 2012/01/19 12:14:49 reinoud Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca @@ -43,9 +43,10 @@ extern void userret(struct lwp *); #define cpu_proc_fork(p1, p2) +struct cpu_info; extern int astpending; #define aston(ci) (astpending++) -#define cpu_need_resched(ci, flags) { ci-ci_want_resched = 1; aston(); } +extern void cpu_need_resched(struct cpu_info *ci, int flags); struct cpu_info {
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Thu Jan 19 12:10:00 UTC 2012 Modified Files: src/sys/arch/usermode/include: cpu.h Log Message: Add macro cpu_need_resched To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/usermode/include/cpu.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Thu Jan 19 12:14:49 UTC 2012 Modified Files: src/sys/arch/usermode/include: cpu.h Log Message: My fault, forgot that cpu_need_resched() is indeed already declared as a function To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/usermode/include/cpu.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sat Jan 14 17:31:09 UTC 2012 Modified Files: src/sys/arch/usermode/include: machdep.h Log Message: Add md_get_sp() for MI stack frame manipulation. Note that NetBSD/usermode only works on decending stacks for now! To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/usermode/include/machdep.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/machdep.h diff -u src/sys/arch/usermode/include/machdep.h:1.7 src/sys/arch/usermode/include/machdep.h:1.8 --- src/sys/arch/usermode/include/machdep.h:1.7 Tue Jan 3 10:53:46 2012 +++ src/sys/arch/usermode/include/machdep.h Sat Jan 14 17:31:09 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.h,v 1.7 2012/01/03 10:53:46 reinoud Exp $ */ +/* $NetBSD: machdep.h,v 1.8 2012/01/14 17:31:09 reinoud Exp $ */ /*- * Copyright (c) 2011 Reinoud Zandijk rein...@netbsd.org @@ -36,10 +36,7 @@ void md_syscall_set_returnargs(lwp_t *l, void md_syscall_inc_pc(ucontext_t *ucp, uint32_t opcode); void md_syscall_dec_pc(ucontext_t *ucp, uint32_t opcode); register_t md_get_pc(ucontext_t *ucp); +register_t md_get_sp(ucontext_t *ucp); /* handlers */ void syscall(void); -void pagefault(void); - -/* signal stack */ -stack_t *usermode_signal_stack(void);
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sat Jan 14 17:36:32 UTC 2012 Modified Files: src/sys/arch/usermode/include: asm.h bswap.h byte_swap.h disklabel.h elf_machdep.h endian.h endian_machdep.h genheaders.sh int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h netbsd32_machdep.h param.h ptrace.h wchar_limits.h Log Message: Update automatically generated headers To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.7 -r1.8 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h cvs rdiff -u -r1.3 -r1.4 src/sys/arch/usermode/include/genheaders.sh cvs rdiff -u -r1.6 -r1.7 src/sys/arch/usermode/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/asm.h diff -u src/sys/arch/usermode/include/asm.h:1.5 src/sys/arch/usermode/include/asm.h:1.6 --- src/sys/arch/usermode/include/asm.h:1.5 Sun Jan 8 18:05:43 2012 +++ src/sys/arch/usermode/include/asm.h Sat Jan 14 17:36:32 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: asm.h,v 1.5 2012/01/08 18:05:43 jmcneill Exp $ */ +/* $NetBSD: asm.h,v 1.6 2012/01/14 17:36:32 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Sat Jan 7 19:13:27 EST 2012 + * Automatically generated by ./genheaders.sh on Sat Jan 14 12:29:08 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_ASM_H Index: src/sys/arch/usermode/include/bswap.h diff -u src/sys/arch/usermode/include/bswap.h:1.5 src/sys/arch/usermode/include/bswap.h:1.6 --- src/sys/arch/usermode/include/bswap.h:1.5 Sun Jan 8 18:05:43 2012 +++ src/sys/arch/usermode/include/bswap.h Sat Jan 14 17:36:32 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: bswap.h,v 1.5 2012/01/08 18:05:43 jmcneill Exp $ */ +/* $NetBSD: bswap.h,v 1.6 2012/01/14 17:36:32 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Sat Jan 7 19:13:27 EST 2012 + * Automatically generated by ./genheaders.sh on Sat Jan 14 12:29:08 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_BSWAP_H Index: src/sys/arch/usermode/include/byte_swap.h diff -u src/sys/arch/usermode/include/byte_swap.h:1.5 src/sys/arch/usermode/include/byte_swap.h:1.6 --- src/sys/arch/usermode/include/byte_swap.h:1.5 Sun Jan 8 18:05:43 2012 +++ src/sys/arch/usermode/include/byte_swap.h Sat Jan 14 17:36:32 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: byte_swap.h,v 1.5 2012/01/08 18:05:43 jmcneill Exp $ */ +/* $NetBSD: byte_swap.h,v 1.6 2012/01/14 17:36:32 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Sat Jan 7 19:13:27 EST 2012 + * Automatically generated by ./genheaders.sh on Sat Jan 14 12:29:08 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_BYTE_SWAP_H Index: src/sys/arch/usermode/include/elf_machdep.h diff -u src/sys/arch/usermode/include/elf_machdep.h:1.5 src/sys/arch/usermode/include/elf_machdep.h:1.6 --- src/sys/arch/usermode/include/elf_machdep.h:1.5 Sun Jan 8 18:05:43 2012 +++ src/sys/arch/usermode/include/elf_machdep.h Sat Jan 14 17:36:32 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: elf_machdep.h,v 1.5 2012/01/08 18:05:43 jmcneill Exp $ */ +/* $NetBSD: elf_machdep.h,v 1.6 2012/01/14 17:36:32 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Sat Jan 7 19:13:27 EST 2012 + * Automatically generated by ./genheaders.sh on Sat Jan 14 12:29:08 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_ELF_MACHDEP_H Index: src/sys/arch/usermode/include/endian.h diff -u src/sys/arch/usermode/include/endian.h:1.5 src/sys/arch/usermode/include/endian.h:1.6 --- src/sys/arch/usermode/include/endian.h:1.5 Sun Jan 8 18:05:43 2012 +++ src/sys/arch/usermode/include/endian.h Sat Jan 14 17:36:32 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: endian.h,v 1.5 2012/01/08 18:05:43 jmcneill Exp $ */ +/* $NetBSD: endian.h,v 1.6 2012/01/14 17:36:32 reinoud Exp $ */ /* - * Automatically generated by genheaders.sh on Sat Jan 7 19:13:27 EST 2012 + * Automatically generated by ./genheaders.sh on Sat Jan 14 12:29:08 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_ENDIAN_H Index: src/sys/arch/usermode/include/endian_machdep.h diff -u src/sys/arch/usermode/include/endian_machdep.h:1.5
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sat Jan 14 21:20:56 UTC 2012 Modified Files: src/sys/arch/usermode/include: genheaders.sh Log Message: Bump UPAGES with one more to allow for AST processing. Somehow the space was a bit tight OR i am checking too regorously on stack space needed. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/usermode/include/genheaders.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/genheaders.sh diff -u src/sys/arch/usermode/include/genheaders.sh:1.4 src/sys/arch/usermode/include/genheaders.sh:1.5 --- src/sys/arch/usermode/include/genheaders.sh:1.4 Sat Jan 14 17:36:32 2012 +++ src/sys/arch/usermode/include/genheaders.sh Sat Jan 14 21:20:56 2012 @@ -56,7 +56,7 @@ EOF echo #undef __HAVE_PROCFS_MACHDEP ${hdr} elif [ $hdr = param.h ]; then echo #undef UPAGES ${hdr} - echo #define UPAGES 7 ${hdr} + echo #define UPAGES 8 ${hdr} echo #undef USPACE ${hdr} echo #define USPACE (PAGE_SIZE*UPAGES) ${hdr} fi
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sat Jan 14 21:21:48 UTC 2012 Modified Files: src/sys/arch/usermode/include: asm.h bswap.h byte_swap.h disklabel.h elf_machdep.h endian.h endian_machdep.h int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h netbsd32_machdep.h param.h ptrace.h wchar_limits.h Log Message: Regen To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.8 -r1.9 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h cvs rdiff -u -r1.7 -r1.8 src/sys/arch/usermode/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/asm.h diff -u src/sys/arch/usermode/include/asm.h:1.6 src/sys/arch/usermode/include/asm.h:1.7 --- src/sys/arch/usermode/include/asm.h:1.6 Sat Jan 14 17:36:32 2012 +++ src/sys/arch/usermode/include/asm.h Sat Jan 14 21:21:48 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: asm.h,v 1.6 2012/01/14 17:36:32 reinoud Exp $ */ +/* $NetBSD: asm.h,v 1.7 2012/01/14 21:21:48 reinoud Exp $ */ /* - * Automatically generated by ./genheaders.sh on Sat Jan 14 12:29:08 CET 2012 + * Automatically generated by ./genheaders.sh on Sat Jan 14 22:20:59 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_ASM_H Index: src/sys/arch/usermode/include/bswap.h diff -u src/sys/arch/usermode/include/bswap.h:1.6 src/sys/arch/usermode/include/bswap.h:1.7 --- src/sys/arch/usermode/include/bswap.h:1.6 Sat Jan 14 17:36:32 2012 +++ src/sys/arch/usermode/include/bswap.h Sat Jan 14 21:21:48 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: bswap.h,v 1.6 2012/01/14 17:36:32 reinoud Exp $ */ +/* $NetBSD: bswap.h,v 1.7 2012/01/14 21:21:48 reinoud Exp $ */ /* - * Automatically generated by ./genheaders.sh on Sat Jan 14 12:29:08 CET 2012 + * Automatically generated by ./genheaders.sh on Sat Jan 14 22:20:59 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_BSWAP_H Index: src/sys/arch/usermode/include/byte_swap.h diff -u src/sys/arch/usermode/include/byte_swap.h:1.6 src/sys/arch/usermode/include/byte_swap.h:1.7 --- src/sys/arch/usermode/include/byte_swap.h:1.6 Sat Jan 14 17:36:32 2012 +++ src/sys/arch/usermode/include/byte_swap.h Sat Jan 14 21:21:48 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: byte_swap.h,v 1.6 2012/01/14 17:36:32 reinoud Exp $ */ +/* $NetBSD: byte_swap.h,v 1.7 2012/01/14 21:21:48 reinoud Exp $ */ /* - * Automatically generated by ./genheaders.sh on Sat Jan 14 12:29:08 CET 2012 + * Automatically generated by ./genheaders.sh on Sat Jan 14 22:20:59 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_BYTE_SWAP_H Index: src/sys/arch/usermode/include/elf_machdep.h diff -u src/sys/arch/usermode/include/elf_machdep.h:1.6 src/sys/arch/usermode/include/elf_machdep.h:1.7 --- src/sys/arch/usermode/include/elf_machdep.h:1.6 Sat Jan 14 17:36:32 2012 +++ src/sys/arch/usermode/include/elf_machdep.h Sat Jan 14 21:21:48 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: elf_machdep.h,v 1.6 2012/01/14 17:36:32 reinoud Exp $ */ +/* $NetBSD: elf_machdep.h,v 1.7 2012/01/14 21:21:48 reinoud Exp $ */ /* - * Automatically generated by ./genheaders.sh on Sat Jan 14 12:29:08 CET 2012 + * Automatically generated by ./genheaders.sh on Sat Jan 14 22:20:59 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_ELF_MACHDEP_H Index: src/sys/arch/usermode/include/endian.h diff -u src/sys/arch/usermode/include/endian.h:1.6 src/sys/arch/usermode/include/endian.h:1.7 --- src/sys/arch/usermode/include/endian.h:1.6 Sat Jan 14 17:36:32 2012 +++ src/sys/arch/usermode/include/endian.h Sat Jan 14 21:21:48 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: endian.h,v 1.6 2012/01/14 17:36:32 reinoud Exp $ */ +/* $NetBSD: endian.h,v 1.7 2012/01/14 21:21:48 reinoud Exp $ */ /* - * Automatically generated by ./genheaders.sh on Sat Jan 14 12:29:08 CET 2012 + * Automatically generated by ./genheaders.sh on Sat Jan 14 22:20:59 CET 2012 * Do not modify directly! */ #ifndef _USERMODE_ENDIAN_H Index: src/sys/arch/usermode/include/endian_machdep.h diff -u src/sys/arch/usermode/include/endian_machdep.h:1.6 src/sys/arch/usermode/include/endian_machdep.h:1.7 --- src/sys/arch/usermode/include/endian_machdep.h:1.6 Sat Jan 14 17:36:32 2012 +++
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sat Jan 14 21:23:24 UTC 2012 Modified Files: src/sys/arch/usermode/include: cpu.h Log Message: Define astpending flag and the aston() setter To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/usermode/include/cpu.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/cpu.h diff -u src/sys/arch/usermode/include/cpu.h:1.6 src/sys/arch/usermode/include/cpu.h:1.7 --- src/sys/arch/usermode/include/cpu.h:1.6 Sat Aug 13 10:31:24 2011 +++ src/sys/arch/usermode/include/cpu.h Sat Jan 14 21:23:24 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.h,v 1.6 2011/08/13 10:31:24 jmcneill Exp $ */ +/* $NetBSD: cpu.h,v 1.7 2012/01/14 21:23:24 reinoud Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca @@ -36,6 +36,16 @@ extern void cpu_signotify(struct lwp *); extern void cpu_need_proftick(struct lwp *); +extern void userret(struct lwp *); + +#define curcpu() usermode_curcpu() +#define cpu_number() 0 + +#define cpu_proc_fork(p1, p2) + +extern int astpending; +#define aston(ci) (astpending++) + struct cpu_info { device_t ci_dev; @@ -66,11 +76,6 @@ usermode_delay(unsigned int ms) thunk_usleep(ms); } -#define curcpu() usermode_curcpu() -#define cpu_number() 0 - -#define cpu_proc_fork(p1, p2) - #define delay(ms) usermode_delay(ms) #define DELAY(ms) usermode_delay(ms)
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sat Jan 14 17:31:09 UTC 2012 Modified Files: src/sys/arch/usermode/include: machdep.h Log Message: Add md_get_sp() for MI stack frame manipulation. Note that NetBSD/usermode only works on decending stacks for now! To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/usermode/include/machdep.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sat Jan 14 17:36:32 UTC 2012 Modified Files: src/sys/arch/usermode/include: asm.h bswap.h byte_swap.h disklabel.h elf_machdep.h endian.h endian_machdep.h genheaders.sh int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h netbsd32_machdep.h param.h ptrace.h wchar_limits.h Log Message: Update automatically generated headers To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.7 -r1.8 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h cvs rdiff -u -r1.3 -r1.4 src/sys/arch/usermode/include/genheaders.sh cvs rdiff -u -r1.6 -r1.7 src/sys/arch/usermode/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sat Jan 14 21:20:56 UTC 2012 Modified Files: src/sys/arch/usermode/include: genheaders.sh Log Message: Bump UPAGES with one more to allow for AST processing. Somehow the space was a bit tight OR i am checking too regorously on stack space needed. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/usermode/include/genheaders.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sat Jan 14 21:21:48 UTC 2012 Modified Files: src/sys/arch/usermode/include: asm.h bswap.h byte_swap.h disklabel.h elf_machdep.h endian.h endian_machdep.h int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h netbsd32_machdep.h param.h ptrace.h wchar_limits.h Log Message: Regen To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.8 -r1.9 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h cvs rdiff -u -r1.7 -r1.8 src/sys/arch/usermode/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sat Jan 14 21:23:24 UTC 2012 Modified Files: src/sys/arch/usermode/include: cpu.h Log Message: Define astpending flag and the aston() setter To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/usermode/include/cpu.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Tue Jan 10 10:19:38 UTC 2012 Modified Files: src/sys/arch/usermode/include: vmparam.h Log Message: Clarify comment about PAGER_MAP_DEFAULT_SIZE To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/arch/usermode/include/vmparam.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/vmparam.h diff -u src/sys/arch/usermode/include/vmparam.h:1.14 src/sys/arch/usermode/include/vmparam.h:1.15 --- src/sys/arch/usermode/include/vmparam.h:1.14 Fri Jan 6 12:53:07 2012 +++ src/sys/arch/usermode/include/vmparam.h Tue Jan 10 10:19:38 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: vmparam.h,v 1.14 2012/01/06 12:53:07 reinoud Exp $ */ +/* $NetBSD: vmparam.h,v 1.15 2012/01/10 10:19:38 reinoud Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca @@ -51,8 +51,12 @@ extern paddr_t kmem_user_start, kmem_use #define USRSTACK VM_MAXUSER_ADDRESS -/* override the default pager_map size, there is little KVA */ -#define PAGER_MAP_DEFAULT_SIZE (8 * 1024 * 1024) +/* + * When an architecture has little KVA then override the default pager_map + * size in its block by limiting it like this: + * + * #define PAGER_MAP_DEFAULT_SIZE (8 * 1024 * 1024) + */ #if defined(__i386__) #define PAGE_SHIFT 12
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Tue Jan 10 10:19:38 UTC 2012 Modified Files: src/sys/arch/usermode/include: vmparam.h Log Message: Clarify comment about PAGER_MAP_DEFAULT_SIZE To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/arch/usermode/include/vmparam.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Sun Jan 8 18:05:03 UTC 2012 Modified Files: src/sys/arch/usermode/include: genheaders.sh Log Message: disklabel.h: handle __HAVE_OLD_DISKLABEL. while here, I noticed someone changed param.h without updating genheaders.h, so catch up. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/usermode/include/genheaders.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/genheaders.sh diff -u src/sys/arch/usermode/include/genheaders.sh:1.2 src/sys/arch/usermode/include/genheaders.sh:1.3 --- src/sys/arch/usermode/include/genheaders.sh:1.2 Thu Sep 8 10:49:41 2011 +++ src/sys/arch/usermode/include/genheaders.sh Sun Jan 8 18:05:02 2012 @@ -45,15 +45,20 @@ EOF # header specific quirks if [ $hdr = disklabel.h ]; then + echo #include machine/types.h ${hdr} + echo #ifndef __HAVE_OLD_DISKLABEL ${hdr} echo #undef DISKUNIT ${hdr} echo #undef DISKPART ${hdr} echo #undef DISKMINOR ${hdr} + echo #endif ${hdr} elif [ $hdr = ptrace.h ]; then echo #undef __HAVE_PTRACE_MACHDEP ${hdr} echo #undef __HAVE_PROCFS_MACHDEP ${hdr} elif [ $hdr = param.h ]; then + echo #undef UPAGES ${hdr} + echo #define UPAGES 6 ${hdr} echo #undef USPACE ${hdr} - echo #define USPACE (PAGE_SIZE*4) ${hdr} + echo #define USPACE (PAGE_SIZE*UPAGES) ${hdr} fi echo ${hdr}
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Sun Jan 8 18:05:43 UTC 2012 Modified Files: src/sys/arch/usermode/include: asm.h bswap.h byte_swap.h disklabel.h elf_machdep.h endian.h endian_machdep.h int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h netbsd32_machdep.h param.h ptrace.h wchar_limits.h Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.6 -r1.7 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h cvs rdiff -u -r1.5 -r1.6 src/sys/arch/usermode/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/asm.h diff -u src/sys/arch/usermode/include/asm.h:1.4 src/sys/arch/usermode/include/asm.h:1.5 --- src/sys/arch/usermode/include/asm.h:1.4 Thu Sep 8 10:49:56 2011 +++ src/sys/arch/usermode/include/asm.h Sun Jan 8 18:05:43 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: asm.h,v 1.4 2011/09/08 10:49:56 jmcneill Exp $ */ +/* $NetBSD: asm.h,v 1.5 2012/01/08 18:05:43 jmcneill Exp $ */ /* - * Automatically generated by genheaders.sh on Thu Sep 8 06:50:17 EDT 2011 + * Automatically generated by genheaders.sh on Sat Jan 7 19:13:27 EST 2012 * Do not modify directly! */ #ifndef _USERMODE_ASM_H Index: src/sys/arch/usermode/include/bswap.h diff -u src/sys/arch/usermode/include/bswap.h:1.4 src/sys/arch/usermode/include/bswap.h:1.5 --- src/sys/arch/usermode/include/bswap.h:1.4 Thu Sep 8 10:49:56 2011 +++ src/sys/arch/usermode/include/bswap.h Sun Jan 8 18:05:43 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: bswap.h,v 1.4 2011/09/08 10:49:56 jmcneill Exp $ */ +/* $NetBSD: bswap.h,v 1.5 2012/01/08 18:05:43 jmcneill Exp $ */ /* - * Automatically generated by genheaders.sh on Thu Sep 8 06:50:17 EDT 2011 + * Automatically generated by genheaders.sh on Sat Jan 7 19:13:27 EST 2012 * Do not modify directly! */ #ifndef _USERMODE_BSWAP_H Index: src/sys/arch/usermode/include/byte_swap.h diff -u src/sys/arch/usermode/include/byte_swap.h:1.4 src/sys/arch/usermode/include/byte_swap.h:1.5 --- src/sys/arch/usermode/include/byte_swap.h:1.4 Thu Sep 8 10:49:56 2011 +++ src/sys/arch/usermode/include/byte_swap.h Sun Jan 8 18:05:43 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: byte_swap.h,v 1.4 2011/09/08 10:49:56 jmcneill Exp $ */ +/* $NetBSD: byte_swap.h,v 1.5 2012/01/08 18:05:43 jmcneill Exp $ */ /* - * Automatically generated by genheaders.sh on Thu Sep 8 06:50:17 EDT 2011 + * Automatically generated by genheaders.sh on Sat Jan 7 19:13:27 EST 2012 * Do not modify directly! */ #ifndef _USERMODE_BYTE_SWAP_H Index: src/sys/arch/usermode/include/elf_machdep.h diff -u src/sys/arch/usermode/include/elf_machdep.h:1.4 src/sys/arch/usermode/include/elf_machdep.h:1.5 --- src/sys/arch/usermode/include/elf_machdep.h:1.4 Thu Sep 8 10:49:56 2011 +++ src/sys/arch/usermode/include/elf_machdep.h Sun Jan 8 18:05:43 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: elf_machdep.h,v 1.4 2011/09/08 10:49:56 jmcneill Exp $ */ +/* $NetBSD: elf_machdep.h,v 1.5 2012/01/08 18:05:43 jmcneill Exp $ */ /* - * Automatically generated by genheaders.sh on Thu Sep 8 06:50:17 EDT 2011 + * Automatically generated by genheaders.sh on Sat Jan 7 19:13:27 EST 2012 * Do not modify directly! */ #ifndef _USERMODE_ELF_MACHDEP_H Index: src/sys/arch/usermode/include/endian.h diff -u src/sys/arch/usermode/include/endian.h:1.4 src/sys/arch/usermode/include/endian.h:1.5 --- src/sys/arch/usermode/include/endian.h:1.4 Thu Sep 8 10:49:56 2011 +++ src/sys/arch/usermode/include/endian.h Sun Jan 8 18:05:43 2012 @@ -1,7 +1,7 @@ -/* $NetBSD: endian.h,v 1.4 2011/09/08 10:49:56 jmcneill Exp $ */ +/* $NetBSD: endian.h,v 1.5 2012/01/08 18:05:43 jmcneill Exp $ */ /* - * Automatically generated by genheaders.sh on Thu Sep 8 06:50:17 EDT 2011 + * Automatically generated by genheaders.sh on Sat Jan 7 19:13:27 EST 2012 * Do not modify directly! */ #ifndef _USERMODE_ENDIAN_H Index: src/sys/arch/usermode/include/endian_machdep.h diff -u src/sys/arch/usermode/include/endian_machdep.h:1.4 src/sys/arch/usermode/include/endian_machdep.h:1.5 --- src/sys/arch/usermode/include/endian_machdep.h:1.4 Thu Sep 8 10:49:56 2011 +++
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Sun Jan 8 18:06:00 UTC 2012 Modified Files: src/sys/arch/usermode/include: types.h Log Message: define __HAVE_OLD_DISKLABEL on i386 To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/usermode/include/types.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/types.h diff -u src/sys/arch/usermode/include/types.h:1.6 src/sys/arch/usermode/include/types.h:1.7 --- src/sys/arch/usermode/include/types.h:1.6 Fri Dec 11 05:52:04 2009 +++ src/sys/arch/usermode/include/types.h Sun Jan 8 18:06:00 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: types.h,v 1.6 2009/12/11 05:52:04 matt Exp $ */ +/* $NetBSD: types.h,v 1.7 2012/01/08 18:06:00 jmcneill Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca @@ -58,4 +58,8 @@ typedef volatile unsigned char __cpu_sim #define __SIMPLELOCK_LOCKED 1 #define __SIMPLELOCK_UNLOCKED 0 +#if defined(__i386__) +#define __HAVE_OLD_DISKLABEL +#endif + #endif /* !_ARCH_USERMODE_INCLUDE_TYPES_H */
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Sun Jan 8 18:05:03 UTC 2012 Modified Files: src/sys/arch/usermode/include: genheaders.sh Log Message: disklabel.h: handle __HAVE_OLD_DISKLABEL. while here, I noticed someone changed param.h without updating genheaders.h, so catch up. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/usermode/include/genheaders.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Sun Jan 8 18:05:43 UTC 2012 Modified Files: src/sys/arch/usermode/include: asm.h bswap.h byte_swap.h disklabel.h elf_machdep.h endian.h endian_machdep.h int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h netbsd32_machdep.h param.h ptrace.h wchar_limits.h Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.6 -r1.7 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h cvs rdiff -u -r1.5 -r1.6 src/sys/arch/usermode/include/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Sun Jan 8 18:06:00 UTC 2012 Modified Files: src/sys/arch/usermode/include: types.h Log Message: define __HAVE_OLD_DISKLABEL on i386 To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/usermode/include/types.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Fri Jan 6 12:53:07 UTC 2012 Modified Files: src/sys/arch/usermode/include: vmparam.h Log Message: Bump pager map default size since KVM is not that tight anymore To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/arch/usermode/include/vmparam.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/vmparam.h diff -u src/sys/arch/usermode/include/vmparam.h:1.13 src/sys/arch/usermode/include/vmparam.h:1.14 --- src/sys/arch/usermode/include/vmparam.h:1.13 Tue Jan 3 21:28:50 2012 +++ src/sys/arch/usermode/include/vmparam.h Fri Jan 6 12:53:07 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: vmparam.h,v 1.13 2012/01/03 21:28:50 reinoud Exp $ */ +/* $NetBSD: vmparam.h,v 1.14 2012/01/06 12:53:07 reinoud Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca @@ -52,7 +52,7 @@ extern paddr_t kmem_user_start, kmem_use #define USRSTACK VM_MAXUSER_ADDRESS /* override the default pager_map size, there is little KVA */ -#define PAGER_MAP_DEFAULT_SIZE (4 * 1024 * 1024) +#define PAGER_MAP_DEFAULT_SIZE (8 * 1024 * 1024) #if defined(__i386__) #define PAGE_SHIFT 12
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Fri Jan 6 12:53:07 UTC 2012 Modified Files: src/sys/arch/usermode/include: vmparam.h Log Message: Bump pager map default size since KVM is not that tight anymore To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/arch/usermode/include/vmparam.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: christos Date: Sat Dec 31 21:31:16 UTC 2011 Modified Files: src/sys/arch/usermode/include: thunk.h Log Message: Adjust prototypes. To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/sys/arch/usermode/include/thunk.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/thunk.h diff -u src/sys/arch/usermode/include/thunk.h:1.53 src/sys/arch/usermode/include/thunk.h:1.54 --- src/sys/arch/usermode/include/thunk.h:1.53 Fri Dec 30 15:08:00 2011 +++ src/sys/arch/usermode/include/thunk.h Sat Dec 31 16:31:15 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: thunk.h,v 1.53 2011/12/30 20:08:00 jmcneill Exp $ */ +/* $NetBSD: thunk.h,v 1.54 2011/12/31 21:31:15 christos Exp $ */ /*- * Copyright (c) 2011 Jared D. McNeill jmcne...@invisible.ca @@ -167,8 +167,8 @@ int thunk_audio_config(int, const thunk_ const thunk_audio_config_t *); int thunk_audio_pollout(int); int thunk_audio_pollin(int); -int thunk_audio_write(int, const void *, size_t); -int thunk_audio_read(int, void *, size_t); +ssize_t thunk_audio_write(int, const void *, size_t); +ssize_t thunk_audio_read(int, void *, size_t); typedef enum { /* client - server */
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: christos Date: Sat Dec 31 21:31:16 UTC 2011 Modified Files: src/sys/arch/usermode/include: thunk.h Log Message: Adjust prototypes. To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/sys/arch/usermode/include/thunk.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Mon Dec 12 15:04:51 UTC 2011 Modified Files: src/sys/arch/usermode/include: pcb.h Log Message: Fix typo To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/arch/usermode/include/pcb.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/pcb.h diff -u src/sys/arch/usermode/include/pcb.h:1.13 src/sys/arch/usermode/include/pcb.h:1.14 --- src/sys/arch/usermode/include/pcb.h:1.13 Sun Nov 27 21:38:17 2011 +++ src/sys/arch/usermode/include/pcb.h Mon Dec 12 15:04:51 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: pcb.h,v 1.13 2011/11/27 21:38:17 reinoud Exp $ */ +/* $NetBSD: pcb.h,v 1.14 2011/12/12 15:04:51 reinoud Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca @@ -42,7 +42,7 @@ struct pcb { ucontext_t pcb_ucp; /* lwp switchframe */ ucontext_t pcb_syscall_ucp; /* syscall context */ - ucontext_t pcb_userret_ucp; /* reutn to userland context */ + ucontext_t pcb_userret_ucp; /* return to userland context */ ucontext_t pcb_pagefault_ucp; /* pagefault context */ ucontext_t pcb_trapret_ucp;
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Mon Dec 12 15:04:51 UTC 2011 Modified Files: src/sys/arch/usermode/include: pcb.h Log Message: Fix typo To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/arch/usermode/include/pcb.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Tue Sep 13 11:22:07 UTC 2011 Added Files: src/sys/arch/usermode/include: psl.h Log Message: Add missing processor status flag file i forgot to add To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/sys/arch/usermode/include/psl.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Added files: Index: src/sys/arch/usermode/include/psl.h diff -u /dev/null src/sys/arch/usermode/include/psl.h:1.1 --- /dev/null Tue Sep 13 11:22:07 2011 +++ src/sys/arch/usermode/include/psl.h Tue Sep 13 11:22:07 2011 @@ -0,0 +1,80 @@ +/* $NetBSD: psl.h,v 1.1 2011/09/13 11:22:07 reinoud Exp $ */ + +/*- + * Copyright (c) 1990 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * William Jolitz. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *notice, this list of conditions and the following disclaimer in the + *documentation and/or other materials provided with the distribution. + * 3. Neither the name of the University nor the names of its contributors + *may be used to endorse or promote products derived from this software + *without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * @(#)psl.h 5.2 (Berkeley) 1/18/91 + */ + +#ifndef _USERMODE_PSL_H_ +#define _USERMODE_PSL_H_ + +#if defined(__i386__) || defined(__x86_64__) + +/* + * 386 processor status longword. + */ +#define PSL_C 0x0001 /* carry flag */ +#define PSL_PF 0x0004 /* parity flag */ +#define PSL_AF 0x0010 /* auxiliary carry flag */ +#define PSL_Z 0x0040 /* zero flag */ +#define PSL_N 0x0080 /* sign flag */ +#define PSL_T 0x0100 /* trap flag */ +#define PSL_I 0x0200 /* interrupt enable flag */ +#define PSL_D 0x0400 /* direction flag */ +#define PSL_V 0x0800 /* overflow flag */ +#define PSL_IOPL0x3000 /* i/o privilege level */ +#define PSL_NT 0x4000 /* nested task */ +#define PSL_RF 0x0001 /* resume flag */ +#define PSL_VM 0x0002 /* virtual 8086 mode */ +#define PSL_AC 0x0004 /* alignment check flag */ +#define PSL_VIF 0x0008 /* virtual interrupt enable flag */ +#define PSL_VIP 0x0010 /* virtual interrupt pending flag */ +#define PSL_ID 0x0020 /* identification flag */ + +#define PSL_MBO 0x0002 /* must be one bits */ +#define PSL_MBZ 0xffc08028 /* must be zero bits */ + +#define PSL_USERSTATIC (PSL_MBO | PSL_MBZ | PSL_I | PSL_IOPL | \ + PSL_NT | PSL_VM | PSL_VIF | PSL_VIP) + +#define PSL_USER(PSL_C | PSL_PF | PSL_AF | PSL_Z | PSL_N | \ + PSL_T | PSL_V | PSL_D) + +#define PSL_CLEARSIG(PSL_T | PSL_VM | PSL_AC | PSL_D) + + +#else +#error port me +#endif + + +#endif /* _USERMODE_PSL_H_ */
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Tue Sep 13 11:22:07 UTC 2011 Added Files: src/sys/arch/usermode/include: psl.h Log Message: Add missing processor status flag file i forgot to add To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/sys/arch/usermode/include/psl.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Thu Sep 8 10:49:41 UTC 2011 Modified Files: src/sys/arch/usermode/include: genheaders.sh Log Message: make sure USPACE is large enough to hold our struct pcb To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/usermode/include/genheaders.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/genheaders.sh diff -u src/sys/arch/usermode/include/genheaders.sh:1.1 src/sys/arch/usermode/include/genheaders.sh:1.2 --- src/sys/arch/usermode/include/genheaders.sh:1.1 Sat Sep 3 14:23:50 2011 +++ src/sys/arch/usermode/include/genheaders.sh Thu Sep 8 10:49:41 2011 @@ -51,6 +51,9 @@ elif [ $hdr = ptrace.h ]; then echo #undef __HAVE_PTRACE_MACHDEP ${hdr} echo #undef __HAVE_PROCFS_MACHDEP ${hdr} + elif [ $hdr = param.h ]; then + echo #undef USPACE ${hdr} + echo #define USPACE (PAGE_SIZE*4) ${hdr} fi echo ${hdr}
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Thu Sep 8 10:49:57 UTC 2011 Modified Files: src/sys/arch/usermode/include: asm.h bswap.h byte_swap.h disklabel.h elf_machdep.h endian.h endian_machdep.h int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h netbsd32_machdep.h param.h ptrace.h wchar_limits.h Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/param.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.5 -r1.6 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/asm.h diff -u src/sys/arch/usermode/include/asm.h:1.3 src/sys/arch/usermode/include/asm.h:1.4 --- src/sys/arch/usermode/include/asm.h:1.3 Sat Sep 3 14:23:50 2011 +++ src/sys/arch/usermode/include/asm.h Thu Sep 8 10:49:56 2011 @@ -1,7 +1,7 @@ -/* $NetBSD: asm.h,v 1.3 2011/09/03 14:23:50 jmcneill Exp $ */ +/* $NetBSD: asm.h,v 1.4 2011/09/08 10:49:56 jmcneill Exp $ */ /* - * Automatically generated by genheaders.sh on Sat Sep 3 10:13:14 EDT 2011 + * Automatically generated by genheaders.sh on Thu Sep 8 06:50:17 EDT 2011 * Do not modify directly! */ #ifndef _USERMODE_ASM_H Index: src/sys/arch/usermode/include/bswap.h diff -u src/sys/arch/usermode/include/bswap.h:1.3 src/sys/arch/usermode/include/bswap.h:1.4 --- src/sys/arch/usermode/include/bswap.h:1.3 Sat Sep 3 14:23:50 2011 +++ src/sys/arch/usermode/include/bswap.h Thu Sep 8 10:49:56 2011 @@ -1,7 +1,7 @@ -/* $NetBSD: bswap.h,v 1.3 2011/09/03 14:23:50 jmcneill Exp $ */ +/* $NetBSD: bswap.h,v 1.4 2011/09/08 10:49:56 jmcneill Exp $ */ /* - * Automatically generated by genheaders.sh on Sat Sep 3 10:13:14 EDT 2011 + * Automatically generated by genheaders.sh on Thu Sep 8 06:50:17 EDT 2011 * Do not modify directly! */ #ifndef _USERMODE_BSWAP_H Index: src/sys/arch/usermode/include/byte_swap.h diff -u src/sys/arch/usermode/include/byte_swap.h:1.3 src/sys/arch/usermode/include/byte_swap.h:1.4 --- src/sys/arch/usermode/include/byte_swap.h:1.3 Sat Sep 3 14:23:50 2011 +++ src/sys/arch/usermode/include/byte_swap.h Thu Sep 8 10:49:56 2011 @@ -1,7 +1,7 @@ -/* $NetBSD: byte_swap.h,v 1.3 2011/09/03 14:23:50 jmcneill Exp $ */ +/* $NetBSD: byte_swap.h,v 1.4 2011/09/08 10:49:56 jmcneill Exp $ */ /* - * Automatically generated by genheaders.sh on Sat Sep 3 10:13:14 EDT 2011 + * Automatically generated by genheaders.sh on Thu Sep 8 06:50:17 EDT 2011 * Do not modify directly! */ #ifndef _USERMODE_BYTE_SWAP_H Index: src/sys/arch/usermode/include/elf_machdep.h diff -u src/sys/arch/usermode/include/elf_machdep.h:1.3 src/sys/arch/usermode/include/elf_machdep.h:1.4 --- src/sys/arch/usermode/include/elf_machdep.h:1.3 Sat Sep 3 14:23:50 2011 +++ src/sys/arch/usermode/include/elf_machdep.h Thu Sep 8 10:49:56 2011 @@ -1,7 +1,7 @@ -/* $NetBSD: elf_machdep.h,v 1.3 2011/09/03 14:23:50 jmcneill Exp $ */ +/* $NetBSD: elf_machdep.h,v 1.4 2011/09/08 10:49:56 jmcneill Exp $ */ /* - * Automatically generated by genheaders.sh on Sat Sep 3 10:13:14 EDT 2011 + * Automatically generated by genheaders.sh on Thu Sep 8 06:50:17 EDT 2011 * Do not modify directly! */ #ifndef _USERMODE_ELF_MACHDEP_H Index: src/sys/arch/usermode/include/endian.h diff -u src/sys/arch/usermode/include/endian.h:1.3 src/sys/arch/usermode/include/endian.h:1.4 --- src/sys/arch/usermode/include/endian.h:1.3 Sat Sep 3 14:23:50 2011 +++ src/sys/arch/usermode/include/endian.h Thu Sep 8 10:49:56 2011 @@ -1,7 +1,7 @@ -/* $NetBSD: endian.h,v 1.3 2011/09/03 14:23:50 jmcneill Exp $ */ +/* $NetBSD: endian.h,v 1.4 2011/09/08 10:49:56 jmcneill Exp $ */ /* - * Automatically generated by genheaders.sh on Sat Sep 3 10:13:14 EDT 2011 + * Automatically generated by genheaders.sh on Thu Sep 8 06:50:17 EDT 2011 * Do not modify directly! */ #ifndef _USERMODE_ENDIAN_H Index: src/sys/arch/usermode/include/endian_machdep.h diff -u src/sys/arch/usermode/include/endian_machdep.h:1.3 src/sys/arch/usermode/include/endian_machdep.h:1.4 --- src/sys/arch/usermode/include/endian_machdep.h:1.3 Sat Sep 3 14:23:50 2011 +++ src/sys/arch/usermode/include/endian_machdep.h
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Thu Sep 8 15:11:42 UTC 2011 Added Files: src/sys/arch/usermode/include: machdep.h Log Message: Add a machdep protoype header file to coder all prototypes in machdep.c To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/sys/arch/usermode/include/machdep.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Added files: Index: src/sys/arch/usermode/include/machdep.h diff -u /dev/null src/sys/arch/usermode/include/machdep.h:1.1 --- /dev/null Thu Sep 8 15:11:42 2011 +++ src/sys/arch/usermode/include/machdep.h Thu Sep 8 15:11:42 2011 @@ -0,0 +1,31 @@ +/* $NetBSD: machdep.h,v 1.1 2011/09/08 15:11:42 reinoud Exp $ */ + +/*- + * Copyright (c) 2011 Reinoud Zandijk rein...@netbsd.org + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *notice, this list of conditions and the following disclaimer in the + *documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +int md_check_syscall_opcode(void *ptr); +void syscall(void); +
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Thu Sep 8 19:37:02 UTC 2011 Modified Files: src/sys/arch/usermode/include: pcb.h Log Message: Remove not used variable from the pcb.h To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sys/arch/usermode/include/pcb.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/pcb.h diff -u src/sys/arch/usermode/include/pcb.h:1.11 src/sys/arch/usermode/include/pcb.h:1.12 --- src/sys/arch/usermode/include/pcb.h:1.11 Thu Sep 8 12:01:22 2011 +++ src/sys/arch/usermode/include/pcb.h Thu Sep 8 19:37:01 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: pcb.h,v 1.11 2011/09/08 12:01:22 reinoud Exp $ */ +/* $NetBSD: pcb.h,v 1.12 2011/09/08 19:37:01 reinoud Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca @@ -48,7 +48,6 @@ void * pcb_onfault; /* on fault handler */ int pcb_errno; /* save/restore place */ - int pcb_oldspl; }; #endif /* !_ARCH_USERMODE_INCLUDE_PCB_H */
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Thu Sep 8 10:49:41 UTC 2011 Modified Files: src/sys/arch/usermode/include: genheaders.sh Log Message: make sure USPACE is large enough to hold our struct pcb To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/usermode/include/genheaders.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Thu Sep 8 10:49:57 UTC 2011 Modified Files: src/sys/arch/usermode/include: asm.h bswap.h byte_swap.h disklabel.h elf_machdep.h endian.h endian_machdep.h int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h netbsd32_machdep.h param.h ptrace.h wchar_limits.h Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/param.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.5 -r1.6 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Thu Sep 8 15:11:42 UTC 2011 Added Files: src/sys/arch/usermode/include: machdep.h Log Message: Add a machdep protoype header file to coder all prototypes in machdep.c To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/sys/arch/usermode/include/machdep.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Thu Sep 8 19:37:02 UTC 2011 Modified Files: src/sys/arch/usermode/include: pcb.h Log Message: Remove not used variable from the pcb.h To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sys/arch/usermode/include/pcb.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Sat Sep 3 14:23:50 UTC 2011 Modified Files: src/sys/arch/usermode/include: asm.h bswap.h byte_swap.h disklabel.h elf_machdep.h endian.h endian_machdep.h int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h netbsd32_machdep.h param.h ptrace.h wchar_limits.h Added Files: src/sys/arch/usermode/include: Makefile.headers genheaders.sh Log Message: Instead of doing #include /usr/include/machine/.., use the headers that ship with the kernel sources as #include ../../$host/include/$hdr, and auto-generate these ugly headers with a script. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/sys/arch/usermode/include/Makefile.headers \ src/sys/arch/usermode/include/genheaders.sh cvs rdiff -u -r1.2 -r1.3 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/param.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.4 -r1.5 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/asm.h diff -u src/sys/arch/usermode/include/asm.h:1.2 src/sys/arch/usermode/include/asm.h:1.3 --- src/sys/arch/usermode/include/asm.h:1.2 Wed Oct 21 16:06:59 2009 +++ src/sys/arch/usermode/include/asm.h Sat Sep 3 14:23:50 2011 @@ -1,34 +1,18 @@ -/* $NetBSD: asm.h,v 1.2 2009/10/21 16:06:59 snj Exp $ */ +/* $NetBSD: asm.h,v 1.3 2011/09/03 14:23:50 jmcneill Exp $ */ -/*- - * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - *notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - *notice, this list of conditions and the following disclaimer in the - *documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. +/* + * Automatically generated by genheaders.sh on Sat Sep 3 10:13:14 EDT 2011 + * Do not modify directly! */ +#ifndef _USERMODE_ASM_H +#define _USERMODE_ASM_H -#ifndef _ARCH_USERMODE_INCLUDE_ASM_H -#define _ARCH_USERMODE_INCLUDE_ASM_H +#if defined(__i386__) +#include ../../i386/include/asm.h +#elif defined(__x86_64__) +#include ../../amd64/include/asm.h +#else +#error port me +#endif -#include /usr/include/machine/asm.h - -#endif /* !_ARCH_USERMODE_INCLUDE_ASM_H */ +#endif Index: src/sys/arch/usermode/include/bswap.h diff -u src/sys/arch/usermode/include/bswap.h:1.2 src/sys/arch/usermode/include/bswap.h:1.3 --- src/sys/arch/usermode/include/bswap.h:1.2 Wed Oct 21 16:06:59 2009 +++ src/sys/arch/usermode/include/bswap.h Sat Sep 3 14:23:50 2011 @@ -1,34 +1,18 @@ -/* $NetBSD: bswap.h,v 1.2 2009/10/21 16:06:59 snj Exp $ */ +/* $NetBSD: bswap.h,v 1.3 2011/09/03 14:23:50 jmcneill Exp $ */ -/*- - * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - *notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Sat Sep 3 14:23:50 UTC 2011 Modified Files: src/sys/arch/usermode/include: asm.h bswap.h byte_swap.h disklabel.h elf_machdep.h endian.h endian_machdep.h int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h limits.h netbsd32_machdep.h param.h ptrace.h wchar_limits.h Added Files: src/sys/arch/usermode/include: Makefile.headers genheaders.sh Log Message: Instead of doing #include /usr/include/machine/.., use the headers that ship with the kernel sources as #include ../../$host/include/$hdr, and auto-generate these ugly headers with a script. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/sys/arch/usermode/include/Makefile.headers \ src/sys/arch/usermode/include/genheaders.sh cvs rdiff -u -r1.2 -r1.3 src/sys/arch/usermode/include/asm.h \ src/sys/arch/usermode/include/bswap.h \ src/sys/arch/usermode/include/byte_swap.h \ src/sys/arch/usermode/include/elf_machdep.h \ src/sys/arch/usermode/include/endian.h \ src/sys/arch/usermode/include/endian_machdep.h \ src/sys/arch/usermode/include/int_const.h \ src/sys/arch/usermode/include/int_fmtio.h \ src/sys/arch/usermode/include/int_limits.h \ src/sys/arch/usermode/include/int_mwgwtypes.h \ src/sys/arch/usermode/include/int_types.h \ src/sys/arch/usermode/include/limits.h \ src/sys/arch/usermode/include/netbsd32_machdep.h \ src/sys/arch/usermode/include/param.h \ src/sys/arch/usermode/include/wchar_limits.h cvs rdiff -u -r1.4 -r1.5 src/sys/arch/usermode/include/disklabel.h \ src/sys/arch/usermode/include/ptrace.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Wed Aug 31 12:56:14 UTC 2011 Modified Files: src/sys/arch/usermode/include: disklabel.h Log Message: If the host doesn't define LABELUSESMBR, set it to 1 To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/usermode/include/disklabel.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/disklabel.h diff -u src/sys/arch/usermode/include/disklabel.h:1.3 src/sys/arch/usermode/include/disklabel.h:1.4 --- src/sys/arch/usermode/include/disklabel.h:1.3 Wed Oct 21 16:06:59 2009 +++ src/sys/arch/usermode/include/disklabel.h Wed Aug 31 12:56:13 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: disklabel.h,v 1.3 2009/10/21 16:06:59 snj Exp $ */ +/* $NetBSD: disklabel.h,v 1.4 2011/08/31 12:56:13 jmcneill Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca @@ -34,4 +34,8 @@ #undef DISKPART #undef DISKMINOR +#ifndef LABELUSESMBR +#define LABELUSESMBR 1 +#endif + #endif /* !_ARCH_USERMODE_INCLUDE_DISKLABEL_H */
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Mon Aug 29 12:37:53 UTC 2011 Modified Files: src/sys/arch/usermode/include: pcb.h Log Message: Update pcb and trapframe To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/usermode/include/pcb.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/pcb.h diff -u src/sys/arch/usermode/include/pcb.h:1.5 src/sys/arch/usermode/include/pcb.h:1.6 --- src/sys/arch/usermode/include/pcb.h:1.5 Sun Aug 28 19:40:26 2011 +++ src/sys/arch/usermode/include/pcb.h Mon Aug 29 12:37:53 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: pcb.h,v 1.5 2011/08/28 19:40:26 reinoud Exp $ */ +/* $NetBSD: pcb.h,v 1.6 2011/08/29 12:37:53 reinoud Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca @@ -38,16 +38,17 @@ */ typedef struct trapframe { - int (*tf_syscall)(void *); /* address to call for syscalls */ + int (*tf_syscall)(lwp_t *, struct trapframe *); int tf_reason; /* XXX unused */ uintptr_t tf_io[8]; /* to transport info */ } trapframe_t; struct pcb { - ucontext_t pcb_ucp; + ucontext_t pcb_ucp; /* lwp switchframe */ + ucontext_t pcb_userland_ucp; /* userland switchframe */ bool pcb_needfree; - struct trapframe pcb_tf; /* XXX */ + struct trapframe pcb_tf; void * pcb_onfault; /* on fault handler */ };
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Mon Aug 29 12:37:53 UTC 2011 Modified Files: src/sys/arch/usermode/include: pcb.h Log Message: Update pcb and trapframe To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/usermode/include/pcb.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sun Aug 28 19:40:26 UTC 2011 Modified Files: src/sys/arch/usermode/include: pcb.h Log Message: Update trapframe and pcb To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/usermode/include/pcb.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/pcb.h diff -u src/sys/arch/usermode/include/pcb.h:1.4 src/sys/arch/usermode/include/pcb.h:1.5 --- src/sys/arch/usermode/include/pcb.h:1.4 Thu Aug 25 14:24:48 2011 +++ src/sys/arch/usermode/include/pcb.h Sun Aug 28 19:40:26 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: pcb.h,v 1.4 2011/08/25 14:24:48 reinoud Exp $ */ +/* $NetBSD: pcb.h,v 1.5 2011/08/28 19:40:26 reinoud Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca @@ -38,17 +38,17 @@ */ typedef struct trapframe { - int tf_reason; /* XXX unused */ - vaddr_t tf_pc; /* return address */ - uintptr_t tf_out[8]; /* to transport info */ + int (*tf_syscall)(void *); /* address to call for syscalls */ + int tf_reason; /* XXX unused */ + uintptr_t tf_io[8]; /* to transport info */ } trapframe_t; struct pcb { - ucontext_t pcb_ucp; - bool pcb_needfree; - struct trapframe *pcb_tf; /* XXX */ - void * pcb_onfault; /* on fault handler */ + ucontext_t pcb_ucp; + bool pcb_needfree; + struct trapframe pcb_tf; /* XXX */ + void * pcb_onfault; /* on fault handler */ }; #endif /* !_ARCH_USERMODE_INCLUDE_PCB_H */
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Sun Aug 28 19:40:26 UTC 2011 Modified Files: src/sys/arch/usermode/include: pcb.h Log Message: Update trapframe and pcb To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/usermode/include/pcb.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Fri Aug 26 11:01:32 UTC 2011 Modified Files: src/sys/arch/usermode/include: vmparam.h Log Message: define __USE_TOPDOWN_VM To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/arch/usermode/include/vmparam.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/vmparam.h diff -u src/sys/arch/usermode/include/vmparam.h:1.10 src/sys/arch/usermode/include/vmparam.h:1.11 --- src/sys/arch/usermode/include/vmparam.h:1.10 Fri Aug 26 09:26:14 2011 +++ src/sys/arch/usermode/include/vmparam.h Fri Aug 26 11:01:32 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: vmparam.h,v 1.10 2011/08/26 09:26:14 reinoud Exp $ */ +/* $NetBSD: vmparam.h,v 1.11 2011/08/26 11:01:32 jmcneill Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca @@ -32,6 +32,8 @@ #include machine/pmap.h #include opt_memsize.h +#define __USE_TOPDOWN_VM + extern paddr_t kmem_k_start, kmem_k_end; extern paddr_t kmem_ext_start, kmem_ext_end; extern paddr_t kmem_user_start, kmem_user_end;
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Fri Aug 26 11:01:32 UTC 2011 Modified Files: src/sys/arch/usermode/include: vmparam.h Log Message: define __USE_TOPDOWN_VM To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/arch/usermode/include/vmparam.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Thu Aug 25 11:02:58 UTC 2011 Modified Files: src/sys/arch/usermode/include: bus.h Log Message: add bus_addr_t typedef To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/usermode/include/bus.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/bus.h diff -u src/sys/arch/usermode/include/bus.h:1.3 src/sys/arch/usermode/include/bus.h:1.4 --- src/sys/arch/usermode/include/bus.h:1.3 Thu Aug 18 13:47:22 2011 +++ src/sys/arch/usermode/include/bus.h Thu Aug 25 11:02:57 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: bus.h,v 1.3 2011/08/18 13:47:22 reinoud Exp $ */ +/* $NetBSD: bus.h,v 1.4 2011/08/25 11:02:57 jmcneill Exp $ */ /*- * Copyright (c) 2011 Jared D. McNeill jmcne...@invisible.ca @@ -33,6 +33,7 @@ typedef struct bus_space_tag *bus_space_tag_t; typedef vaddr_t bus_space_handle_t; +typedef paddr_t bus_addr_t; bool bus_space_is_equal(bus_space_tag_t, bus_space_tag_t); bool bus_space_handle_is_equal(bus_space_tag_t, bus_space_handle_t,
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Thu Aug 25 14:24:48 UTC 2011 Modified Files: src/sys/arch/usermode/include: pcb.h Log Message: Add trapframe and extent pcb for NetBSD/usermode; both mere dummies since there are no traps delivered nor a process has ever been started... To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/usermode/include/pcb.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/pcb.h diff -u src/sys/arch/usermode/include/pcb.h:1.3 src/sys/arch/usermode/include/pcb.h:1.4 --- src/sys/arch/usermode/include/pcb.h:1.3 Fri Aug 12 00:57:24 2011 +++ src/sys/arch/usermode/include/pcb.h Thu Aug 25 14:24:48 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: pcb.h,v 1.3 2011/08/12 00:57:24 jmcneill Exp $ */ +/* $NetBSD: pcb.h,v 1.4 2011/08/25 14:24:48 reinoud Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca @@ -32,9 +32,23 @@ #include sys/cdefs.h #include sys/ucontext.h +/* + * Trap frame. Pushed onto the kernel stack on a trap (synchronous exception). + * XXX move to frame.h? + */ + +typedef struct trapframe { + int tf_reason; /* XXX unused */ + vaddr_t tf_pc; /* return address */ + uintptr_t tf_out[8]; /* to transport info */ +} trapframe_t; + + struct pcb { ucontext_t pcb_ucp; bool pcb_needfree; + struct trapframe *pcb_tf; /* XXX */ + void * pcb_onfault; /* on fault handler */ }; #endif /* !_ARCH_USERMODE_INCLUDE_PCB_H */
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Thu Aug 25 11:02:58 UTC 2011 Modified Files: src/sys/arch/usermode/include: bus.h Log Message: add bus_addr_t typedef To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/usermode/include/bus.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Thu Aug 25 14:24:48 UTC 2011 Modified Files: src/sys/arch/usermode/include: pcb.h Log Message: Add trapframe and extent pcb for NetBSD/usermode; both mere dummies since there are no traps delivered nor a process has ever been started... To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/usermode/include/pcb.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Wed Aug 24 10:57:48 UTC 2011 Modified Files: src/sys/arch/usermode/include: vmparam.h Log Message: kmem_data_start is no longer needed To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/usermode/include/vmparam.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/vmparam.h diff -u src/sys/arch/usermode/include/vmparam.h:1.5 src/sys/arch/usermode/include/vmparam.h:1.6 --- src/sys/arch/usermode/include/vmparam.h:1.5 Mon Aug 22 21:45:38 2011 +++ src/sys/arch/usermode/include/vmparam.h Wed Aug 24 10:57:48 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: vmparam.h,v 1.5 2011/08/22 21:45:38 jmcneill Exp $ */ +/* $NetBSD: vmparam.h,v 1.6 2011/08/24 10:57:48 reinoud Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca @@ -33,7 +33,6 @@ #include opt_memsize.h extern paddr_t kmem_k_start, kmem_k_end; -extern paddr_t kmem_data_start, kmem_data_end; extern paddr_t kmem_ext_start, kmem_ext_end; extern paddr_t kmem_user_start, kmem_user_end;
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Wed Aug 24 11:26:43 UTC 2011 Modified Files: src/sys/arch/usermode/include: vmparam.h Log Message: Fix vmparam's definitions to the new style To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/usermode/include/vmparam.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/vmparam.h diff -u src/sys/arch/usermode/include/vmparam.h:1.6 src/sys/arch/usermode/include/vmparam.h:1.7 --- src/sys/arch/usermode/include/vmparam.h:1.6 Wed Aug 24 10:57:48 2011 +++ src/sys/arch/usermode/include/vmparam.h Wed Aug 24 11:26:43 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: vmparam.h,v 1.6 2011/08/24 10:57:48 reinoud Exp $ */ +/* $NetBSD: vmparam.h,v 1.7 2011/08/24 11:26:43 reinoud Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca @@ -37,8 +37,8 @@ extern paddr_t kmem_user_start, kmem_user_end; #define VM_MIN_KERNEL_ADDRESS kmem_k_start -#define VM_MAX_KERNEL_ADDRESS kmem_ext_end -#define VM_MIN_ADDRESS kmem_k_start +#define VM_MAX_KERNEL_ADDRESS kmem_k_end +#define VM_MIN_ADDRESS kmem_ext_start #define VM_MAX_ADDRESS kmem_user_end #define VM_MAXUSER_ADDRESS kmem_user_end
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Wed Aug 24 19:59:26 UTC 2011 Modified Files: src/sys/arch/usermode/include: pmap.h Log Message: Remove two commented out and unused defines To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/usermode/include/pmap.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/pmap.h diff -u src/sys/arch/usermode/include/pmap.h:1.4 src/sys/arch/usermode/include/pmap.h:1.5 --- src/sys/arch/usermode/include/pmap.h:1.4 Mon Aug 22 15:36:23 2011 +++ src/sys/arch/usermode/include/pmap.h Wed Aug 24 19:59:26 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.h,v 1.4 2011/08/22 15:36:23 reinoud Exp $ */ +/* $NetBSD: pmap.h,v 1.5 2011/08/24 19:59:26 reinoud Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca @@ -30,7 +30,5 @@ #define _ARCH_USERMODE_INCLUDE_PMAP_H #define PMAP_GROWKERNEL 1 -//#define PMAP_MAP_POOLPAGE(x) (x) -//#define PMAP_UNMAP_POOLPAGE(x) (x) #endif /* !_ARCH_USERMODE_INCLUDE_PMAP_H */
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Wed Aug 24 10:57:48 UTC 2011 Modified Files: src/sys/arch/usermode/include: vmparam.h Log Message: kmem_data_start is no longer needed To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/usermode/include/vmparam.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Wed Aug 24 11:26:43 UTC 2011 Modified Files: src/sys/arch/usermode/include: vmparam.h Log Message: Fix vmparam's definitions to the new style To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/usermode/include/vmparam.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Wed Aug 24 19:59:26 UTC 2011 Modified Files: src/sys/arch/usermode/include: pmap.h Log Message: Remove two commented out and unused defines To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/usermode/include/pmap.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Thu Aug 18 13:47:22 UTC 2011 Modified Files: src/sys/arch/usermode/include: bus.h Log Message: Fix compilation after bus space changes. They are weak linked to the defaults. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/usermode/include/bus.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/bus.h diff -u src/sys/arch/usermode/include/bus.h:1.2 src/sys/arch/usermode/include/bus.h:1.3 --- src/sys/arch/usermode/include/bus.h:1.2 Wed Aug 10 01:32:44 2011 +++ src/sys/arch/usermode/include/bus.h Thu Aug 18 13:47:22 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: bus.h,v 1.2 2011/08/10 01:32:44 jmcneill Exp $ */ +/* $NetBSD: bus.h,v 1.3 2011/08/18 13:47:22 reinoud Exp $ */ /*- * Copyright (c) 2011 Jared D. McNeill jmcne...@invisible.ca @@ -34,4 +34,8 @@ typedef vaddr_t bus_space_handle_t; +bool bus_space_is_equal(bus_space_tag_t, bus_space_tag_t); +bool bus_space_handle_is_equal(bus_space_tag_t, bus_space_handle_t, +bus_space_handle_t); + #endif /* !_ARCH_USERMODE_INCLUDE_BUS_H */
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: reinoud Date: Thu Aug 18 13:47:22 UTC 2011 Modified Files: src/sys/arch/usermode/include: bus.h Log Message: Fix compilation after bus space changes. They are weak linked to the defaults. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/usermode/include/bus.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Sat Aug 13 14:51:58 UTC 2011 Modified Files: src/sys/arch/usermode/include: mcontext.h Log Message: make sure mcontext is large enough to store the host mcontext; fixes strange crashes seen in pool_init To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/usermode/include/mcontext.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/mcontext.h diff -u src/sys/arch/usermode/include/mcontext.h:1.2 src/sys/arch/usermode/include/mcontext.h:1.3 --- src/sys/arch/usermode/include/mcontext.h:1.2 Wed Oct 21 16:06:59 2009 +++ src/sys/arch/usermode/include/mcontext.h Sat Aug 13 14:51:58 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.2 2009/10/21 16:06:59 snj Exp $ */ +/* $NetBSD: mcontext.h,v 1.3 2011/08/13 14:51:58 jmcneill Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca @@ -29,10 +29,14 @@ #ifndef _ARCH_USERMODE_INCLUDE_MCONTEXT_H #define _ARCH_USERMODE_INCLUDE_MCONTEXT_H +#include machine/vmparam.h + typedef struct { + uint8_t __unknown[PAGE_SIZE]; } mcontext_t; typedef struct { + uint8_t __unknown[PAGE_SIZE]; } mcontext32_t; #endif /* !_ARCH_USERMODE_INCLUDE_MCONTEXT_H */
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: jmcneill Date: Sat Aug 13 14:51:58 UTC 2011 Modified Files: src/sys/arch/usermode/include: mcontext.h Log Message: make sure mcontext is large enough to store the host mcontext; fixes strange crashes seen in pool_init To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/usermode/include/mcontext.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: haad Date: Tue Jan 18 23:02:37 UTC 2011 Modified Files: src/sys/arch/usermode/include: pmap.h Log Message: Bring pmap.h to new world order. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/usermode/include/pmap.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/usermode/include/pmap.h diff -u src/sys/arch/usermode/include/pmap.h:1.2 src/sys/arch/usermode/include/pmap.h:1.3 --- src/sys/arch/usermode/include/pmap.h:1.2 Wed Oct 21 16:06:59 2009 +++ src/sys/arch/usermode/include/pmap.h Tue Jan 18 23:02:36 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.h,v 1.2 2009/10/21 16:06:59 snj Exp $ */ +/* $NetBSD: pmap.h,v 1.3 2011/01/18 23:02:36 haad Exp $ */ /*- * Copyright (c) 2007 Jared D. McNeill jmcne...@invisible.ca @@ -33,7 +33,7 @@ #define PMAP_MAP_POOLPAGE(x) (x) #define PMAP_UNMAP_POOLPAGE(x) (x) -typedef struct pmap { -} *pmap_t; +struct pmap { +}; #endif /* !_ARCH_USERMODE_INCLUDE_PMAP_H */
CVS commit: src/sys/arch/usermode/include
Module Name:src Committed By: haad Date: Tue Jan 18 23:03:29 UTC 2011 Added Files: src/sys/arch/usermode/include: bus.h Log Message: bus.h is required for build so add some empty file for now. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/sys/arch/usermode/include/bus.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Added files: