CVS commit: src/distrib/sparc64/bootfs
Module Name:src Committed By: mrg Date: Tue Mar 2 08:05:48 UTC 2010 Modified Files: src/distrib/sparc64/bootfs: Makefile Log Message: bump the size of the boot.fs, we bloated. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/distrib/sparc64/bootfs/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/sparc64/bootfs
Module Name:src Committed By: mrg Date: Tue Mar 2 08:05:48 UTC 2010 Modified Files: src/distrib/sparc64/bootfs: Makefile Log Message: bump the size of the boot.fs, we bloated. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/distrib/sparc64/bootfs/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/sparc64/bootfs/Makefile diff -u src/distrib/sparc64/bootfs/Makefile:1.6 src/distrib/sparc64/bootfs/Makefile:1.7 --- src/distrib/sparc64/bootfs/Makefile:1.6 Thu Jun 8 08:40:39 2006 +++ src/distrib/sparc64/bootfs/Makefile Tue Mar 2 08:05:48 2010 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2006/06/08 08:40:39 he Exp $ +# $NetBSD: Makefile,v 1.7 2010/03/02 08:05:48 mrg Exp $ # # boot.fs is the image for cdrom booting. # @@ -15,7 +15,7 @@ .include bsd.kernobj.mk IMAGE= boot.fs -IMAGESIZE= 5m +IMAGESIZE= 6m IMAGEENDIAN= be LISTS= ${.CURDIR}/list
CVS commit: src/sys/dev/mii
Module Name:src Committed By: martin Date: Tue Mar 2 08:30:40 UTC 2010 Modified Files: src/sys/dev/mii: mii_physubr.c Log Message: Before destroying a autonegotiation callout, make sure it is quiet To generate a diff of this commit: cvs rdiff -u -r1.67 -r1.68 src/sys/dev/mii/mii_physubr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/mii
Module Name:src Committed By: martin Date: Tue Mar 2 08:30:40 UTC 2010 Modified Files: src/sys/dev/mii: mii_physubr.c Log Message: Before destroying a autonegotiation callout, make sure it is quiet To generate a diff of this commit: cvs rdiff -u -r1.67 -r1.68 src/sys/dev/mii/mii_physubr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/mii/mii_physubr.c diff -u src/sys/dev/mii/mii_physubr.c:1.67 src/sys/dev/mii/mii_physubr.c:1.68 --- src/sys/dev/mii/mii_physubr.c:1.67 Wed Feb 24 22:37:59 2010 +++ src/sys/dev/mii/mii_physubr.c Tue Mar 2 08:30:40 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: mii_physubr.c,v 1.67 2010/02/24 22:37:59 dyoung Exp $ */ +/* $NetBSD: mii_physubr.c,v 1.68 2010/03/02 08:30:40 martin Exp $ */ /*- * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: mii_physubr.c,v 1.67 2010/02/24 22:37:59 dyoung Exp $); +__KERNEL_RCSID(0, $NetBSD: mii_physubr.c,v 1.68 2010/03/02 08:30:40 martin Exp $); #include sys/param.h #include sys/device.h @@ -554,7 +554,7 @@ /* XXX Invalidate parent's media setting? */ if (sc-mii_flags MIIF_DOINGAUTO) - callout_stop(sc-mii_nway_ch); + callout_halt(sc-mii_nway_ch, NULL); callout_destroy(sc-mii_nway_ch);
CVS commit: src/sys/rump/fs/lib/libffs
Module Name:src Committed By: pooka Date: Tue Mar 2 11:29:04 UTC 2010 Modified Files: src/sys/rump/fs/lib/libffs: Makefile Log Message: While I like redundant computing, specifying each option just once is generally enough. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/rump/fs/lib/libffs/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/sparc64/conf
Module Name:src Committed By: nakayama Date: Tue Mar 2 12:18:36 UTC 2010 Modified Files: src/sys/arch/sparc64/conf: files.sparc64 Log Message: Make kernel buildable without device ecadc. To generate a diff of this commit: cvs rdiff -u -r1.125 -r1.126 src/sys/arch/sparc64/conf/files.sparc64 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/sparc64/conf/files.sparc64 diff -u src/sys/arch/sparc64/conf/files.sparc64:1.125 src/sys/arch/sparc64/conf/files.sparc64:1.126 --- src/sys/arch/sparc64/conf/files.sparc64:1.125 Sun Feb 28 11:49:44 2010 +++ src/sys/arch/sparc64/conf/files.sparc64 Tue Mar 2 12:18:35 2010 @@ -1,4 +1,4 @@ -# $NetBSD: files.sparc64,v 1.125 2010/02/28 11:49:44 martin Exp $ +# $NetBSD: files.sparc64,v 1.126 2010/03/02 12:18:35 nakayama Exp $ # @(#)files.sparc64 8.1 (Berkeley) 7/19/93 # sparc64-specific configuration info @@ -74,11 +74,11 @@ device pcfiic: sysmon_envsys, pcf8584, i2cbus attach pcfiic at ebus -file arch/sparc64/dev/pcfiic_ebus.c pcfiic +file arch/sparc64/dev/pcfiic_ebus.c pcfiic device ecadc attach ecadc at iic -file arch/sparc64/dev/pcf8591_envctrl.c +file arch/sparc64/dev/pcf8591_envctrl.c ecadc device lom: sysmon_envsys, sysmon_wdog attach lom at ebus
CVS commit: src/sys/arch/sparc64/conf
Module Name:src Committed By: nakayama Date: Tue Mar 2 12:18:36 UTC 2010 Modified Files: src/sys/arch/sparc64/conf: files.sparc64 Log Message: Make kernel buildable without device ecadc. To generate a diff of this commit: cvs rdiff -u -r1.125 -r1.126 src/sys/arch/sparc64/conf/files.sparc64 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys
Module Name:src Committed By: uebayasi Date: Tue Mar 2 13:27:27 UTC 2010 Modified Files: src/sys/conf: files Added Files: src/sys/netisdn: files.i4b Log Message: Define i4b files in netisdn/files.i4b. To generate a diff of this commit: cvs rdiff -u -r1.978 -r1.979 src/sys/conf/files cvs rdiff -u -r0 -r1.1 src/sys/netisdn/files.i4b Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/conf/files diff -u src/sys/conf/files:1.978 src/sys/conf/files:1.979 --- src/sys/conf/files:1.978 Mon Mar 1 21:10:14 2010 +++ src/sys/conf/files Tue Mar 2 13:27:27 2010 @@ -1,4 +1,4 @@ -# $NetBSD: files,v 1.978 2010/03/01 21:10:14 darran Exp $ +# $NetBSD: files,v 1.979 2010/03/02 13:27:27 uebayasi Exp $ # @(#)files.newconf 7.5 (Berkeley) 5/10/93 version 20090313 @@ -1574,6 +1574,7 @@ file miscfs/specfs/spec_vnops.c file miscfs/syncfs/sync_subr.c file miscfs/syncfs/sync_vnops.c + file net/bpf.c bpfilter file net/bpf_filter.c bpf_filter file net/bpf_stub.c @@ -1632,39 +1633,7 @@ file netinet6/ip6_etherip.c etherip inet6 file netinet6/in6_gif.c gif inet6 -file netisdn/i4b_ctl.c isdnctl needs-flag -file netisdn/i4b_isppp.c ippp needs-count -file netisdn/i4b_ipr.c irip needs-count -file netisdn/i4b_rbch.c isdnbchan needs-count -file netisdn/i4b_tel.c isdntel needs-count -file netisdn/i4b_trace.c isdntrc needs-count - -file netisdn/i4b_mbuf.c passive_isdn -file netisdn/i4b_l2.c passive_isdn -file netisdn/i4b_l2fsm.c passive_isdn -file netisdn/i4b_uframe.c passive_isdn -file netisdn/i4b_tei.c passive_isdn -file netisdn/i4b_sframe.c passive_isdn -file netisdn/i4b_iframe.c passive_isdn -file netisdn/i4b_l2timer.c passive_isdn -file netisdn/i4b_util.c passive_isdn -file netisdn/i4b_lme.c passive_isdn -# Q.931 handler -file netisdn/i4b_q931.c passive_isdn -file netisdn/i4b_q932fac.c passive_isdn -file netisdn/i4b_l3fsm.c passive_isdn -file netisdn/i4b_l3timer.c passive_isdn -file netisdn/i4b_l2if.c passive_isdn -file netisdn/i4b_l4if.c passive_isdn -# isdn device driver, interface to isdnd -file netisdn/i4b_i4bdrv.c isdn needs-flag -file netisdn/i4b_l4.c isdndev needs-flag -file netisdn/i4b_l4mgmt.c isdndev needs-flag -file netisdn/i4b_l4timer.c isdndev needs-flag -# capi -file netisdn/i4b_capi_l4if.c isdncapi -file netisdn/i4b_capi_llif.c isdncapi -file netisdn/i4b_capi_msgs.c isdncapi +include netisdn/files.i4b # Game adapter (joystick) device joy Added files: Index: src/sys/netisdn/files.i4b diff -u /dev/null src/sys/netisdn/files.i4b:1.1 --- /dev/null Tue Mar 2 13:27:27 2010 +++ src/sys/netisdn/files.i4b Tue Mar 2 13:27:27 2010 @@ -0,0 +1,35 @@ +# $NetBSD: files.i4b,v 1.1 2010/03/02 13:27:27 uebayasi Exp $ + +file netisdn/i4b_ctl.c isdnctl needs-flag +file netisdn/i4b_isppp.c ippp needs-count +file netisdn/i4b_ipr.c irip needs-count +file netisdn/i4b_rbch.c isdnbchan needs-count +file netisdn/i4b_tel.c isdntel needs-count +file netisdn/i4b_trace.c isdntrc needs-count + +file netisdn/i4b_mbuf.c passive_isdn +file netisdn/i4b_l2.c passive_isdn +file netisdn/i4b_l2fsm.c passive_isdn +file netisdn/i4b_uframe.c passive_isdn +file netisdn/i4b_tei.c passive_isdn +file netisdn/i4b_sframe.c passive_isdn +file netisdn/i4b_iframe.c passive_isdn +file netisdn/i4b_l2timer.c passive_isdn +file netisdn/i4b_util.c passive_isdn +file netisdn/i4b_lme.c passive_isdn +# Q.931 handler +file netisdn/i4b_q931.c passive_isdn +file netisdn/i4b_q932fac.c passive_isdn +file netisdn/i4b_l3fsm.c passive_isdn +file netisdn/i4b_l3timer.c passive_isdn +file netisdn/i4b_l2if.c passive_isdn +file netisdn/i4b_l4if.c passive_isdn +# isdn device driver, interface to isdnd +file netisdn/i4b_i4bdrv.c isdn needs-flag +file netisdn/i4b_l4.c isdndev needs-flag +file netisdn/i4b_l4mgmt.c isdndev needs-flag +file netisdn/i4b_l4timer.c isdndev needs-flag +# capi +file netisdn/i4b_capi_l4if.c isdncapi +file netisdn/i4b_capi_llif.c isdncapi +file netisdn/i4b_capi_msgs.c isdncapi
CVS commit: src/sys
Module Name:src Committed By: uebayasi Date: Tue Mar 2 13:27:27 UTC 2010 Modified Files: src/sys/conf: files Added Files: src/sys/netisdn: files.i4b Log Message: Define i4b files in netisdn/files.i4b. To generate a diff of this commit: cvs rdiff -u -r1.978 -r1.979 src/sys/conf/files cvs rdiff -u -r0 -r1.1 src/sys/netisdn/files.i4b Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/lib/libterminfo
Module Name:src Committed By: roy Date: Tue Mar 2 14:11:11 UTC 2010 Modified Files: src/lib/libterminfo: compile.c term_private.h termcap.c Log Message: Use _ti_get_token instead of strsep when parsing termcap entries. This allows us to handle \E\ as a valid sequence. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/lib/libterminfo/compile.c cvs rdiff -u -r1.6 -r1.7 src/lib/libterminfo/term_private.h cvs rdiff -u -r1.4 -r1.5 src/lib/libterminfo/termcap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libterminfo/compile.c diff -u src/lib/libterminfo/compile.c:1.3 src/lib/libterminfo/compile.c:1.4 --- src/lib/libterminfo/compile.c:1.3 Mon Mar 1 01:59:48 2010 +++ src/lib/libterminfo/compile.c Tue Mar 2 14:11:11 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: compile.c,v 1.3 2010/03/01 01:59:48 dholland Exp $ */ +/* $NetBSD: compile.c,v 1.4 2010/03/02 14:11:11 roy Exp $ */ /* * Copyright (c) 2009, 2010 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ #endif #include sys/cdefs.h -__RCSID($NetBSD: compile.c,v 1.3 2010/03/01 01:59:48 dholland Exp $); +__RCSID($NetBSD: compile.c,v 1.4 2010/03/02 14:11:11 roy Exp $); #if !HAVE_NBTOOL_CONFIG_H || HAVE_SYS_ENDIAN_H #include sys/endian.h @@ -413,11 +413,10 @@ return 0; } -static char * -get_token(char **cap) +char * +_ti_get_token(char **cap, char sep) { - char *token; - int esc; + char esc, *token; while (isspace((unsigned char)**cap)) (*cap)++; @@ -425,16 +424,21 @@ return NULL; /* We can't use stresep(3) as ^ we need two escape chars */ - esc = 0; + esc = '\0'; for (token = *cap; - **cap != '\0' (esc == 1 || **cap != ','); + **cap != '\0' (esc != '\0' || **cap != sep); (*cap)++) { - if (esc == 0) { + if (esc == '\0') { if (**cap == '\\' || **cap == '^') -esc = 1; - } else - esc = 0; +esc = **cap; + } else { + /* termcap /E/ is valid */ + if (sep == ':' esc == '\\' **cap == 'E') +esc = 'x'; + else +esc = '\0'; + } } if (**cap != '\0') @@ -456,7 +460,7 @@ _DIAGASSERT(cap != NULL); - name = get_token(cap); + name = _ti_get_token(cap, ','); if (name == NULL) { dowarn(flags, no seperator found: %s, cap); return NULL; @@ -489,9 +493,9 @@ goto error; } - for (token = get_token(cap); + for (token = _ti_get_token(cap, ','); token != NULL *token != '\0'; - token = get_token(cap)) + token = _ti_get_token(cap, ',')) { /* Skip commented caps */ if (!(flags TIC_COMMENT) token[0] == '.') Index: src/lib/libterminfo/term_private.h diff -u src/lib/libterminfo/term_private.h:1.6 src/lib/libterminfo/term_private.h:1.7 --- src/lib/libterminfo/term_private.h:1.6 Mon Feb 22 23:05:39 2010 +++ src/lib/libterminfo/term_private.h Tue Mar 2 14:11:11 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: term_private.h,v 1.6 2010/02/22 23:05:39 roy Exp $ */ +/* $NetBSD: term_private.h,v 1.7 2010/03/02 14:11:11 roy Exp $ */ /* * Copyright (c) 2009, 2010 The NetBSD Foundation, Inc. @@ -143,6 +143,7 @@ } TIC; char *_ti_grow_tbuf(TBUF *, size_t); +char *_ti_get_token(char **, char); char *_ti_find_cap(TBUF *, char, short); char *_ti_find_extra(TBUF *, const char *); size_t _ti_store_extra(TIC *, int, char *, char, char, short, Index: src/lib/libterminfo/termcap.c diff -u src/lib/libterminfo/termcap.c:1.4 src/lib/libterminfo/termcap.c:1.5 --- src/lib/libterminfo/termcap.c:1.4 Mon Mar 1 11:02:31 2010 +++ src/lib/libterminfo/termcap.c Tue Mar 2 14:11:11 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: termcap.c,v 1.4 2010/03/01 11:02:31 roy Exp $ */ +/* $NetBSD: termcap.c,v 1.5 2010/03/02 14:11:11 roy Exp $ */ /* * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -28,7 +28,7 @@ */ #include sys/cdefs.h -__RCSID($NetBSD: termcap.c,v 1.4 2010/03/01 11:02:31 roy Exp $); +__RCSID($NetBSD: termcap.c,v 1.5 2010/03/02 14:11:11 roy Exp $); #include assert.h #include ctype.h @@ -277,6 +277,16 @@ } } + /* \E\ is valid termcap. + * We need to escape the final \ for terminfo. */ + if (l 2 info[l - 1] == '\\' + (info[l - 2] != '\\' info[l - 2] != '^')) + { + if (l + 1 len) + goto elen; + *ip++ = '\\'; + } + *ip = '\0'; return info; @@ -302,10 +312,10 @@ lp = 0; tok[2] = '\0'; - while ((token = strsep(cap, :)) != NULL) { - /* Trim whitespace */ - while (isspace((unsigned char)*token)) - token++; + for (token = _ti_get_token(cap, ':'); + token != NULL; + token = _ti_get_token(cap, ':')) + { if (token[0] == '\0') continue; name = token;
CVS commit: src/lib/libterminfo
Module Name:src Committed By: roy Date: Tue Mar 2 14:11:11 UTC 2010 Modified Files: src/lib/libterminfo: compile.c term_private.h termcap.c Log Message: Use _ti_get_token instead of strsep when parsing termcap entries. This allows us to handle \E\ as a valid sequence. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/lib/libterminfo/compile.c cvs rdiff -u -r1.6 -r1.7 src/lib/libterminfo/term_private.h cvs rdiff -u -r1.4 -r1.5 src/lib/libterminfo/termcap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/kern
Module Name:src Committed By: pooka Date: Tue Mar 2 14:22:44 UTC 2010 Modified Files: src/sys/kern: vfs_bio.c Log Message: fs_ffs.h is no longer required (since the death of bufops / softdep) To generate a diff of this commit: cvs rdiff -u -r1.222 -r1.223 src/sys/kern/vfs_bio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/kern
Module Name:src Committed By: pooka Date: Tue Mar 2 14:22:44 UTC 2010 Modified Files: src/sys/kern: vfs_bio.c Log Message: fs_ffs.h is no longer required (since the death of bufops / softdep) To generate a diff of this commit: cvs rdiff -u -r1.222 -r1.223 src/sys/kern/vfs_bio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/kern/vfs_bio.c diff -u src/sys/kern/vfs_bio.c:1.222 src/sys/kern/vfs_bio.c:1.223 --- src/sys/kern/vfs_bio.c:1.222 Tue Nov 17 14:38:31 2009 +++ src/sys/kern/vfs_bio.c Tue Mar 2 14:22:44 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_bio.c,v 1.222 2009/11/17 14:38:31 pooka Exp $ */ +/* $NetBSD: vfs_bio.c,v 1.223 2010/03/02 14:22:44 pooka Exp $ */ /*- * Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc. @@ -123,9 +123,8 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: vfs_bio.c,v 1.222 2009/11/17 14:38:31 pooka Exp $); +__KERNEL_RCSID(0, $NetBSD: vfs_bio.c,v 1.223 2010/03/02 14:22:44 pooka Exp $); -#include fs_ffs.h #include opt_bufcache.h #include sys/param.h
CVS commit: src/sys/compat/common
Module Name:src Committed By: pooka Date: Tue Mar 2 14:23:40 UTC 2010 Modified Files: src/sys/compat/common: vfs_syscalls_43.c Log Message: fs_union.h is not used here anymore ... diudau To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/sys/compat/common/vfs_syscalls_43.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/common/vfs_syscalls_43.c diff -u src/sys/compat/common/vfs_syscalls_43.c:1.51 src/sys/compat/common/vfs_syscalls_43.c:1.52 --- src/sys/compat/common/vfs_syscalls_43.c:1.51 Fri Jan 8 11:35:07 2010 +++ src/sys/compat/common/vfs_syscalls_43.c Tue Mar 2 14:23:39 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_syscalls_43.c,v 1.51 2010/01/08 11:35:07 pooka Exp $ */ +/* $NetBSD: vfs_syscalls_43.c,v 1.52 2010/03/02 14:23:39 pooka Exp $ */ /* * Copyright (c) 1989, 1993 @@ -37,11 +37,10 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: vfs_syscalls_43.c,v 1.51 2010/01/08 11:35:07 pooka Exp $); +__KERNEL_RCSID(0, $NetBSD: vfs_syscalls_43.c,v 1.52 2010/03/02 14:23:39 pooka Exp $); #if defined(_KERNEL_OPT) #include opt_compat_netbsd.h -#include fs_union.h #endif #include sys/param.h
CVS commit: src/sys/compat/common
Module Name:src Committed By: pooka Date: Tue Mar 2 14:23:40 UTC 2010 Modified Files: src/sys/compat/common: vfs_syscalls_43.c Log Message: fs_union.h is not used here anymore ... diudau To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/sys/compat/common/vfs_syscalls_43.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/ufs/ufs
Module Name:src Committed By: pooka Date: Tue Mar 2 14:45:56 UTC 2010 Modified Files: src/sys/ufs/ufs: ufs_wapbl.c Log Message: scortch ufs_vnops.c cargo cult headers To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/ufs/ufs/ufs_wapbl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/ufs/ufs/ufs_wapbl.c diff -u src/sys/ufs/ufs/ufs_wapbl.c:1.7 src/sys/ufs/ufs/ufs_wapbl.c:1.8 --- src/sys/ufs/ufs/ufs_wapbl.c:1.7 Mon Apr 6 14:09:57 2009 +++ src/sys/ufs/ufs/ufs_wapbl.c Tue Mar 2 14:45:55 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: ufs_wapbl.c,v 1.7 2009/04/06 14:09:57 pooka Exp $ */ +/* $NetBSD: ufs_wapbl.c,v 1.8 2010/03/02 14:45:55 pooka Exp $ */ /*- * Copyright (c) 2003,2006,2008 The NetBSD Foundation, Inc. @@ -66,12 +66,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: ufs_wapbl.c,v 1.7 2009/04/06 14:09:57 pooka Exp $); - -#if defined(_KERNEL_OPT) -#include opt_quota.h -#include fs_lfs.h -#endif +__KERNEL_RCSID(0, $NetBSD: ufs_wapbl.c,v 1.8 2010/03/02 14:45:55 pooka Exp $); #include sys/param.h #include sys/systm.h
CVS commit: src/sys/ufs/ufs
Module Name:src Committed By: pooka Date: Tue Mar 2 14:45:56 UTC 2010 Modified Files: src/sys/ufs/ufs: ufs_wapbl.c Log Message: scortch ufs_vnops.c cargo cult headers To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/ufs/ufs/ufs_wapbl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/mac68k/mac68k
Module Name:src Committed By: tsutsui Date: Tue Mar 2 15:01:04 UTC 2010 Modified Files: src/sys/arch/mac68k/mac68k: pmap_bootstrap.c Log Message: A variable protostfree is only declared for M68040 or M68060 kernels, so it should also be wrapped with #ifdef M68040/#endif in MD sources. Fixes build error on SMALLRAM kernel, reported by ha...@. To generate a diff of this commit: cvs rdiff -u -r1.87 -r1.88 src/sys/arch/mac68k/mac68k/pmap_bootstrap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: pooka Date: Tue Mar 2 15:46:19 UTC 2010 Modified Files: src/sys/compat/linux/arch/amd64: linux_commons.c src/sys/compat/linux/arch/arm: linux_commons.c src/sys/compat/linux/arch/i386: linux_commons.c Log Message: Nuke fs_lfs.h included for unknown reasons (if there was a reason other than accident, i hereby declare that reason invalid) To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/compat/linux/arch/amd64/linux_commons.c cvs rdiff -u -r1.8 -r1.9 src/sys/compat/linux/arch/arm/linux_commons.c cvs rdiff -u -r1.13 -r1.14 src/sys/compat/linux/arch/i386/linux_commons.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/linux_commons.c diff -u src/sys/compat/linux/arch/amd64/linux_commons.c:1.9 src/sys/compat/linux/arch/amd64/linux_commons.c:1.10 --- src/sys/compat/linux/arch/amd64/linux_commons.c:1.9 Wed Nov 19 18:36:03 2008 +++ src/sys/compat/linux/arch/amd64/linux_commons.c Tue Mar 2 15:46:19 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_commons.c,v 1.9 2008/11/19 18:36:03 ad Exp $ */ +/* $NetBSD: linux_commons.c,v 1.10 2010/03/02 15:46:19 pooka Exp $ */ /* * This file includes C files from the common @@ -13,11 +13,10 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(1, $NetBSD: linux_commons.c,v 1.9 2008/11/19 18:36:03 ad Exp $); +__KERNEL_RCSID(1, $NetBSD: linux_commons.c,v 1.10 2010/03/02 15:46:19 pooka Exp $); #if defined(_KERNEL_OPT) #include opt_sysv.h -#include fs_lfs.h #endif #include sys/param.h Index: src/sys/compat/linux/arch/arm/linux_commons.c diff -u src/sys/compat/linux/arch/arm/linux_commons.c:1.8 src/sys/compat/linux/arch/arm/linux_commons.c:1.9 --- src/sys/compat/linux/arch/arm/linux_commons.c:1.8 Wed Nov 19 18:36:03 2008 +++ src/sys/compat/linux/arch/arm/linux_commons.c Tue Mar 2 15:46:19 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_commons.c,v 1.8 2008/11/19 18:36:03 ad Exp $ */ +/* $NetBSD: linux_commons.c,v 1.9 2010/03/02 15:46:19 pooka Exp $ */ /* * This file includes C files from the common @@ -13,11 +13,10 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(1, $NetBSD: linux_commons.c,v 1.8 2008/11/19 18:36:03 ad Exp $); +__KERNEL_RCSID(1, $NetBSD: linux_commons.c,v 1.9 2010/03/02 15:46:19 pooka Exp $); #if defined(_KERNEL_OPT) #include opt_sysv.h -#include fs_lfs.h #endif #include sys/param.h Index: src/sys/compat/linux/arch/i386/linux_commons.c diff -u src/sys/compat/linux/arch/i386/linux_commons.c:1.13 src/sys/compat/linux/arch/i386/linux_commons.c:1.14 --- src/sys/compat/linux/arch/i386/linux_commons.c:1.13 Wed Nov 19 18:36:03 2008 +++ src/sys/compat/linux/arch/i386/linux_commons.c Tue Mar 2 15:46:19 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_commons.c,v 1.13 2008/11/19 18:36:03 ad Exp $ */ +/* $NetBSD: linux_commons.c,v 1.14 2010/03/02 15:46:19 pooka Exp $ */ /* * This file includes C files from the common @@ -13,11 +13,10 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(1, $NetBSD: linux_commons.c,v 1.13 2008/11/19 18:36:03 ad Exp $); +__KERNEL_RCSID(1, $NetBSD: linux_commons.c,v 1.14 2010/03/02 15:46:19 pooka Exp $); #if defined(_KERNEL_OPT) #include opt_sysv.h -#include fs_lfs.h #endif #include sys/param.h
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: pooka Date: Tue Mar 2 15:46:19 UTC 2010 Modified Files: src/sys/compat/linux/arch/amd64: linux_commons.c src/sys/compat/linux/arch/arm: linux_commons.c src/sys/compat/linux/arch/i386: linux_commons.c Log Message: Nuke fs_lfs.h included for unknown reasons (if there was a reason other than accident, i hereby declare that reason invalid) To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/compat/linux/arch/amd64/linux_commons.c cvs rdiff -u -r1.8 -r1.9 src/sys/compat/linux/arch/arm/linux_commons.c cvs rdiff -u -r1.13 -r1.14 src/sys/compat/linux/arch/i386/linux_commons.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat
Module Name:src Committed By: pooka Date: Tue Mar 2 16:00:03 UTC 2010 Modified Files: src/sys/compat/aoutm68k: syscalls.master src/sys/compat/darwin: syscalls.master src/sys/compat/freebsd: syscalls.master src/sys/compat/netbsd32: syscalls.master Log Message: Remove lfs syscall support from compat. I can't really imagine anyone wanting to run lfs megamaid as a e.g. FreeBSD binary. Besides, the real action has been in fcntl() for 5 years now. The only place where the compat syscalls might have made the tiniest bit of sense was netbsd32, but they were unimplemented there. To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/sys/compat/aoutm68k/syscalls.master cvs rdiff -u -r1.38 -r1.39 src/sys/compat/darwin/syscalls.master cvs rdiff -u -r1.62 -r1.63 src/sys/compat/freebsd/syscalls.master cvs rdiff -u -r1.81 -r1.82 src/sys/compat/netbsd32/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat
Module Name:src Committed By: pooka Date: Tue Mar 2 16:00:03 UTC 2010 Modified Files: src/sys/compat/aoutm68k: syscalls.master src/sys/compat/darwin: syscalls.master src/sys/compat/freebsd: syscalls.master src/sys/compat/netbsd32: syscalls.master Log Message: Remove lfs syscall support from compat. I can't really imagine anyone wanting to run lfs megamaid as a e.g. FreeBSD binary. Besides, the real action has been in fcntl() for 5 years now. The only place where the compat syscalls might have made the tiniest bit of sense was netbsd32, but they were unimplemented there. To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/sys/compat/aoutm68k/syscalls.master cvs rdiff -u -r1.38 -r1.39 src/sys/compat/darwin/syscalls.master cvs rdiff -u -r1.62 -r1.63 src/sys/compat/freebsd/syscalls.master cvs rdiff -u -r1.81 -r1.82 src/sys/compat/netbsd32/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/aoutm68k/syscalls.master diff -u src/sys/compat/aoutm68k/syscalls.master:1.33 src/sys/compat/aoutm68k/syscalls.master:1.34 --- src/sys/compat/aoutm68k/syscalls.master:1.33 Tue Jan 13 22:27:43 2009 +++ src/sys/compat/aoutm68k/syscalls.master Tue Mar 2 16:00:03 2010 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.33 2009/01/13 22:27:43 pooka Exp $ + $NetBSD: syscalls.master,v 1.34 2010/03/02 16:00:03 pooka Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -508,20 +508,10 @@ 181 NOARGS { int|sys||setgid(gid_t gid); } 182 NOARGS { int|sys||setegid(gid_t egid); } 183 NOARGS { int|sys||seteuid(uid_t euid); } -#if defined(LFS) || !defined(_KERNEL) -184 NOARGS { int|sys||lfs_bmapv(fsid_t *fsidp, \ - struct block_info *blkiov, int blkcnt); } -185 NOARGS { int|sys||lfs_markv(fsid_t *fsidp, \ - struct block_info *blkiov, int blkcnt); } -186 NOARGS { int|sys||lfs_segclean(fsid_t *fsidp, u_long segment); } -187 NOARGS { int|compat_50_sys||lfs_segwait(fsid_t *fsidp, \ - struct timeval50 *tv); } -#else 184 EXCL lfs_bmapv 185 EXCL lfs_markv 186 EXCL lfs_segclean 187 EXCL lfs_segwait -#endif #if defined(COMPAT_12) || !defined(_KERNEL) 188 STD { int|aoutm68k_compat_12_sys||stat(const char *path, \ struct aoutm68k_stat12 *ub); } stat12 Index: src/sys/compat/darwin/syscalls.master diff -u src/sys/compat/darwin/syscalls.master:1.38 src/sys/compat/darwin/syscalls.master:1.39 --- src/sys/compat/darwin/syscalls.master:1.38 Tue Jan 13 22:27:43 2009 +++ src/sys/compat/darwin/syscalls.master Tue Mar 2 16:00:03 2010 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.38 2009/01/13 22:27:43 pooka Exp $ + $NetBSD: syscalls.master,v 1.39 2010/03/02 16:00:03 pooka Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -41,7 +41,6 @@ #include opt_sysv.h #include opt_compat_43.h -#include fs_lfs.h #include fs_nfs.h #include sys/param.h Index: src/sys/compat/freebsd/syscalls.master diff -u src/sys/compat/freebsd/syscalls.master:1.62 src/sys/compat/freebsd/syscalls.master:1.63 --- src/sys/compat/freebsd/syscalls.master:1.62 Tue Jan 13 22:27:43 2009 +++ src/sys/compat/freebsd/syscalls.master Tue Mar 2 16:00:03 2010 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.62 2009/01/13 22:27:43 pooka Exp $ + $NetBSD: syscalls.master,v 1.63 2010/03/02 16:00:03 pooka Exp $ ; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -37,8 +37,6 @@ #include opt_sysv.h #include opt_compat_43.h #include opt_posix.h - -#include fs_lfs.h #endif #include sys/param.h @@ -360,20 +358,10 @@ 181 NOARGS { int|sys||setgid(gid_t gid); } 182 NOARGS { int|sys||setegid(gid_t egid); } 183 NOARGS { int|sys||seteuid(uid_t euid); } -#ifdef LFS -184 NOARGS { int|sys||lfs_bmapv(fsid_t *fsidp, \ - struct block_info *blkiov, int blkcnt); } -185 NOARGS { int|sys||lfs_markv(fsid_t *fsidp, \ - struct block_info *blkiov, int blkcnt); } -186 NOARGS { int|sys||lfs_segclean(fsid_t *fsidp, u_long segment); } -187 NOARGS { int|compat_50_sys||lfs_segwait(fsid_t *fsidp, \ - struct timeval50 *tv); } -#else 184 UNIMPL 185 UNIMPL 186 UNIMPL 187 UNIMPL -#endif 188 NOARGS { int|compat_12_sys||stat(const char *path, \ struct stat12 *ub); } 189 NOARGS { int|compat_12_sys||fstat(int fd, \ Index: src/sys/compat/netbsd32/syscalls.master diff -u src/sys/compat/netbsd32/syscalls.master:1.81 src/sys/compat/netbsd32/syscalls.master:1.82 --- src/sys/compat/netbsd32/syscalls.master:1.81 Mon Dec 14 00:47:11 2009 +++ src/sys/compat/netbsd32/syscalls.master Tue Mar 2 16:00:03 2010 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.81 2009/12/14 00:47:11 matt Exp $ + $NetBSD: syscalls.master,v 1.82 2010/03/02 16:00:03 pooka Exp $ ; from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -384,21 +384,10 @@ 181 STD { int|netbsd32||setgid(gid_t gid); } 182 STD {
CVS commit: src/sys/compat/netbsd32
Module Name:src Committed By: pooka Date: Tue Mar 2 16:02:43 UTC 2010 Modified Files: src/sys/compat/netbsd32: syscalls.master Log Message: -fs_lfs.h To generate a diff of this commit: cvs rdiff -u -r1.82 -r1.83 src/sys/compat/netbsd32/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/netbsd32/syscalls.master diff -u src/sys/compat/netbsd32/syscalls.master:1.82 src/sys/compat/netbsd32/syscalls.master:1.83 --- src/sys/compat/netbsd32/syscalls.master:1.82 Tue Mar 2 16:00:03 2010 +++ src/sys/compat/netbsd32/syscalls.master Tue Mar 2 16:02:43 2010 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.82 2010/03/02 16:00:03 pooka Exp $ + $NetBSD: syscalls.master,v 1.83 2010/03/02 16:02:43 pooka Exp $ ; from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -43,7 +43,6 @@ #include opt_compat_43.h #include opt_posix.h -#include fs_lfs.h #include fs_nfs.h #endif
CVS commit: src/sys/compat/netbsd32
Module Name:src Committed By: pooka Date: Tue Mar 2 16:02:43 UTC 2010 Modified Files: src/sys/compat/netbsd32: syscalls.master Log Message: -fs_lfs.h To generate a diff of this commit: cvs rdiff -u -r1.82 -r1.83 src/sys/compat/netbsd32/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat/netbsd32
Module Name:src Committed By: pooka Date: Tue Mar 2 16:03:59 UTC 2010 Modified Files: src/sys/compat/netbsd32: netbsd32_netbsd.c Log Message: remove unused lfs compat stubs To generate a diff of this commit: cvs rdiff -u -r1.163 -r1.164 src/sys/compat/netbsd32/netbsd32_netbsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/netbsd32/netbsd32_netbsd.c diff -u src/sys/compat/netbsd32/netbsd32_netbsd.c:1.163 src/sys/compat/netbsd32/netbsd32_netbsd.c:1.164 --- src/sys/compat/netbsd32/netbsd32_netbsd.c:1.163 Mon Dec 14 00:47:11 2009 +++ src/sys/compat/netbsd32/netbsd32_netbsd.c Tue Mar 2 16:03:59 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: netbsd32_netbsd.c,v 1.163 2009/12/14 00:47:11 matt Exp $ */ +/* $NetBSD: netbsd32_netbsd.c,v 1.164 2010/03/02 16:03:59 pooka Exp $ */ /* * Copyright (c) 1998, 2001, 2008 Matthew R. Green @@ -27,7 +27,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: netbsd32_netbsd.c,v 1.163 2009/12/14 00:47:11 matt Exp $); +__KERNEL_RCSID(0, $NetBSD: netbsd32_netbsd.c,v 1.164 2010/03/02 16:03:59 pooka Exp $); #if defined(_KERNEL_OPT) #include opt_ddb.h @@ -1352,36 +1352,6 @@ return (sys_seteuid(l, ua, retval)); } -#ifdef LFS -int -netbsd32_lfs_bmapv(struct lwp *l, const struct netbsd32_lfs_bmapv_args *v, register_t *retval) -{ - - return (ENOSYS); /* XXX */ -} - -int -netbsd32_lfs_markv(struct lwp *l, const struct netbsd32_lfs_markv_args *v, register_t *retval) -{ - - return (ENOSYS); /* XXX */ -} - -int -netbsd32_lfs_segclean(struct lwp *l, const struct netbsd32_lfs_segclean_args *v, register_t *retval) -{ - - return (ENOSYS); /* XXX */ -} - -int -netbsd32___lfs_segwait50(struct lwp *l, const struct netbsd32___lfs_segwait50_args *v, register_t *retval) -{ - - return (ENOSYS); /* XXX */ -} -#endif - int netbsd32_pathconf(struct lwp *l, const struct netbsd32_pathconf_args *uap, register_t *retval) {
CVS commit: src/sys/compat/netbsd32
Module Name:src Committed By: pooka Date: Tue Mar 2 16:03:59 UTC 2010 Modified Files: src/sys/compat/netbsd32: netbsd32_netbsd.c Log Message: remove unused lfs compat stubs To generate a diff of this commit: cvs rdiff -u -r1.163 -r1.164 src/sys/compat/netbsd32/netbsd32_netbsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat
Module Name:src Committed By: pooka Date: Tue Mar 2 16:08:15 UTC 2010 Modified Files: src/sys/compat/aoutm68k: syscalls.master src/sys/compat/netbsd32: netbsd32_netbsd.c Log Message: -fs_lfs.h To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sys/compat/aoutm68k/syscalls.master cvs rdiff -u -r1.164 -r1.165 src/sys/compat/netbsd32/netbsd32_netbsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat
Module Name:src Committed By: pooka Date: Tue Mar 2 16:08:15 UTC 2010 Modified Files: src/sys/compat/aoutm68k: syscalls.master src/sys/compat/netbsd32: netbsd32_netbsd.c Log Message: -fs_lfs.h To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sys/compat/aoutm68k/syscalls.master cvs rdiff -u -r1.164 -r1.165 src/sys/compat/netbsd32/netbsd32_netbsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/aoutm68k/syscalls.master diff -u src/sys/compat/aoutm68k/syscalls.master:1.34 src/sys/compat/aoutm68k/syscalls.master:1.35 --- src/sys/compat/aoutm68k/syscalls.master:1.34 Tue Mar 2 16:00:03 2010 +++ src/sys/compat/aoutm68k/syscalls.master Tue Mar 2 16:08:15 2010 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.34 2010/03/02 16:00:03 pooka Exp $ + $NetBSD: syscalls.master,v 1.35 2010/03/02 16:08:15 pooka Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -42,7 +42,6 @@ #include opt_sysv.h #include opt_compat_43.h -#include fs_lfs.h #include fs_nfs.h #endif Index: src/sys/compat/netbsd32/netbsd32_netbsd.c diff -u src/sys/compat/netbsd32/netbsd32_netbsd.c:1.164 src/sys/compat/netbsd32/netbsd32_netbsd.c:1.165 --- src/sys/compat/netbsd32/netbsd32_netbsd.c:1.164 Tue Mar 2 16:03:59 2010 +++ src/sys/compat/netbsd32/netbsd32_netbsd.c Tue Mar 2 16:08:15 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: netbsd32_netbsd.c,v 1.164 2010/03/02 16:03:59 pooka Exp $ */ +/* $NetBSD: netbsd32_netbsd.c,v 1.165 2010/03/02 16:08:15 pooka Exp $ */ /* * Copyright (c) 1998, 2001, 2008 Matthew R. Green @@ -27,7 +27,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: netbsd32_netbsd.c,v 1.164 2010/03/02 16:03:59 pooka Exp $); +__KERNEL_RCSID(0, $NetBSD: netbsd32_netbsd.c,v 1.165 2010/03/02 16:08:15 pooka Exp $); #if defined(_KERNEL_OPT) #include opt_ddb.h @@ -37,8 +37,6 @@ #include opt_sysv.h #include opt_syscall_debug.h #include opt_sa.h - -#include fs_lfs.h #endif /*
CVS commit: src/sys/compat
Module Name:src Committed By: pooka Date: Tue Mar 2 16:09:11 UTC 2010 Modified Files: src/sys/compat/aoutm68k: aoutm68k_syscall.h aoutm68k_syscallargs.h aoutm68k_syscalls.c aoutm68k_sysent.c src/sys/compat/darwin: darwin_syscall.h darwin_syscallargs.h darwin_syscalls.c darwin_sysent.c src/sys/compat/freebsd: freebsd_syscall.h freebsd_syscallargs.h freebsd_syscalls.c freebsd_sysent.c src/sys/compat/netbsd32: netbsd32_compat_50.c netbsd32_syscall.h netbsd32_syscallargs.h netbsd32_syscalls.c netbsd32_sysent.c Log Message: regen for conditional lfs syscall removal To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/sys/compat/aoutm68k/aoutm68k_syscall.h cvs rdiff -u -r1.37 -r1.38 src/sys/compat/aoutm68k/aoutm68k_syscallargs.h cvs rdiff -u -r1.36 -r1.37 src/sys/compat/aoutm68k/aoutm68k_syscalls.c cvs rdiff -u -r1.41 -r1.42 src/sys/compat/aoutm68k/aoutm68k_sysent.c cvs rdiff -u -r1.57 -r1.58 src/sys/compat/darwin/darwin_syscall.h \ src/sys/compat/darwin/darwin_syscallargs.h cvs rdiff -u -r1.58 -r1.59 src/sys/compat/darwin/darwin_syscalls.c \ src/sys/compat/darwin/darwin_sysent.c cvs rdiff -u -r1.74 -r1.75 src/sys/compat/freebsd/freebsd_syscall.h \ src/sys/compat/freebsd/freebsd_syscalls.c cvs rdiff -u -r1.77 -r1.78 src/sys/compat/freebsd/freebsd_syscallargs.h cvs rdiff -u -r1.76 -r1.77 src/sys/compat/freebsd/freebsd_sysent.c cvs rdiff -u -r1.9 -r1.10 src/sys/compat/netbsd32/netbsd32_compat_50.c cvs rdiff -u -r1.90 -r1.91 src/sys/compat/netbsd32/netbsd32_syscall.h \ src/sys/compat/netbsd32/netbsd32_syscallargs.h cvs rdiff -u -r1.89 -r1.90 src/sys/compat/netbsd32/netbsd32_syscalls.c \ src/sys/compat/netbsd32/netbsd32_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat
Module Name:src Committed By: pooka Date: Tue Mar 2 16:09:11 UTC 2010 Modified Files: src/sys/compat/aoutm68k: aoutm68k_syscall.h aoutm68k_syscallargs.h aoutm68k_syscalls.c aoutm68k_sysent.c src/sys/compat/darwin: darwin_syscall.h darwin_syscallargs.h darwin_syscalls.c darwin_sysent.c src/sys/compat/freebsd: freebsd_syscall.h freebsd_syscallargs.h freebsd_syscalls.c freebsd_sysent.c src/sys/compat/netbsd32: netbsd32_compat_50.c netbsd32_syscall.h netbsd32_syscallargs.h netbsd32_syscalls.c netbsd32_sysent.c Log Message: regen for conditional lfs syscall removal To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/sys/compat/aoutm68k/aoutm68k_syscall.h cvs rdiff -u -r1.37 -r1.38 src/sys/compat/aoutm68k/aoutm68k_syscallargs.h cvs rdiff -u -r1.36 -r1.37 src/sys/compat/aoutm68k/aoutm68k_syscalls.c cvs rdiff -u -r1.41 -r1.42 src/sys/compat/aoutm68k/aoutm68k_sysent.c cvs rdiff -u -r1.57 -r1.58 src/sys/compat/darwin/darwin_syscall.h \ src/sys/compat/darwin/darwin_syscallargs.h cvs rdiff -u -r1.58 -r1.59 src/sys/compat/darwin/darwin_syscalls.c \ src/sys/compat/darwin/darwin_sysent.c cvs rdiff -u -r1.74 -r1.75 src/sys/compat/freebsd/freebsd_syscall.h \ src/sys/compat/freebsd/freebsd_syscalls.c cvs rdiff -u -r1.77 -r1.78 src/sys/compat/freebsd/freebsd_syscallargs.h cvs rdiff -u -r1.76 -r1.77 src/sys/compat/freebsd/freebsd_sysent.c cvs rdiff -u -r1.9 -r1.10 src/sys/compat/netbsd32/netbsd32_compat_50.c cvs rdiff -u -r1.90 -r1.91 src/sys/compat/netbsd32/netbsd32_syscall.h \ src/sys/compat/netbsd32/netbsd32_syscallargs.h cvs rdiff -u -r1.89 -r1.90 src/sys/compat/netbsd32/netbsd32_syscalls.c \ src/sys/compat/netbsd32/netbsd32_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/aoutm68k/aoutm68k_syscall.h diff -u src/sys/compat/aoutm68k/aoutm68k_syscall.h:1.39 src/sys/compat/aoutm68k/aoutm68k_syscall.h:1.40 --- src/sys/compat/aoutm68k/aoutm68k_syscall.h:1.39 Mon Dec 14 00:58:35 2009 +++ src/sys/compat/aoutm68k/aoutm68k_syscall.h Tue Mar 2 16:09:10 2010 @@ -1,10 +1,10 @@ -/* $NetBSD: aoutm68k_syscall.h,v 1.39 2009/12/14 00:58:35 matt Exp $ */ +/* $NetBSD: aoutm68k_syscall.h,v 1.40 2010/03/02 16:09:10 pooka Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.33 2009/01/13 22:27:43 pooka Exp + * created from NetBSD: syscalls.master,v 1.35 2010/03/02 16:08:15 pooka Exp */ #ifndef _AOUTM68K_SYS_SYSCALL_H_ @@ -654,25 +654,10 @@ /* syscall: seteuid ret: int args: uid_t */ #define AOUTM68K_SYS_seteuid 183 -#if defined(LFS) || !defined(_KERNEL) -/* syscall: lfs_bmapv ret: int args: fsid_t * struct block_info * int */ -#define AOUTM68K_SYS_lfs_bmapv 184 - -/* syscall: lfs_markv ret: int args: fsid_t * struct block_info * int */ -#define AOUTM68K_SYS_lfs_markv 185 - -/* syscall: lfs_segclean ret: int args: fsid_t * u_long */ -#define AOUTM68K_SYS_lfs_segclean 186 - -/* syscall: lfs_segwait ret: int args: fsid_t * struct timeval50 * */ -#define AOUTM68K_SYS_lfs_segwait 187 - -#else /* 184 is excluded lfs_bmapv */ /* 185 is excluded lfs_markv */ /* 186 is excluded lfs_segclean */ /* 187 is excluded lfs_segwait */ -#endif #if defined(COMPAT_12) || !defined(_KERNEL) /* syscall: stat12 ret: int args: const char * struct aoutm68k_stat12 * */ #define AOUTM68K_SYS_stat12 188 Index: src/sys/compat/aoutm68k/aoutm68k_syscallargs.h diff -u src/sys/compat/aoutm68k/aoutm68k_syscallargs.h:1.37 src/sys/compat/aoutm68k/aoutm68k_syscallargs.h:1.38 --- src/sys/compat/aoutm68k/aoutm68k_syscallargs.h:1.37 Mon Dec 14 00:58:35 2009 +++ src/sys/compat/aoutm68k/aoutm68k_syscallargs.h Tue Mar 2 16:09:10 2010 @@ -1,10 +1,10 @@ -/* $NetBSD: aoutm68k_syscallargs.h,v 1.37 2009/12/14 00:58:35 matt Exp $ */ +/* $NetBSD: aoutm68k_syscallargs.h,v 1.38 2010/03/02 16:09:10 pooka Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.33 2009/01/13 22:27:43 pooka Exp + * created from NetBSD: syscalls.master,v 1.35 2010/03/02 16:08:15 pooka Exp */ #ifndef _AOUTM68K_SYS_SYSCALLARGS_H_ @@ -427,17 +427,6 @@ struct sys_setegid_args; struct sys_seteuid_args; -#if defined(LFS) || !defined(_KERNEL) - -struct sys_lfs_bmapv_args; - -struct sys_lfs_markv_args; - -struct sys_lfs_segclean_args; - -struct compat_50_sys_lfs_segwait_args; -#else -#endif #if defined(COMPAT_12) || !defined(_KERNEL) struct aoutm68k_compat_12_sys_stat_args { @@ -1088,17 +1077,6 @@ int sys_seteuid(struct lwp *, const struct sys_seteuid_args *, register_t *); -#if defined(LFS) || !defined(_KERNEL) -int sys_lfs_bmapv(struct lwp *, const struct sys_lfs_bmapv_args *, register_t *); - -int sys_lfs_markv(struct lwp *, const struct
CVS commit: src/usr.bin/passwd
Module Name:src Committed By: gdt Date: Tue Mar 2 16:19:13 UTC 2010 Modified Files: src/usr.bin/passwd: local_passwd.c pam_passwd.c Log Message: Log successful and unsuccessful attempts to change passwords, via -l or pam, to ease IT audit guideline compliance. Patch from Richard Hansen of BBN in private mail. Proposed on tech-kern with positive comments, except a suggestion I didn't implement: A possible future enhancement is refraining from logging if the old password is empty, as some people abort password changing that way. However, it's not clear if this complies with most guidelines that require password change logging, and at first glance that appears to be a fairly difficult change. To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/usr.bin/passwd/local_passwd.c cvs rdiff -u -r1.4 -r1.5 src/usr.bin/passwd/pam_passwd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/passwd/local_passwd.c diff -u src/usr.bin/passwd/local_passwd.c:1.33 src/usr.bin/passwd/local_passwd.c:1.34 --- src/usr.bin/passwd/local_passwd.c:1.33 Fri Apr 17 20:25:08 2009 +++ src/usr.bin/passwd/local_passwd.c Tue Mar 2 16:19:13 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: local_passwd.c,v 1.33 2009/04/17 20:25:08 dyoung Exp $ */ +/* $NetBSD: local_passwd.c,v 1.34 2010/03/02 16:19:13 gdt Exp $ */ /*- * Copyright (c) 1990, 1993, 1994 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = from: @(#)local_passwd.c8.3 (Berkeley) 4/2/94; #else -__RCSID($NetBSD: local_passwd.c,v 1.33 2009/04/17 20:25:08 dyoung Exp $); +__RCSID($NetBSD: local_passwd.c,v 1.34 2010/03/02 16:19:13 gdt Exp $); #endif #endif /* not lint */ @@ -53,6 +53,7 @@ #include unistd.h #include util.h #include login_cap.h +#include syslog.h #include extern.h @@ -72,6 +73,10 @@ strcmp(crypt(getpass(Old password:), pw-pw_passwd), pw-pw_passwd)) { errno = EACCES; + syslog(LOG_AUTH | LOG_NOTICE, + user %s (UID %lu) failed to change the + local password of user %s: %m, + pw-pw_name, (unsigned long)uid, pw-pw_name); pw_error(NULL, 1, 1); } @@ -213,6 +218,11 @@ if (pw_mkdb(username, old_change == pw-pw_change) 0) pw_error((char *)NULL, 0, 1); + + syslog(LOG_AUTH | LOG_INFO, + user %s (UID %lu) successfully changed + the local password of user %s, + uid ? username : root, (unsigned long)uid, username); } #else /* ! USE_PAM */ @@ -319,6 +329,12 @@ if (pw_mkdb(uname, old_change == pw-pw_change) 0) pw_error((char *)NULL, 0, 1); + + syslog(LOG_AUTH | LOG_INFO, + user %s (UID %lu) successfully changed + the local password of user %s, + uid ? uname : root, (unsigned long)uid, uname); + return (0); } Index: src/usr.bin/passwd/pam_passwd.c diff -u src/usr.bin/passwd/pam_passwd.c:1.4 src/usr.bin/passwd/pam_passwd.c:1.5 --- src/usr.bin/passwd/pam_passwd.c:1.4 Sun May 6 09:19:44 2007 +++ src/usr.bin/passwd/pam_passwd.c Tue Mar 2 16:19:13 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: pam_passwd.c,v 1.4 2007/05/06 09:19:44 jnemeth Exp $ */ +/* $NetBSD: pam_passwd.c,v 1.5 2010/03/02 16:19:13 gdt Exp $ */ /*- * Copyright (c) 2002 Networks Associates Technologies, Inc. @@ -38,7 +38,7 @@ #ifdef __FreeBSD__ __FBSDID($FreeBSD: src/usr.bin/passwd/passwd.c,v 1.23 2003/04/18 21:27:09 nectar Exp $); #else -__RCSID($NetBSD: pam_passwd.c,v 1.4 2007/05/06 09:19:44 jnemeth Exp $); +__RCSID($NetBSD: pam_passwd.c,v 1.5 2010/03/02 16:19:13 gdt Exp $); #endif #include sys/param.h @@ -75,6 +75,12 @@ int ch, pam_err; char hostname[MAXHOSTNAMELEN + 1]; + /* details about the invoking user for logging */ + const uid_t i_uid = getuid(); + const struct passwd *const i_pwd = getpwuid(i_uid); + const char *const i_username = (i_pwd i_pwd-pw_name) + ? i_pwd-pw_name : (null); + while ((ch = getopt(argc, argv, )) != -1) { switch (ch) { default: @@ -116,9 +122,22 @@ /* set new password */ pam_err = pam_chauthtok(pamh, 0); - if (pam_err != PAM_SUCCESS) + if (pam_err != PAM_SUCCESS) { + if (pam_err == PAM_PERM_DENIED) { + syslog(LOG_AUTH | LOG_NOTICE, + user %s (UID %lu) failed to change the + PAM authentication token of user %s: %s, + i_username, (unsigned long)i_uid, username, + pam_strerror(pamh, pam_err)); + } printf(Unable to change auth token: %s\n, pam_strerror(pamh, pam_err)); + } else { + syslog(LOG_AUTH | LOG_INFO, + user %s (UID %lu) successfully changed the + PAM authentication token of user %s, + i_username, (unsigned long)i_uid, username); + } end: pam_end(pamh, pam_err);
CVS commit: src/usr.bin/passwd
Module Name:src Committed By: gdt Date: Tue Mar 2 16:19:13 UTC 2010 Modified Files: src/usr.bin/passwd: local_passwd.c pam_passwd.c Log Message: Log successful and unsuccessful attempts to change passwords, via -l or pam, to ease IT audit guideline compliance. Patch from Richard Hansen of BBN in private mail. Proposed on tech-kern with positive comments, except a suggestion I didn't implement: A possible future enhancement is refraining from logging if the old password is empty, as some people abort password changing that way. However, it's not clear if this complies with most guidelines that require password change logging, and at first glance that appears to be a fairly difficult change. To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/usr.bin/passwd/local_passwd.c cvs rdiff -u -r1.4 -r1.5 src/usr.bin/passwd/pam_passwd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys
Module Name:src Committed By: pooka Date: Tue Mar 2 16:43:48 UTC 2010 Modified Files: src/sys/coda: files.coda src/sys/fs/nilfs: files.nilfs src/sys/fs/ntfs: files.ntfs src/sys/fs/ptyfs: files.ptyfs src/sys/fs/tmpfs: files.tmpfs src/sys/fs/udf: files.udf src/sys/fs/union: files.union src/sys/fs/unionfs: files.unionfs src/sys/ufs: files.ufs Removed Files: src/sys/rump/librump/rumpkern/opt: fs_ffs.h fs_union.h Log Message: Don't generate unused fs_thefs.h headers. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/coda/files.coda cvs rdiff -u -r1.1 -r1.2 src/sys/fs/nilfs/files.nilfs cvs rdiff -u -r1.1 -r1.2 src/sys/fs/ntfs/files.ntfs cvs rdiff -u -r1.2 -r1.3 src/sys/fs/ptyfs/files.ptyfs cvs rdiff -u -r1.2 -r1.3 src/sys/fs/tmpfs/files.tmpfs cvs rdiff -u -r1.3 -r1.4 src/sys/fs/udf/files.udf cvs rdiff -u -r1.1 -r1.2 src/sys/fs/union/files.union cvs rdiff -u -r1.1 -r1.2 src/sys/fs/unionfs/files.unionfs cvs rdiff -u -r1.2 -r0 src/sys/rump/librump/rumpkern/opt/fs_ffs.h cvs rdiff -u -r1.1 -r0 src/sys/rump/librump/rumpkern/opt/fs_union.h cvs rdiff -u -r1.20 -r1.21 src/sys/ufs/files.ufs Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/coda/files.coda diff -u src/sys/coda/files.coda:1.5 src/sys/coda/files.coda:1.6 --- src/sys/coda/files.coda:1.5 Sun Dec 11 12:19:50 2005 +++ src/sys/coda/files.coda Tue Mar 2 16:43:48 2010 @@ -1,6 +1,6 @@ -# $NetBSD: files.coda,v 1.5 2005/12/11 12:19:50 christos Exp $ +# $NetBSD: files.coda,v 1.6 2010/03/02 16:43:48 pooka Exp $ -deffs fs_coda.h CODA +deffs CODA file coda/coda_namecache.c coda file coda/coda_subr.c coda Index: src/sys/fs/nilfs/files.nilfs diff -u src/sys/fs/nilfs/files.nilfs:1.1 src/sys/fs/nilfs/files.nilfs:1.2 --- src/sys/fs/nilfs/files.nilfs:1.1 Sat Jul 18 16:31:42 2009 +++ src/sys/fs/nilfs/files.nilfs Tue Mar 2 16:43:48 2010 @@ -1,6 +1,6 @@ -# $NetBSD: files.nilfs,v 1.1 2009/07/18 16:31:42 reinoud Exp $ +# $NetBSD: files.nilfs,v 1.2 2010/03/02 16:43:48 pooka Exp $ -deffs fs_nilfs.h NILFS +deffs NILFS file fs/nilfs/nilfs_vfsops.c nilfs file fs/nilfs/nilfs_vnops.c nilfs Index: src/sys/fs/ntfs/files.ntfs diff -u src/sys/fs/ntfs/files.ntfs:1.1 src/sys/fs/ntfs/files.ntfs:1.2 --- src/sys/fs/ntfs/files.ntfs:1.1 Mon Dec 23 17:38:31 2002 +++ src/sys/fs/ntfs/files.ntfs Tue Mar 2 16:43:48 2010 @@ -1,6 +1,6 @@ -# $NetBSD: files.ntfs,v 1.1 2002/12/23 17:38:31 jdolecek Exp $ +# $NetBSD: files.ntfs,v 1.2 2010/03/02 16:43:48 pooka Exp $ -deffs fs_ntfs.h NTFS +deffs NTFS defflag opt_ntfs.h NTFS_DEBUG Index: src/sys/fs/ptyfs/files.ptyfs diff -u src/sys/fs/ptyfs/files.ptyfs:1.2 src/sys/fs/ptyfs/files.ptyfs:1.3 --- src/sys/fs/ptyfs/files.ptyfs:1.2 Sun Dec 11 12:24:29 2005 +++ src/sys/fs/ptyfs/files.ptyfs Tue Mar 2 16:43:48 2010 @@ -1,6 +1,6 @@ -# $NetBSD: files.ptyfs,v 1.2 2005/12/11 12:24:29 christos Exp $ +# $NetBSD: files.ptyfs,v 1.3 2010/03/02 16:43:48 pooka Exp $ -deffs fs_ptyfs.h PTYFS # XXX +deffs PTYFS file fs/ptyfs/ptyfs_subr.c ptyfs file fs/ptyfs/ptyfs_vfsops.c ptyfs Index: src/sys/fs/tmpfs/files.tmpfs diff -u src/sys/fs/tmpfs/files.tmpfs:1.2 src/sys/fs/tmpfs/files.tmpfs:1.3 --- src/sys/fs/tmpfs/files.tmpfs:1.2 Sun Dec 11 12:24:29 2005 +++ src/sys/fs/tmpfs/files.tmpfs Tue Mar 2 16:43:48 2010 @@ -1,6 +1,6 @@ -# $NetBSD: files.tmpfs,v 1.2 2005/12/11 12:24:29 christos Exp $ +# $NetBSD: files.tmpfs,v 1.3 2010/03/02 16:43:48 pooka Exp $ -deffs fs_tmpfs.h TMPFS +deffs TMPFS file fs/tmpfs/tmpfs_fifoops.c tmpfs file fs/tmpfs/tmpfs_pool.c tmpfs Index: src/sys/fs/udf/files.udf diff -u src/sys/fs/udf/files.udf:1.3 src/sys/fs/udf/files.udf:1.4 --- src/sys/fs/udf/files.udf:1.3 Fri Aug 29 15:04:18 2008 +++ src/sys/fs/udf/files.udf Tue Mar 2 16:43:48 2010 @@ -1,6 +1,6 @@ -# $NetBSD: files.udf,v 1.3 2008/08/29 15:04:18 reinoud Exp $ +# $NetBSD: files.udf,v 1.4 2010/03/02 16:43:48 pooka Exp $ -deffs fs_udf.h UDF +deffs UDF file fs/udf/udf_osta.c udf file fs/udf/udf_vfsops.c udf Index: src/sys/fs/union/files.union diff -u src/sys/fs/union/files.union:1.1 src/sys/fs/union/files.union:1.2 --- src/sys/fs/union/files.union:1.1 Sun Mar 16 08:26:50 2003 +++ src/sys/fs/union/files.union Tue Mar 2 16:43:48 2010 @@ -1,6 +1,6 @@ -# $NetBSD: files.union,v 1.1 2003/03/16 08:26:50 jdolecek Exp $ +# $NetBSD: files.union,v 1.2 2010/03/02 16:43:48 pooka Exp $ -deffs fs_union.h UNION +deffs UNION file fs/union/union_subr.c union file fs/union/union_vfsops.c union Index: src/sys/fs/unionfs/files.unionfs diff -u src/sys/fs/unionfs/files.unionfs:1.1 src/sys/fs/unionfs/files.unionfs:1.2 --- src/sys/fs/unionfs/files.unionfs:1.1 Mon Feb 18 16:44:22 2008 +++ src/sys/fs/unionfs/files.unionfs Tue Mar 2 16:43:48 2010 @@ -1,6 +1,6 @@ -# $NetBSD: files.unionfs,v 1.1 2008/02/18 16:44:22 ad Exp $ +# $NetBSD: files.unionfs,v 1.2
CVS commit: src/sys
Module Name:src Committed By: pooka Date: Tue Mar 2 16:43:48 UTC 2010 Modified Files: src/sys/coda: files.coda src/sys/fs/nilfs: files.nilfs src/sys/fs/ntfs: files.ntfs src/sys/fs/ptyfs: files.ptyfs src/sys/fs/tmpfs: files.tmpfs src/sys/fs/udf: files.udf src/sys/fs/union: files.union src/sys/fs/unionfs: files.unionfs src/sys/ufs: files.ufs Removed Files: src/sys/rump/librump/rumpkern/opt: fs_ffs.h fs_union.h Log Message: Don't generate unused fs_thefs.h headers. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/coda/files.coda cvs rdiff -u -r1.1 -r1.2 src/sys/fs/nilfs/files.nilfs cvs rdiff -u -r1.1 -r1.2 src/sys/fs/ntfs/files.ntfs cvs rdiff -u -r1.2 -r1.3 src/sys/fs/ptyfs/files.ptyfs cvs rdiff -u -r1.2 -r1.3 src/sys/fs/tmpfs/files.tmpfs cvs rdiff -u -r1.3 -r1.4 src/sys/fs/udf/files.udf cvs rdiff -u -r1.1 -r1.2 src/sys/fs/union/files.union cvs rdiff -u -r1.1 -r1.2 src/sys/fs/unionfs/files.unionfs cvs rdiff -u -r1.2 -r0 src/sys/rump/librump/rumpkern/opt/fs_ffs.h cvs rdiff -u -r1.1 -r0 src/sys/rump/librump/rumpkern/opt/fs_union.h cvs rdiff -u -r1.20 -r1.21 src/sys/ufs/files.ufs Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/xen/xen
Module Name:src Committed By: dyoung Date: Tue Mar 2 16:44:08 UTC 2010 Modified Files: src/sys/arch/xen/xen: hypervisor.c Log Message: Re-zero the attach args before setting them up for a new call to config_found_ia(). In this way we avoid passing an uninitialized pcibus_attach_args.pba_pc that will cause problems, later. To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/sys/arch/xen/xen/hypervisor.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/ufs/mfs
Module Name:src Committed By: pooka Date: Tue Mar 2 17:20:03 UTC 2010 Modified Files: src/sys/ufs/mfs: mfs_extern.h mfs_vfsops.c Added Files: src/sys/ufs/mfs: mfs_miniroot.c Log Message: Make mfs_initminiroot() mandatory. Allows to remove #ifdef MFS. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/sys/ufs/mfs/mfs_extern.h cvs rdiff -u -r0 -r1.1 src/sys/ufs/mfs/mfs_miniroot.c cvs rdiff -u -r1.101 -r1.102 src/sys/ufs/mfs/mfs_vfsops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/ufs/mfs/mfs_extern.h diff -u src/sys/ufs/mfs/mfs_extern.h:1.30 src/sys/ufs/mfs/mfs_extern.h:1.31 --- src/sys/ufs/mfs/mfs_extern.h:1.30 Sat Jun 28 01:34:05 2008 +++ src/sys/ufs/mfs/mfs_extern.h Tue Mar 2 17:20:02 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: mfs_extern.h,v 1.30 2008/06/28 01:34:05 rumble Exp $ */ +/* $NetBSD: mfs_extern.h,v 1.31 2010/03/02 17:20:02 pooka Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -69,6 +69,8 @@ #include sys/mutex.h extern kmutex_t mfs_lock; +extern void *mfs_rootbase; +extern u_long mfs_rootsize; #endif Index: src/sys/ufs/mfs/mfs_vfsops.c diff -u src/sys/ufs/mfs/mfs_vfsops.c:1.101 src/sys/ufs/mfs/mfs_vfsops.c:1.102 --- src/sys/ufs/mfs/mfs_vfsops.c:1.101 Tue Jan 13 13:35:54 2009 +++ src/sys/ufs/mfs/mfs_vfsops.c Tue Mar 2 17:20:02 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: mfs_vfsops.c,v 1.101 2009/01/13 13:35:54 yamt Exp $ */ +/* $NetBSD: mfs_vfsops.c,v 1.102 2010/03/02 17:20:02 pooka Exp $ */ /* * Copyright (c) 1989, 1990, 1993, 1994 @@ -32,7 +32,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: mfs_vfsops.c,v 1.101 2009/01/13 13:35:54 yamt Exp $); +__KERNEL_RCSID(0, $NetBSD: mfs_vfsops.c,v 1.102 2010/03/02 17:20:02 pooka Exp $); #if defined(_KERNEL_OPT) #include opt_compat_netbsd.h @@ -68,11 +68,10 @@ MODULE(MODULE_CLASS_VFS, mfs, ffs); -void * mfs_rootbase; /* address of mini-root in kernel virtual memory */ -u_long mfs_rootsize; /* size of mini-root in bytes */ kmutex_t mfs_lock; /* global lock */ -static int mfs_minor; /* used for building internal dev_t */ +/* used for building internal dev_t, minor == 0 reserved for miniroot */ +static int mfs_minor = 1; static int mfs_initcnt; extern int (**mfs_vnodeop_p)(void *); @@ -241,27 +240,6 @@ } /* - * This is called early in boot to set the base address and size - * of the mini-root. - */ -int -mfs_initminiroot(void *base) -{ - struct fs *fs = (struct fs *)((char *)base + SBLOCK_UFS1); - - /* check for valid super block */ - if (fs-fs_magic != FS_UFS1_MAGIC || fs-fs_bsize MAXBSIZE || - fs-fs_bsize sizeof(struct fs)) - return (0); - rootfstype = MOUNT_MFS; - mfs_rootbase = base; - mfs_rootsize = fs-fs_fsize * fs-fs_size; - rootdev = makedev(255, mfs_minor); - mfs_minor++; - return (mfs_rootsize); -} - -/* * VFS Operations. * * mount system call Added files: Index: src/sys/ufs/mfs/mfs_miniroot.c diff -u /dev/null src/sys/ufs/mfs/mfs_miniroot.c:1.1 --- /dev/null Tue Mar 2 17:20:03 2010 +++ src/sys/ufs/mfs/mfs_miniroot.c Tue Mar 2 17:20:02 2010 @@ -0,0 +1,68 @@ +/* $NetBSD: mfs_miniroot.c,v 1.1 2010/03/02 17:20:02 pooka Exp $ */ + +/* + * Copyright (c) 1989, 1990, 1993, 1994 + * The Regents of the University of California. 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. + * 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. + * + * @(#)mfs_vfsops.c 8.11 (Berkeley) 6/19/95 + */ + +#include sys/cdefs.h +__KERNEL_RCSID(0, $NetBSD: mfs_miniroot.c,v 1.1
CVS commit: src/sys/ufs/mfs
Module Name:src Committed By: pooka Date: Tue Mar 2 17:20:03 UTC 2010 Modified Files: src/sys/ufs/mfs: mfs_extern.h mfs_vfsops.c Added Files: src/sys/ufs/mfs: mfs_miniroot.c Log Message: Make mfs_initminiroot() mandatory. Allows to remove #ifdef MFS. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/sys/ufs/mfs/mfs_extern.h cvs rdiff -u -r0 -r1.1 src/sys/ufs/mfs/mfs_miniroot.c cvs rdiff -u -r1.101 -r1.102 src/sys/ufs/mfs/mfs_vfsops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/ufs
Module Name:src Committed By: pooka Date: Tue Mar 2 17:23:36 UTC 2010 Modified Files: src/sys/ufs: files.ufs Log Message: Make mfs_initminiroot() mandatory. Allows to remove #ifdef MFS. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/ufs/files.ufs Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/ufs
Module Name:src Committed By: pooka Date: Tue Mar 2 17:23:36 UTC 2010 Modified Files: src/sys/ufs: files.ufs Log Message: Make mfs_initminiroot() mandatory. Allows to remove #ifdef MFS. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/ufs/files.ufs Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/ufs/files.ufs diff -u src/sys/ufs/files.ufs:1.21 src/sys/ufs/files.ufs:1.22 --- src/sys/ufs/files.ufs:1.21 Tue Mar 2 16:43:48 2010 +++ src/sys/ufs/files.ufs Tue Mar 2 17:23:36 2010 @@ -1,4 +1,4 @@ -# $NetBSD: files.ufs,v 1.21 2010/03/02 16:43:48 pooka Exp $ +# $NetBSD: files.ufs,v 1.22 2010/03/02 17:23:36 pooka Exp $ deffs FFS deffs EXT2FS @@ -50,6 +50,7 @@ file ufs/mfs/mfs_vfsops.c mfs file ufs/mfs/mfs_vnops.c mfs +file ufs/mfs/mfs_miniroot.c file ufs/ufs/ufs_bmap.c ffs | lfs | mfs | ext2fs file ufs/ufs/ufs_dirhash.c (ffs | lfs | mfs | ext2fs) ufs_dirhash
CVS commit: src/sys
Module Name:src Committed By: pooka Date: Tue Mar 2 17:28:09 UTC 2010 Modified Files: src/sys/arch/arc/arc: machdep.c src/sys/arch/hpcmips/hpcmips: machdep.c src/sys/arch/hpcsh/hpcsh: machdep.c src/sys/arch/landisk/landisk: machdep.c src/sys/arch/mipsco/mipsco: machdep.c src/sys/arch/newsmips/newsmips: machdep.c src/sys/arch/pmax/pmax: machdep.c src/sys/ufs: files.ufs Log Message: Remove fs_mfs.h from users because it is now unnecessary and don't generate fs_mfs.h anymore. To generate a diff of this commit: cvs rdiff -u -r1.120 -r1.121 src/sys/arch/arc/arc/machdep.c cvs rdiff -u -r1.109 -r1.110 src/sys/arch/hpcmips/hpcmips/machdep.c cvs rdiff -u -r1.70 -r1.71 src/sys/arch/hpcsh/hpcsh/machdep.c cvs rdiff -u -r1.13 -r1.14 src/sys/arch/landisk/landisk/machdep.c cvs rdiff -u -r1.71 -r1.72 src/sys/arch/mipsco/mipsco/machdep.c cvs rdiff -u -r1.108 -r1.109 src/sys/arch/newsmips/newsmips/machdep.c cvs rdiff -u -r1.239 -r1.240 src/sys/arch/pmax/pmax/machdep.c cvs rdiff -u -r1.22 -r1.23 src/sys/ufs/files.ufs 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/arc/arc/machdep.c diff -u src/sys/arch/arc/arc/machdep.c:1.120 src/sys/arch/arc/arc/machdep.c:1.121 --- src/sys/arch/arc/arc/machdep.c:1.120 Mon Feb 8 19:02:26 2010 +++ src/sys/arch/arc/arc/machdep.c Tue Mar 2 17:28:08 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.120 2010/02/08 19:02:26 joerg Exp $ */ +/* $NetBSD: machdep.c,v 1.121 2010/03/02 17:28:08 pooka Exp $ */ /* $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $ */ /* @@ -78,9 +78,8 @@ /* from: Utah Hdr: machdep.c 1.63 91/04/24 */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.120 2010/02/08 19:02:26 joerg Exp $); +__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.121 2010/03/02 17:28:08 pooka Exp $); -#include fs_mfs.h #include opt_ddb.h #include opt_ddbparam.h #include opt_md.h @@ -108,9 +107,7 @@ #include sys/syscallargs.h #include sys/kcore.h #include sys/ksyms.h -#ifdef MFS #include ufs/mfs/mfs_extern.h /* mfs_initminiroot() */ -#endif #include machine/bootinfo.h #include machine/cpu.h @@ -401,14 +398,12 @@ sprintf(cpu_model, %s %s%s, platform-vendor, platform-model, platform-variant); -#ifdef MFS /* * Check to see if a mini-root was loaded into memory. It resides * at the start of the next page just after the end of BSS. */ if (boothowto RB_MINIROOT) kernend += round_page(mfs_initminiroot(kernend)); -#endif #if NKSYMS || defined(DDB) || defined(MODULAR) /* init symbols if present */ Index: src/sys/arch/hpcmips/hpcmips/machdep.c diff -u src/sys/arch/hpcmips/hpcmips/machdep.c:1.109 src/sys/arch/hpcmips/hpcmips/machdep.c:1.110 --- src/sys/arch/hpcmips/hpcmips/machdep.c:1.109 Mon Feb 8 19:02:29 2010 +++ src/sys/arch/hpcmips/hpcmips/machdep.c Tue Mar 2 17:28:08 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.109 2010/02/08 19:02:29 joerg Exp $ */ +/* $NetBSD: machdep.c,v 1.110 2010/03/02 17:28:08 pooka Exp $ */ /*- * Copyright (c) 1999 Shin Takemura, All rights reserved. @@ -108,7 +108,7 @@ */ #include sys/cdefs.h /* RCS ID Copyright macro defns */ -__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.109 2010/02/08 19:02:29 joerg Exp $); +__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.110 2010/03/02 17:28:08 pooka Exp $); #include opt_vr41xx.h #include opt_tx39xx.h @@ -116,7 +116,6 @@ #include opt_modular.h #include opt_spec_platform.h #include biconsdev.h -#include fs_mfs.h #include opt_ddb.h #include opt_kgdb.h #include opt_rtc_offset.h @@ -430,7 +429,6 @@ } } } -#ifdef MFS /* * Check to see if a mini-root was loaded into memory. It resides * at the start of the next page just after the end of BSS. @@ -443,7 +441,6 @@ #endif /* MEMORY_DISK_DYNAMIC */ kernend = (char *)kernend + fssz; } -#endif /* MFS */ #if NKSYMS || defined(DDB) || defined(MODULAR) /* init symbols if present */ Index: src/sys/arch/hpcsh/hpcsh/machdep.c diff -u src/sys/arch/hpcsh/hpcsh/machdep.c:1.70 src/sys/arch/hpcsh/hpcsh/machdep.c:1.71 --- src/sys/arch/hpcsh/hpcsh/machdep.c:1.70 Fri Nov 27 03:23:09 2009 +++ src/sys/arch/hpcsh/hpcsh/machdep.c Tue Mar 2 17:28:08 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.70 2009/11/27 03:23:09 rmind Exp $ */ +/* $NetBSD: machdep.c,v 1.71 2010/03/02 17:28:08 pooka Exp $ */ /*- * Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc. @@ -27,13 +27,12 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.70 2009/11/27 03:23:09 rmind Exp $); +__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.71 2010/03/02 17:28:08 pooka Exp $); #include opt_md.h #include opt_ddb.h #include opt_kgdb.h #include opt_modular.h -#include fs_mfs.h #include fs_nfs.h #include biconsdev.h #include debug_hpc.h @@ -256,7 +255,6 @@ } } -#ifdef MFS /* * Check to see if a mini-root was loaded
CVS commit: src/sys/modules/lfs
Module Name:src Committed By: pooka Date: Tue Mar 2 18:00:25 UTC 2010 Modified Files: src/sys/modules/lfs: Makefile Log Message: Remove the ufs_vnops.c hacks from the lfs module, since ffs (and hence ufs) has been required by lfs for ages now. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/modules/lfs/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/modules/lfs
Module Name:src Committed By: pooka Date: Tue Mar 2 18:00:25 UTC 2010 Modified Files: src/sys/modules/lfs: Makefile Log Message: Remove the ufs_vnops.c hacks from the lfs module, since ffs (and hence ufs) has been required by lfs for ages now. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/modules/lfs/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/modules/lfs/Makefile diff -u src/sys/modules/lfs/Makefile:1.2 src/sys/modules/lfs/Makefile:1.3 --- src/sys/modules/lfs/Makefile:1.2 Sun Nov 16 15:39:19 2008 +++ src/sys/modules/lfs/Makefile Tue Mar 2 18:00:24 2010 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2008/11/16 15:39:19 ad Exp $ +# $NetBSD: Makefile,v 1.3 2010/03/02 18:00:24 pooka Exp $ .include ../Makefile.inc @@ -6,13 +6,9 @@ lfs_vnops.o: ufs_readwrite.c -COPTS+= -DLFS -Dufs_mkdir=lfs_ufs_mkdir -Dufs_makeinode=lfs_ufs_makeinode \ - -Dufs_strategy=lfs_ufs_strategy -Dufs_whiteout=lfs_ufs_whiteout \ - -Dufs_link=lfs_ufs_link -Dufs_rename=lfs_ufs_rename - KMOD= lfs SRCS= lfs_vfsops.c lfs_vnops.c lfs_subr.c lfs_alloc.c lfs_balloc.c \ lfs_bio.c lfs_cksum.c lfs_debug.c lfs_inode.c lfs_segment.c \ - lfs_syscalls.c ufs_vnops.c lfs_itimes.c + lfs_syscalls.c lfs_itimes.c .include bsd.kmodule.mk
CVS commit: src/sys/dev/acpi
Module Name:src Committed By: jruoho Date: Tue Mar 2 18:44:47 UTC 2010 Modified Files: src/sys/dev/acpi: acpi.c acpi_ec.c acpi_madt.c acpi_powerres.c acpi_resource.c aiboost.c atk0110.c dalb_acpi.c fdc_acpi.c sony_acpi.c Log Message: Format string cosmetics (mainly from %d to %u). To generate a diff of this commit: cvs rdiff -u -r1.149 -r1.150 src/sys/dev/acpi/acpi.c cvs rdiff -u -r1.60 -r1.61 src/sys/dev/acpi/acpi_ec.c cvs rdiff -u -r1.19 -r1.20 src/sys/dev/acpi/acpi_madt.c cvs rdiff -u -r1.9 -r1.10 src/sys/dev/acpi/acpi_powerres.c cvs rdiff -u -r1.30 -r1.31 src/sys/dev/acpi/acpi_resource.c cvs rdiff -u -r1.28 -r1.29 src/sys/dev/acpi/aiboost.c cvs rdiff -u -r1.5 -r1.6 src/sys/dev/acpi/atk0110.c cvs rdiff -u -r1.7 -r1.8 src/sys/dev/acpi/dalb_acpi.c cvs rdiff -u -r1.36 -r1.37 src/sys/dev/acpi/fdc_acpi.c cvs rdiff -u -r1.13 -r1.14 src/sys/dev/acpi/sony_acpi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/acpi
Module Name:src Committed By: jruoho Date: Tue Mar 2 18:44:47 UTC 2010 Modified Files: src/sys/dev/acpi: acpi.c acpi_ec.c acpi_madt.c acpi_powerres.c acpi_resource.c aiboost.c atk0110.c dalb_acpi.c fdc_acpi.c sony_acpi.c Log Message: Format string cosmetics (mainly from %d to %u). To generate a diff of this commit: cvs rdiff -u -r1.149 -r1.150 src/sys/dev/acpi/acpi.c cvs rdiff -u -r1.60 -r1.61 src/sys/dev/acpi/acpi_ec.c cvs rdiff -u -r1.19 -r1.20 src/sys/dev/acpi/acpi_madt.c cvs rdiff -u -r1.9 -r1.10 src/sys/dev/acpi/acpi_powerres.c cvs rdiff -u -r1.30 -r1.31 src/sys/dev/acpi/acpi_resource.c cvs rdiff -u -r1.28 -r1.29 src/sys/dev/acpi/aiboost.c cvs rdiff -u -r1.5 -r1.6 src/sys/dev/acpi/atk0110.c cvs rdiff -u -r1.7 -r1.8 src/sys/dev/acpi/dalb_acpi.c cvs rdiff -u -r1.36 -r1.37 src/sys/dev/acpi/fdc_acpi.c cvs rdiff -u -r1.13 -r1.14 src/sys/dev/acpi/sony_acpi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/acpi/acpi.c diff -u src/sys/dev/acpi/acpi.c:1.149 src/sys/dev/acpi/acpi.c:1.150 --- src/sys/dev/acpi/acpi.c:1.149 Wed Feb 24 22:37:56 2010 +++ src/sys/dev/acpi/acpi.c Tue Mar 2 18:44:46 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: acpi.c,v 1.149 2010/02/24 22:37:56 dyoung Exp $ */ +/* $NetBSD: acpi.c,v 1.150 2010/03/02 18:44:46 jruoho Exp $ */ /*- * Copyright (c) 2003, 2007 The NetBSD Foundation, Inc. @@ -70,7 +70,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: acpi.c,v 1.149 2010/02/24 22:37:56 dyoung Exp $); +__KERNEL_RCSID(0, $NetBSD: acpi.c,v 1.150 2010/03/02 18:44:46 jruoho Exp $); #include opt_acpi.h #include opt_pcifixup.h @@ -515,7 +515,7 @@ sc-sc_sleepstate = ACPI_STATE_S0; /* Show SCI interrupt. */ - aprint_verbose_dev(self, SCI interrupting at int %d\n, + aprint_verbose_dev(self, SCI interrupting at int %u\n, AcpiGbl_FADT.SciInterrupt); /* @@ -976,7 +976,7 @@ aprint_normal(buffer %p , obj-Buffer.Pointer); break; default: - aprint_normal(type %d ,obj-Type); + aprint_normal(type %u ,obj-Type); break; } ACPI_FREE(buf.Pointer); @@ -1638,7 +1638,7 @@ resn-Length = resp-Length; break; default: - printf(acpi_allocate_resources: res=%d\n, resc-Type); + printf(acpi_allocate_resources: res=%u\n, resc-Type); rv = AE_BAD_DATA; goto out2; } Index: src/sys/dev/acpi/acpi_ec.c diff -u src/sys/dev/acpi/acpi_ec.c:1.60 src/sys/dev/acpi/acpi_ec.c:1.61 --- src/sys/dev/acpi/acpi_ec.c:1.60 Wed Feb 24 22:37:56 2010 +++ src/sys/dev/acpi/acpi_ec.c Tue Mar 2 18:44:46 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_ec.c,v 1.60 2010/02/24 22:37:56 dyoung Exp $ */ +/* $NetBSD: acpi_ec.c,v 1.61 2010/03/02 18:44:46 jruoho Exp $ */ /*- * Copyright (c) 2007 Joerg Sonnenberger jo...@netbsd.org. @@ -59,7 +59,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: acpi_ec.c,v 1.60 2010/02/24 22:37:56 dyoung Exp $); +__KERNEL_RCSID(0, $NetBSD: acpi_ec.c,v 1.61 2010/03/02 18:44:46 jruoho Exp $); #include sys/param.h #include sys/systm.h @@ -190,7 +190,7 @@ if (ecdt-Control.BitWidth != 8 || ecdt-Data.BitWidth != 8) { aprint_error_dev(parent, - ECDT register width invalid (%d/%d)\n, + ECDT register width invalid (%u/%u)\n, ecdt-Control.BitWidth, ecdt-Data.BitWidth); return false; } Index: src/sys/dev/acpi/acpi_madt.c diff -u src/sys/dev/acpi/acpi_madt.c:1.19 src/sys/dev/acpi/acpi_madt.c:1.20 --- src/sys/dev/acpi/acpi_madt.c:1.19 Mon Jan 7 06:04:07 2008 +++ src/sys/dev/acpi/acpi_madt.c Tue Mar 2 18:44:47 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_madt.c,v 1.19 2008/01/07 06:04:07 tnn Exp $ */ +/* $NetBSD: acpi_madt.c,v 1.20 2010/03/02 18:44:47 jruoho Exp $ */ /* * Copyright (c) 2003 Wasabi Systems, Inc. @@ -36,7 +36,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: acpi_madt.c,v 1.19 2008/01/07 06:04:07 tnn Exp $); +__KERNEL_RCSID(0, $NetBSD: acpi_madt.c,v 1.20 2010/03/02 18:44:47 jruoho Exp $); #include sys/param.h #include sys/ioctl.h @@ -131,14 +131,14 @@ static void acpi_print_lapic_ovr(ACPI_MADT_LOCAL_APIC_OVERRIDE *p) { - printf(lapic addr override: 0x%llx\n, (unsigned long long)p-Address); + printf(lapic addr override: 0x%PRIx64\n, p-Address); } static void acpi_print_iosapic(ACPI_MADT_IO_SAPIC *p) { - printf(iosapic: sapid %u address 0x%llx int vector base 0x%x\n, - p-Id, (unsigned long long)p-Address, p-GlobalIrqBase); + printf(iosapic: sapid %u address 0x%PRIx64 int vector base 0x%x\n, + p-Id, p-Address, p-GlobalIrqBase); } static void @@ -223,7 +223,7 @@ acpi_print_platint((void *)hdrp); break; default: - printf(Unknown MADT entry type %d\n, hdrp-Type); + printf(Unknown MADT entry type %u\n, hdrp-Type); break; } return AE_OK; Index: src/sys/dev/acpi/acpi_powerres.c diff -u src/sys/dev/acpi/acpi_powerres.c:1.9 src/sys/dev/acpi/acpi_powerres.c:1.10 ---
CVS commit: src/sys/ufs/lfs
Module Name:src Committed By: pooka Date: Tue Mar 2 19:30:34 UTC 2010 Modified Files: src/sys/ufs/lfs: lfs_vfsops.c Log Message: /* * XXX: Get extra reference to LFS vfsops. This prevents unload, * but also prevents kernel panic due to text being unloaded * from below lfs_writerd. When lfs_writerd can exit, remove * this!!! */ To generate a diff of this commit: cvs rdiff -u -r1.284 -r1.285 src/sys/ufs/lfs/lfs_vfsops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/ufs/lfs
Module Name:src Committed By: pooka Date: Tue Mar 2 19:30:34 UTC 2010 Modified Files: src/sys/ufs/lfs: lfs_vfsops.c Log Message: /* * XXX: Get extra reference to LFS vfsops. This prevents unload, * but also prevents kernel panic due to text being unloaded * from below lfs_writerd. When lfs_writerd can exit, remove * this!!! */ To generate a diff of this commit: cvs rdiff -u -r1.284 -r1.285 src/sys/ufs/lfs/lfs_vfsops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/ufs/lfs/lfs_vfsops.c diff -u src/sys/ufs/lfs/lfs_vfsops.c:1.284 src/sys/ufs/lfs/lfs_vfsops.c:1.285 --- src/sys/ufs/lfs/lfs_vfsops.c:1.284 Thu Feb 18 01:14:00 2010 +++ src/sys/ufs/lfs/lfs_vfsops.c Tue Mar 2 19:30:34 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: lfs_vfsops.c,v 1.284 2010/02/18 01:14:00 eeh Exp $ */ +/* $NetBSD: lfs_vfsops.c,v 1.285 2010/03/02 19:30:34 pooka Exp $ */ /*- * Copyright (c) 1999, 2000, 2001, 2002, 2003, 2007, 2007 @@ -61,7 +61,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: lfs_vfsops.c,v 1.284 2010/02/18 01:14:00 eeh Exp $); +__KERNEL_RCSID(0, $NetBSD: lfs_vfsops.c,v 1.285 2010/03/02 19:30:34 pooka Exp $); #if defined(_KERNEL_OPT) #include opt_lfs.h @@ -1047,6 +1047,13 @@ if (lfs_writer_daemon == 0 kthread_create(PRI_BIO, 0, NULL, lfs_writerd, NULL, NULL, lfs_writer) != 0) panic(fork lfs_writer); + /* + * XXX: Get extra reference to LFS vfsops. This prevents unload, + * but also prevents kernel panic due to text being unloaded + * from below lfs_writerd. When lfs_writerd can exit, remove + * this!!! + */ + vfs_getopsbyname(MOUNT_LFS); printf(WARNING: the log-structured file system is experimental\n WARNING: it may cause system crashes and/or corrupt data\n);
CVS commit: src/sys/kern
Module Name:src Committed By: pooka Date: Tue Mar 2 19:33:12 UTC 2010 Modified Files: src/sys/kern: makesyscalls.sh syscalls.conf Log Message: Make is possible to add extra output at the top of syscallargs.h. Use this feature to stick sys/mount.h in there. To generate a diff of this commit: cvs rdiff -u -r1.93 -r1.94 src/sys/kern/makesyscalls.sh cvs rdiff -u -r1.14 -r1.15 src/sys/kern/syscalls.conf Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/kern/makesyscalls.sh diff -u src/sys/kern/makesyscalls.sh:1.93 src/sys/kern/makesyscalls.sh:1.94 --- src/sys/kern/makesyscalls.sh:1.93 Tue Jan 5 15:23:32 2010 +++ src/sys/kern/makesyscalls.sh Tue Mar 2 19:33:12 2010 @@ -1,5 +1,5 @@ #! /bin/sh - -# $NetBSD: makesyscalls.sh,v 1.93 2010/01/05 15:23:32 skrll Exp $ +# $NetBSD: makesyscalls.sh,v 1.94 2010/03/02 19:33:12 pooka Exp $ # # Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou # All rights reserved. @@ -134,6 +134,7 @@ sysprotos = \$sysprotos\ sysnumhdr = \$sysnumhdr\ sysarghdr = \$sysarghdr\ + sysarghdrextra = \$sysarghdrextra\ rumpcalls = \$rumpcalls\ rumpcallshdr = \$rumpcallshdr\ rumpsysent = \$rumpsysent\ @@ -254,6 +255,7 @@ printf #define _ constprefix SYSCALL_H_\n\n sysnumhdr printf #ifndef _ constprefix SYSCALLARGS_H_\n sysarghdr printf #define _ constprefix SYSCALLARGS_H_\n\n sysarghdr + printf %s, sysarghdrextra sysarghdr # Write max number of system call arguments to both headers printf(#define\t%sMAXSYSARGS\t%d\n\n, constprefix, maxsysargs) \ sysnumhdr Index: src/sys/kern/syscalls.conf diff -u src/sys/kern/syscalls.conf:1.14 src/sys/kern/syscalls.conf:1.15 --- src/sys/kern/syscalls.conf:1.14 Mon Nov 17 08:46:42 2008 +++ src/sys/kern/syscalls.conf Tue Mar 2 19:33:12 2010 @@ -1,9 +1,10 @@ -# $NetBSD: syscalls.conf,v 1.14 2008/11/17 08:46:42 pooka Exp $ +# $NetBSD: syscalls.conf,v 1.15 2010/03/02 19:33:12 pooka Exp $ sysnames=syscalls.c sysnumhdr=../sys/syscall.h syssw=init_sysent.c sysarghdr=../sys/syscallargs.h +sysarghdrextra='#include sys/mount.h\n\n' sysalign=1 rumpcalls=../rump/librump/rumpkern/rump_syscalls.c rumpcallshdr=../rump/include/rump/rump_syscalls.h
CVS commit: src/sys/kern
Module Name:src Committed By: pooka Date: Tue Mar 2 19:33:12 UTC 2010 Modified Files: src/sys/kern: makesyscalls.sh syscalls.conf Log Message: Make is possible to add extra output at the top of syscallargs.h. Use this feature to stick sys/mount.h in there. To generate a diff of this commit: cvs rdiff -u -r1.93 -r1.94 src/sys/kern/makesyscalls.sh cvs rdiff -u -r1.14 -r1.15 src/sys/kern/syscalls.conf Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/kern
Module Name:src Committed By: pooka Date: Tue Mar 2 19:34:27 UTC 2010 Modified Files: src/sys/kern: syscalls.master Log Message: Make lfs syscalls loadable. This nukes fs_lfs.h #ifdef LFS. (I don't mind if someone wants to go further and OBSOL them). To generate a diff of this commit: cvs rdiff -u -r1.231 -r1.232 src/sys/kern/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/kern/syscalls.master diff -u src/sys/kern/syscalls.master:1.231 src/sys/kern/syscalls.master:1.232 --- src/sys/kern/syscalls.master:1.231 Thu Nov 26 17:20:20 2009 +++ src/sys/kern/syscalls.master Tue Mar 2 19:34:26 2010 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.231 2009/11/26 17:20:20 pooka Exp $ + $NetBSD: syscalls.master,v 1.232 2010/03/02 19:34:26 pooka Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -47,8 +47,6 @@ #include opt_ntp.h #include opt_sysv.h -#include fs_lfs.h - #include sys/param.h #include sys/systm.h #include sys/signal.h @@ -358,20 +356,13 @@ 181 STD { int|sys||setgid(gid_t gid); } 182 STD { int|sys||setegid(gid_t egid); } 183 STD { int|sys||seteuid(uid_t euid); } -#if defined(LFS) || !defined(_KERNEL) -184 STD { int|sys||lfs_bmapv(fsid_t *fsidp, \ +184 STD MODULAR { int|sys||lfs_bmapv(fsid_t *fsidp, \ struct block_info *blkiov, int blkcnt); } -185 STD { int|sys||lfs_markv(fsid_t *fsidp, \ +185 STD MODULAR { int|sys||lfs_markv(fsid_t *fsidp, \ struct block_info *blkiov, int blkcnt); } -186 STD { int|sys||lfs_segclean(fsid_t *fsidp, u_long segment); } +186 STD MODULAR { int|sys||lfs_segclean(fsid_t *fsidp, u_long segment); } 187 COMPAT_50 MODULAR { int|sys||lfs_segwait(fsid_t *fsidp, \ struct timeval50 *tv); } -#else -184 EXCL lfs_bmapv -185 EXCL lfs_markv -186 EXCL lfs_segclean -187 EXCL lfs_segwait -#endif 188 COMPAT_12 MODULAR { int|sys||stat(const char *path, struct stat12 *ub); } \ stat12 189 COMPAT_12 MODULAR { int|sys||fstat(int fd, struct stat12 *sb); } fstat12 @@ -809,12 +800,8 @@ const struct timeval *tptr); } 421 STD { int|sys|50|adjtime(const struct timeval *delta, \ struct timeval *olddelta); } -#if defined(LFS) || !defined(_KERNEL) -422 STD { int|sys|50|lfs_segwait(fsid_t *fsidp, \ +422 STD MODULAR { int|sys|50|lfs_segwait(fsid_t *fsidp, \ struct timeval *tv); } -#else -422 EXCL __lfs_segwait50 -#endif 423 STD RUMP { int|sys|50|futimes(int fd, \ const struct timeval *tptr); } 424 STD RUMP { int|sys|50|lutimes(const char *path, \
CVS commit: src/sys/kern
Module Name:src Committed By: pooka Date: Tue Mar 2 19:34:27 UTC 2010 Modified Files: src/sys/kern: syscalls.master Log Message: Make lfs syscalls loadable. This nukes fs_lfs.h #ifdef LFS. (I don't mind if someone wants to go further and OBSOL them). To generate a diff of this commit: cvs rdiff -u -r1.231 -r1.232 src/sys/kern/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/ufs/lfs
Module Name:src Committed By: pooka Date: Tue Mar 2 19:34:49 UTC 2010 Modified Files: src/sys/ufs/lfs: lfs_vfsops.c Log Message: load lfs syscalls in modload To generate a diff of this commit: cvs rdiff -u -r1.285 -r1.286 src/sys/ufs/lfs/lfs_vfsops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/ufs/lfs
Module Name:src Committed By: pooka Date: Tue Mar 2 19:34:49 UTC 2010 Modified Files: src/sys/ufs/lfs: lfs_vfsops.c Log Message: load lfs syscalls in modload To generate a diff of this commit: cvs rdiff -u -r1.285 -r1.286 src/sys/ufs/lfs/lfs_vfsops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/ufs/lfs/lfs_vfsops.c diff -u src/sys/ufs/lfs/lfs_vfsops.c:1.285 src/sys/ufs/lfs/lfs_vfsops.c:1.286 --- src/sys/ufs/lfs/lfs_vfsops.c:1.285 Tue Mar 2 19:30:34 2010 +++ src/sys/ufs/lfs/lfs_vfsops.c Tue Mar 2 19:34:49 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: lfs_vfsops.c,v 1.285 2010/03/02 19:30:34 pooka Exp $ */ +/* $NetBSD: lfs_vfsops.c,v 1.286 2010/03/02 19:34:49 pooka Exp $ */ /*- * Copyright (c) 1999, 2000, 2001, 2002, 2003, 2007, 2007 @@ -61,7 +61,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: lfs_vfsops.c,v 1.285 2010/03/02 19:30:34 pooka Exp $); +__KERNEL_RCSID(0, $NetBSD: lfs_vfsops.c,v 1.286 2010/03/02 19:34:49 pooka Exp $); #if defined(_KERNEL_OPT) #include opt_lfs.h @@ -92,6 +92,9 @@ #include sys/conf.h #include sys/kauth.h #include sys/module.h +#include sys/syscallvar.h +#include sys/syscall.h +#include sys/syscallargs.h #include miscfs/specfs/specdev.h @@ -340,6 +343,14 @@ #endif } +/* old cleaner syscall interface. see VOP_FCNTL() */ +static const struct syscall_package lfs_syscalls[] = { + { SYS_lfs_bmapv, 0, (sy_call_t *)sys_lfs_bmapv }, + { SYS_lfs_markv, 0, (sy_call_t *)sys_lfs_markv }, + { SYS_lfs_segclean, 0, (sy_call_t *)sys___lfs_segwait50 }, + { 0, 0, NULL }, +}; + static int lfs_modcmd(modcmd_t cmd, void *arg) { @@ -347,15 +358,21 @@ switch (cmd) { case MODULE_CMD_INIT: + error = syscall_establish(NULL, lfs_syscalls); + if (error) + return error; error = vfs_attach(lfs_vfsops); - if (error != 0) + if (error != 0) { + syscall_disestablish(NULL, lfs_syscalls); break; + } lfs_sysctl_setup(lfs_sysctl_log); break; case MODULE_CMD_FINI: error = vfs_detach(lfs_vfsops); if (error != 0) break; + syscall_disestablish(NULL, lfs_syscalls); sysctl_teardown(lfs_sysctl_log); break; default:
CVS commit: src/sys
Module Name:src Committed By: pooka Date: Tue Mar 2 19:37:03 UTC 2010 Modified Files: src/sys/kern: init_sysent.c syscalls.c src/sys/sys: syscall.h syscallargs.h Log Message: regen: lfs megamaid syscalls - MODULAR To generate a diff of this commit: cvs rdiff -u -r1.244 -r1.245 src/sys/kern/init_sysent.c cvs rdiff -u -r1.235 -r1.236 src/sys/kern/syscalls.c cvs rdiff -u -r1.231 -r1.232 src/sys/sys/syscall.h cvs rdiff -u -r1.213 -r1.214 src/sys/sys/syscallargs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys
Module Name:src Committed By: pooka Date: Tue Mar 2 19:37:03 UTC 2010 Modified Files: src/sys/kern: init_sysent.c syscalls.c src/sys/sys: syscall.h syscallargs.h Log Message: regen: lfs megamaid syscalls - MODULAR To generate a diff of this commit: cvs rdiff -u -r1.244 -r1.245 src/sys/kern/init_sysent.c cvs rdiff -u -r1.235 -r1.236 src/sys/kern/syscalls.c cvs rdiff -u -r1.231 -r1.232 src/sys/sys/syscall.h cvs rdiff -u -r1.213 -r1.214 src/sys/sys/syscallargs.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/kern/init_sysent.c diff -u src/sys/kern/init_sysent.c:1.244 src/sys/kern/init_sysent.c:1.245 --- src/sys/kern/init_sysent.c:1.244 Tue Jan 5 15:25:33 2010 +++ src/sys/kern/init_sysent.c Tue Mar 2 19:37:02 2010 @@ -1,19 +1,18 @@ -/* $NetBSD: init_sysent.c,v 1.244 2010/01/05 15:25:33 skrll Exp $ */ +/* $NetBSD: init_sysent.c,v 1.245 2010/03/02 19:37:02 pooka Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.231 2009/11/26 17:20:20 pooka Exp + * created from NetBSD: syscalls.master,v 1.232 2010/03/02 19:34:26 pooka Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: init_sysent.c,v 1.244 2010/01/05 15:25:33 skrll Exp $); +__KERNEL_RCSID(0, $NetBSD: init_sysent.c,v 1.245 2010/03/02 19:37:02 pooka Exp $); #include opt_modular.h #include opt_ntp.h #include opt_sysv.h -#include fs_lfs.h #include sys/param.h #include sys/systm.h #include sys/signal.h @@ -492,25 +491,14 @@ (sy_call_t *)sys_setegid }, /* 182 = setegid */ { ns(struct sys_seteuid_args), 0, (sy_call_t *)sys_seteuid }, /* 183 = seteuid */ -#if defined(LFS) || !defined(_KERNEL) { ns(struct sys_lfs_bmapv_args), 0, - (sy_call_t *)sys_lfs_bmapv }, /* 184 = lfs_bmapv */ + (sy_call_t *)sys_nomodule }, /* 184 = lfs_bmapv */ { ns(struct sys_lfs_markv_args), 0, - (sy_call_t *)sys_lfs_markv }, /* 185 = lfs_markv */ + (sy_call_t *)sys_nomodule }, /* 185 = lfs_markv */ { ns(struct sys_lfs_segclean_args), 0, - (sy_call_t *)sys_lfs_segclean }, /* 186 = lfs_segclean */ + (sy_call_t *)sys_nomodule }, /* 186 = lfs_segclean */ { ns(struct compat_50_sys_lfs_segwait_args), 0, (sy_call_t *)sys_nomodule }, /* 187 = compat_50_lfs_segwait */ -#else - { 0, 0, 0, - sys_nosys }, /* 184 = excluded lfs_bmapv */ - { 0, 0, 0, - sys_nosys }, /* 185 = excluded lfs_markv */ - { 0, 0, 0, - sys_nosys }, /* 186 = excluded lfs_segclean */ - { 0, 0, 0, - sys_nosys }, /* 187 = excluded lfs_segwait */ -#endif { ns(struct compat_12_sys_stat_args), 0, (sy_call_t *)sys_nomodule }, /* 188 = compat_12_stat12 */ { ns(struct compat_12_sys_fstat_args), 0, @@ -1027,13 +1015,8 @@ (sy_call_t *)sys___utimes50 }, /* 420 = __utimes50 */ { ns(struct sys___adjtime50_args), 0, (sy_call_t *)sys___adjtime50 }, /* 421 = __adjtime50 */ -#if defined(LFS) || !defined(_KERNEL) { ns(struct sys___lfs_segwait50_args), 0, - (sy_call_t *)sys___lfs_segwait50 }, /* 422 = __lfs_segwait50 */ -#else - { 0, 0, 0, - sys_nosys }, /* 422 = excluded __lfs_segwait50 */ -#endif + (sy_call_t *)sys_nomodule }, /* 422 = __lfs_segwait50 */ { ns(struct sys___futimes50_args), 0, (sy_call_t *)sys___futimes50 }, /* 423 = __futimes50 */ { ns(struct sys___lutimes50_args), 0, Index: src/sys/kern/syscalls.c diff -u src/sys/kern/syscalls.c:1.235 src/sys/kern/syscalls.c:1.236 --- src/sys/kern/syscalls.c:1.235 Tue Jan 5 15:25:33 2010 +++ src/sys/kern/syscalls.c Tue Mar 2 19:37:02 2010 @@ -1,20 +1,19 @@ -/* $NetBSD: syscalls.c,v 1.235 2010/01/05 15:25:33 skrll Exp $ */ +/* $NetBSD: syscalls.c,v 1.236 2010/03/02 19:37:02 pooka Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.231 2009/11/26 17:20:20 pooka Exp + * created from NetBSD: syscalls.master,v 1.232 2010/03/02 19:34:26 pooka Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: syscalls.c,v 1.235 2010/01/05 15:25:33 skrll Exp $); +__KERNEL_RCSID(0, $NetBSD: syscalls.c,v 1.236 2010/03/02 19:37:02 pooka Exp $); #if defined(_KERNEL_OPT) #include opt_modular.h #include opt_ntp.h #include opt_sysv.h -#include fs_lfs.h #include sys/param.h #include sys/systm.h #include sys/signal.h @@ -224,17 +223,10 @@ /* 181 */ setgid, /* 182 */ setegid, /* 183 */ seteuid, -#if defined(LFS) || !defined(_KERNEL) /* 184 */ lfs_bmapv, /* 185 */ lfs_markv, /* 186 */ lfs_segclean, /* 187 */ compat_50_lfs_segwait, -#else - /* 184 */ #184 (excluded lfs_bmapv), - /* 185 */ #185 (excluded lfs_markv), - /* 186 */ #186 (excluded lfs_segclean), - /* 187 */ #187 (excluded lfs_segwait), -#endif /* 188 */ compat_12_stat12, /* 189 */ compat_12_fstat12, /* 190 */ compat_12_lstat12, @@ -502,11 +494,7 @@ /* 419 */
CVS commit: src/sys/ufs
Module Name:src Committed By: pooka Date: Tue Mar 2 19:59:09 UTC 2010 Modified Files: src/sys/ufs: files.ufs Log Message: fs_lfs.h is no longer necessary To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/sys/ufs/files.ufs Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/sets/lists/comp
Module Name:src Committed By: darran Date: Tue Mar 2 20:04:17 UTC 2010 Modified Files: src/distrib/sets/lists/comp: mi Log Message: DTrace: Add the sdt.h header to the set lists. To generate a diff of this commit: cvs rdiff -u -r1.1400 -r1.1401 src/distrib/sets/lists/comp/mi Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/sets/lists/comp/mi diff -u src/distrib/sets/lists/comp/mi:1.1400 src/distrib/sets/lists/comp/mi:1.1401 --- src/distrib/sets/lists/comp/mi:1.1400 Mon Mar 1 19:12:49 2010 +++ src/distrib/sets/lists/comp/mi Tue Mar 2 20:04:16 2010 @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.1400 2010/03/01 19:12:49 jruoho Exp $ +# $NetBSD: mi,v 1.1401 2010/03/02 20:04:16 darran Exp $ # # Note: don't delete entries from here - mark them as obsolete instead. # @@ -2084,6 +2084,7 @@ ./usr/include/sys/scanio.h comp-c-include ./usr/include/sys/sched.h comp-c-include ./usr/include/sys/scsiio.h comp-c-include +./usr/include/sys/sdt.hcomp-c-include ./usr/include/sys/select.h comp-c-include ./usr/include/sys/selinfo.h comp-c-include ./usr/include/sys/sem.hcomp-c-include
CVS commit: src/distrib/sets/lists/comp
Module Name:src Committed By: darran Date: Tue Mar 2 20:04:17 UTC 2010 Modified Files: src/distrib/sets/lists/comp: mi Log Message: DTrace: Add the sdt.h header to the set lists. To generate a diff of this commit: cvs rdiff -u -r1.1400 -r1.1401 src/distrib/sets/lists/comp/mi Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/cardbus
Module Name:src Committed By: dyoung Date: Tue Mar 2 20:31:14 UTC 2010 Modified Files: src/sys/dev/cardbus: if_ath_cardbus.c if_atw_cardbus.c Log Message: Simplify interrupt (dis)establishment by two source transformations: - cardbus_intr_disestablish(cc, cf, ih); + Cardbus_intr_disestablish(ct, ih); - ih = cardbus_intr_establish(cc, cf, ...); + ih = Cardbus_intr_establish(ct, ...); Tested with ath atw units on a Soekris net4521. To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/sys/dev/cardbus/if_ath_cardbus.c cvs rdiff -u -r1.32 -r1.33 src/sys/dev/cardbus/if_atw_cardbus.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/dev/cardbus
Module Name:src Committed By: dyoung Date: Tue Mar 2 20:31:14 UTC 2010 Modified Files: src/sys/dev/cardbus: if_ath_cardbus.c if_atw_cardbus.c Log Message: Simplify interrupt (dis)establishment by two source transformations: - cardbus_intr_disestablish(cc, cf, ih); + Cardbus_intr_disestablish(ct, ih); - ih = cardbus_intr_establish(cc, cf, ...); + ih = Cardbus_intr_establish(ct, ...); Tested with ath atw units on a Soekris net4521. To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/sys/dev/cardbus/if_ath_cardbus.c cvs rdiff -u -r1.32 -r1.33 src/sys/dev/cardbus/if_atw_cardbus.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/cardbus/if_ath_cardbus.c diff -u src/sys/dev/cardbus/if_ath_cardbus.c:1.40 src/sys/dev/cardbus/if_ath_cardbus.c:1.41 --- src/sys/dev/cardbus/if_ath_cardbus.c:1.40 Thu Feb 25 23:40:39 2010 +++ src/sys/dev/cardbus/if_ath_cardbus.c Tue Mar 2 20:31:14 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: if_ath_cardbus.c,v 1.40 2010/02/25 23:40:39 dyoung Exp $ */ +/* $NetBSD: if_ath_cardbus.c,v 1.41 2010/03/02 20:31:14 dyoung Exp $ */ /* * Copyright (c) 2003 * Ichiro FUKUHARA ich...@ichiro.org. @@ -30,7 +30,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: if_ath_cardbus.c,v 1.40 2010/02/25 23:40:39 dyoung Exp $); +__KERNEL_RCSID(0, $NetBSD: if_ath_cardbus.c,v 1.41 2010/03/02 20:31:14 dyoung Exp $); #include opt_inet.h @@ -115,8 +115,7 @@ ath_suspend(csc-sc_ath); if (csc-sc_ih != NULL) { - cardbus_intr_disestablish(csc-sc_ct-ct_cc, csc-sc_ct-ct_cf, - csc-sc_ih); + Cardbus_intr_disestablish(csc-sc_ct, csc-sc_ih); csc-sc_ih = NULL; } return true; @@ -127,8 +126,8 @@ { struct ath_cardbus_softc *csc = device_private(self); - csc-sc_ih = cardbus_intr_establish(csc-sc_ct-ct_cc, - csc-sc_ct-ct_cf, csc-sc_intrline, IPL_NET, ath_intr, + csc-sc_ih = Cardbus_intr_establish(csc-sc_ct, + csc-sc_intrline, IPL_NET, ath_intr, csc-sc_ath); if (csc-sc_ih == NULL) { @@ -235,7 +234,7 @@ * Unhook the interrupt handler. */ if (csc-sc_ih != NULL) { - cardbus_intr_disestablish(ct-ct_cc, ct-ct_cf, csc-sc_ih); + Cardbus_intr_disestablish(ct, csc-sc_ih); csc-sc_ih = NULL; } Index: src/sys/dev/cardbus/if_atw_cardbus.c diff -u src/sys/dev/cardbus/if_atw_cardbus.c:1.32 src/sys/dev/cardbus/if_atw_cardbus.c:1.33 --- src/sys/dev/cardbus/if_atw_cardbus.c:1.32 Thu Feb 25 23:40:39 2010 +++ src/sys/dev/cardbus/if_atw_cardbus.c Tue Mar 2 20:31:14 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: if_atw_cardbus.c,v 1.32 2010/02/25 23:40:39 dyoung Exp $ */ +/* $NetBSD: if_atw_cardbus.c,v 1.33 2010/03/02 20:31:14 dyoung Exp $ */ /*- * Copyright (c) 1999, 2000, 2003 The NetBSD Foundation, Inc. @@ -36,7 +36,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: if_atw_cardbus.c,v 1.32 2010/02/25 23:40:39 dyoung Exp $); +__KERNEL_RCSID(0, $NetBSD: if_atw_cardbus.c,v 1.33 2010/03/02 20:31:14 dyoung Exp $); #include opt_inet.h @@ -308,7 +308,7 @@ * Unhook the interrupt handler. */ if (csc-sc_ih != NULL) - cardbus_intr_disestablish(ct-ct_cc, ct-ct_cf, csc-sc_ih); + Cardbus_intr_disestablish(ct, csc-sc_ih); /* * Release bus space and close window. @@ -326,13 +326,11 @@ struct atw_cardbus_softc *csc = device_private(self); struct atw_softc *sc = csc-sc_atw; cardbus_devfunc_t ct = csc-sc_ct; - cardbus_chipset_tag_t cc = ct-ct_cc; - cardbus_function_tag_t cf = ct-ct_cf; /* * Map and establish the interrupt. */ - csc-sc_ih = cardbus_intr_establish(cc, cf, csc-sc_intrline, IPL_NET, + csc-sc_ih = Cardbus_intr_establish(ct, csc-sc_intrline, IPL_NET, atw_intr, sc); if (csc-sc_ih == NULL) { aprint_error_dev(sc-sc_dev, unable to establish interrupt\n); @@ -347,11 +345,9 @@ { struct atw_cardbus_softc *csc = device_private(self); cardbus_devfunc_t ct = csc-sc_ct; - cardbus_chipset_tag_t cc = ct-ct_cc; - cardbus_function_tag_t cf = ct-ct_cf; /* Unhook the interrupt handler. */ - cardbus_intr_disestablish(cc, cf, csc-sc_ih); + Cardbus_intr_disestablish(ct, csc-sc_ih); csc-sc_ih = NULL; return atw_suspend(self, qual);
CVS commit: src/sys/arch/hppa
Module Name:src Committed By: skrll Date: Tue Mar 2 20:40:16 UTC 2010 Modified Files: src/sys/arch/hppa/conf: files.hppa src/sys/arch/hppa/include: db_machdep.h Added Files: src/sys/arch/hppa/hppa: db_machdep.c Log Message: Add a mach frame command to hppa ddb. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/arch/hppa/conf/files.hppa cvs rdiff -u -r0 -r1.1 src/sys/arch/hppa/hppa/db_machdep.c cvs rdiff -u -r1.8 -r1.9 src/sys/arch/hppa/include/db_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/hppa
Module Name:src Committed By: skrll Date: Tue Mar 2 20:40:16 UTC 2010 Modified Files: src/sys/arch/hppa/conf: files.hppa src/sys/arch/hppa/include: db_machdep.h Added Files: src/sys/arch/hppa/hppa: db_machdep.c Log Message: Add a mach frame command to hppa ddb. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/arch/hppa/conf/files.hppa cvs rdiff -u -r0 -r1.1 src/sys/arch/hppa/hppa/db_machdep.c cvs rdiff -u -r1.8 -r1.9 src/sys/arch/hppa/include/db_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/hppa/conf/files.hppa diff -u src/sys/arch/hppa/conf/files.hppa:1.15 src/sys/arch/hppa/conf/files.hppa:1.16 --- src/sys/arch/hppa/conf/files.hppa:1.15 Wed Nov 19 18:35:58 2008 +++ src/sys/arch/hppa/conf/files.hppa Tue Mar 2 20:40:15 2010 @@ -1,4 +1,4 @@ -# $NetBSD: files.hppa,v 1.15 2008/11/19 18:35:58 ad Exp $ +# $NetBSD: files.hppa,v 1.16 2010/03/02 20:40:15 skrll Exp $ # # $OpenBSD: files.hppa,v 1.31 2001/06/26 02:41:25 mickey Exp $ # @@ -14,6 +14,7 @@ file arch/hppa/hppa/db_disasm.c ddb file arch/hppa/hppa/db_memrw.c ddb | kgdb file arch/hppa/hppa/db_trace.c ddb +file arch/hppa/hppa/db_machdep.c ddb file arch/hppa/hppa/fpu.c file arch/hppa/hppa/kgdb_hppa.c kgdb file arch/hppa/hppa/kobj_machdep.c modular Index: src/sys/arch/hppa/include/db_machdep.h diff -u src/sys/arch/hppa/include/db_machdep.h:1.8 src/sys/arch/hppa/include/db_machdep.h:1.9 --- src/sys/arch/hppa/include/db_machdep.h:1.8 Tue Nov 3 05:07:26 2009 +++ src/sys/arch/hppa/include/db_machdep.h Tue Mar 2 20:40:16 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: db_machdep.h,v 1.8 2009/11/03 05:07:26 snj Exp $ */ +/* $NetBSD: db_machdep.h,v 1.9 2010/03/02 20:40:16 skrll Exp $ */ /* $OpenBSD: db_machdep.h,v 1.5 2001/02/16 19:20:13 mickey Exp $ */ @@ -44,6 +44,9 @@ extern db_regs_t ddb_regs; #define DDB_REGS (ddb_regs) +/* DDB commands not in db_interface.c */ +void db_dump_trap(db_expr_t, bool, db_expr_t, const char *); + /* * Things needed by kgdb: */ @@ -112,6 +115,8 @@ #define db_clear_single_step(r) ((r)-tf_ipsw = ~PSW_R) #define db_set_single_step(r) ((r)-tf_ipsw |= PSW_R) +#define DB_MACHINE_COMMANDS + int db_valid_breakpoint(db_addr_t); int kdb_trap(int, int, db_regs_t *); Added files: Index: src/sys/arch/hppa/hppa/db_machdep.c diff -u /dev/null src/sys/arch/hppa/hppa/db_machdep.c:1.1 --- /dev/null Tue Mar 2 20:40:16 2010 +++ src/sys/arch/hppa/hppa/db_machdep.c Tue Mar 2 20:40:15 2010 @@ -0,0 +1,126 @@ +/* $NetBSD: db_machdep.c,v 1.1 2010/03/02 20:40:15 skrll Exp $ */ + +/*- + * Copyright (c) 2010 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Nick Hudson + * + * 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. + */ + +#include sys/cdefs.h +__KERNEL_RCSID(0, $NetBSD: db_machdep.c,v 1.1 2010/03/02 20:40:15 skrll Exp $); + +#include sys/param.h +#include machine/db_machdep.h + +#include ddb/db_command.h +#include ddb/db_output.h + +const struct db_command db_machine_command_table[] = { + { DDB_ADD_CMD(frame, db_dump_trap, 0, + Displays the contents of a trapframe, + [/u] [addr], + addr:\tdisplay this trap frame (current kernel frame otherwise)\n + /u:\tdisplay the current userland trap frame) }, + { DDB_ADD_CMD(NULL, NULL, 0, NULL, NULL, NULL) } +}; + +void +db_dump_trap(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif) +{ + struct trapframe *tf; + const char *cp = modif; + bool lwpaddr = false; + char c; + + tf = DDB_REGS; + while ((c = *cp++) != 0) { + if (c == 'l') +
CVS commit: src/tools
Module Name:src Committed By: darran Date: Tue Mar 2 20:47:01 UTC 2010 Modified Files: src/tools: Makefile Log Message: DTrace: add libelf, libdwarf, libctf, and CTF tools to the toolchain, built when MKDTRACE=yes. To generate a diff of this commit: cvs rdiff -u -r1.136 -r1.137 src/tools/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: darran Date: Tue Mar 2 20:49:18 UTC 2010 Modified Files: src/share/mk: bsd.lib.mk bsd.own.mk bsd.prog.mk bsd.sys.mk sys.mk Log Message: DTrace: Add CTF generation to the make framework. Only enabled when MKDTRACE=yes. To generate a diff of this commit: cvs rdiff -u -r1.304 -r1.305 src/share/mk/bsd.lib.mk cvs rdiff -u -r1.619 -r1.620 src/share/mk/bsd.own.mk cvs rdiff -u -r1.246 -r1.247 src/share/mk/bsd.prog.mk cvs rdiff -u -r1.189 -r1.190 src/share/mk/bsd.sys.mk cvs rdiff -u -r1.99 -r1.100 src/share/mk/sys.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.lib.mk diff -u src/share/mk/bsd.lib.mk:1.304 src/share/mk/bsd.lib.mk:1.305 --- src/share/mk/bsd.lib.mk:1.304 Mon Feb 22 12:33:22 2010 +++ src/share/mk/bsd.lib.mk Tue Mar 2 20:49:18 2010 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.lib.mk,v 1.304 2010/02/22 12:33:22 njoly Exp $ +# $NetBSD: bsd.lib.mk,v 1.305 2010/03/02 20:49:18 darran Exp $ # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 .include bsd.init.mk @@ -216,9 +216,18 @@ AFLAGS+= ${COPTS} FFLAGS+= ${FOPTS} +.if defined(CTFCONVERT) +.if defined(CFLAGS) !empty(CFLAGS:M*-g*) +CTFFLAGS+= -g +.endif +.endif + .c.o: ${_MKTARGET_COMPILE} ${COMPILE.c} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET} +.if defined(CTFCONVERT) + ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} +.endif .if !defined(CFLAGS) || empty(CFLAGS:M*-g*) ${OBJCOPY} -x ${.TARGET} .endif @@ -226,6 +235,9 @@ .c.po: ${_MKTARGET_COMPILE} ${COMPILE.c} ${PROFFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} -pg ${.IMPSRC} -o ${.TARGET} +.if defined(CTFCONVERT) + ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} +.endif .if !defined(CFLAGS) || empty(CFLAGS:M*-g*) ${OBJCOPY} -X ${.TARGET} .endif @@ -269,6 +281,9 @@ .f.o: ${_MKTARGET_COMPILE} ${COMPILE.f} ${.IMPSRC} -o ${.TARGET} +.if defined(CTFCONVERT) + ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} +.endif .if !defined(FOPTS) || empty(FOPTS:M*-g*) ${OBJCOPY} -x ${.TARGET} .endif @@ -276,6 +291,9 @@ .f.po: ${_MKTARGET_COMPILE} ${COMPILE.f} ${PROFFLAGS} -pg ${.IMPSRC} -o ${.TARGET} +.if defined(CTFCONVERT) + ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} +.endif .if !defined(FOPTS) || empty(FOPTS:M*-g*) ${OBJCOPY} -X ${.TARGET} .endif @@ -298,6 +316,9 @@ .m.o: ${_MKTARGET_COMPILE} ${COMPILE.m} ${OBJCOPTS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET} +.if defined(CTFCONVERT) + ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} +.endif .if !defined(OBJCFLAGS) || empty(OBJCFLAGS:M*-g*) ${OBJCOPY} -x ${.TARGET} .endif @@ -305,6 +326,9 @@ .m.po: ${_MKTARGET_COMPILE} ${COMPILE.m} ${PROFFLAGS} -pg ${OBJCOPTS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET} +.if defined(CTFCONVERT) + ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} +.endif .if !defined(OBJCFLAGS) || empty(OBJCFLAGS:M*-g*) ${OBJCOPY} -X ${.TARGET} .endif @@ -326,21 +350,33 @@ .s.o: ${_MKTARGET_COMPILE} ${COMPILE.s} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET} +.if defined(CTFCONVERT) + ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} +.endif ${OBJCOPY} -x ${.TARGET} .S.o: ${_MKTARGET_COMPILE} ${COMPILE.S} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET} +.if defined(CTFCONVERT) + ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} +.endif ${OBJCOPY} -x ${.TARGET} .s.po: ${_MKTARGET_COMPILE} ${COMPILE.s} ${PROFFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET} +.if defined(CTFCONVERT) + ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} +.endif ${OBJCOPY} -X ${.TARGET} .S.po: ${_MKTARGET_COMPILE} ${COMPILE.S} ${PROFFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -o ${.TARGET} +.if defined(CTFCONVERT) + ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} +.endif ${OBJCOPY} -X ${.TARGET} .s.go: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.619 src/share/mk/bsd.own.mk:1.620 --- src/share/mk/bsd.own.mk:1.619 Sat Feb 27 22:42:54 2010 +++ src/share/mk/bsd.own.mk Tue Mar 2 20:49:18 2010 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.619 2010/02/27 22:42:54 haad Exp $ +# $NetBSD: bsd.own.mk,v 1.620 2010/03/02 20:49:18 darran Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -236,6 +236,8 @@ TOOL_CONFIG= ${TOOLDIR}/bin/${_TOOL_PREFIX}config TOOL_CRUNCHGEN= MAKE=${.MAKE:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}crunchgen TOOL_CTAGS= ${TOOLDIR}/bin/${_TOOL_PREFIX}ctags +TOOL_CTFCONVERT= ${TOOLDIR}/bin/${_TOOL_PREFIX}ctfconvert +TOOL_CTFMERGE= ${TOOLDIR}/bin/${_TOOL_PREFIX}ctfmerge TOOL_DB= ${TOOLDIR}/bin/${_TOOL_PREFIX}db TOOL_DISKLABEL= ${TOOLDIR}/bin/nbdisklabel-${MAKEWRAPPERMACHINE} TOOL_EQN= ${TOOLDIR}/bin/${_TOOL_PREFIX}eqn @@ -311,6 +313,8 @@ TOOL_CONFIG= config TOOL_CRUNCHGEN= crunchgen TOOL_CTAGS= ctags
CVS commit: src/share/man/man4
Module Name:src Committed By: skrll Date: Tue Mar 2 20:49:20 UTC 2010 Modified Files: src/share/man/man4: ddb.4 Log Message: Document new hp700 'frame' command. To generate a diff of this commit: cvs rdiff -u -r1.136 -r1.137 src/share/man/man4/ddb.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat
Module Name:src Committed By: pooka Date: Tue Mar 2 21:07:22 UTC 2010 Modified Files: src/sys/compat/aoutm68k: syscalls.master src/sys/compat/darwin: syscalls.master src/sys/compat/freebsd: syscalls.master src/sys/compat/netbsd32: syscalls.master src/sys/compat/sunos32: syscalls.master src/sys/compat/ultrix: syscalls.master Log Message: Kill fs_nfs.h and #ifdef NFS by making getfh() support unconditional and nfssvc unsupport unconditional. nfs server was just a fancy NOP anyway for all except Ultrix. I know I'm boring but I couldn't imagine why someone would want to run an Ultrix nfs server (and I also doubt that it would work anymore with all the changes to fs exporting etc). To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/sys/compat/aoutm68k/syscalls.master cvs rdiff -u -r1.39 -r1.40 src/sys/compat/darwin/syscalls.master cvs rdiff -u -r1.63 -r1.64 src/sys/compat/freebsd/syscalls.master cvs rdiff -u -r1.83 -r1.84 src/sys/compat/netbsd32/syscalls.master cvs rdiff -u -r1.20 -r1.21 src/sys/compat/sunos32/syscalls.master cvs rdiff -u -r1.50 -r1.51 src/sys/compat/ultrix/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/aoutm68k/syscalls.master diff -u src/sys/compat/aoutm68k/syscalls.master:1.35 src/sys/compat/aoutm68k/syscalls.master:1.36 --- src/sys/compat/aoutm68k/syscalls.master:1.35 Tue Mar 2 16:08:15 2010 +++ src/sys/compat/aoutm68k/syscalls.master Tue Mar 2 21:07:21 2010 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.35 2010/03/02 16:08:15 pooka Exp $ + $NetBSD: syscalls.master,v 1.36 2010/03/02 21:07:21 pooka Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -41,8 +41,6 @@ #include opt_compat_netbsd.h #include opt_sysv.h #include opt_compat_43.h - -#include fs_nfs.h #endif #include sys/param.h @@ -423,11 +421,7 @@ 152 UNIMPL 153 UNIMPL 154 UNIMPL -#if defined(NFSSERVER) || !defined(_KERNEL) -155 NOARGS { int|sys||nfssvc(int flag, void *argp); } -#else 155 EXCL nfssvc -#endif #if defined(COMPAT_43) || !defined(_KERNEL) 156 NOARGS { int|compat_43_sys||getdirentries(int fd, char *buf, \ u_int count, long *basep); } ogetdirentries Index: src/sys/compat/darwin/syscalls.master diff -u src/sys/compat/darwin/syscalls.master:1.39 src/sys/compat/darwin/syscalls.master:1.40 --- src/sys/compat/darwin/syscalls.master:1.39 Tue Mar 2 16:00:03 2010 +++ src/sys/compat/darwin/syscalls.master Tue Mar 2 21:07:21 2010 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.39 2010/03/02 16:00:03 pooka Exp $ + $NetBSD: syscalls.master,v 1.40 2010/03/02 21:07:21 pooka Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -41,8 +41,6 @@ #include opt_sysv.h #include opt_compat_43.h -#include fs_nfs.h - #include sys/param.h #include sys/systm.h #include sys/signal.h @@ -317,11 +315,7 @@ 152 UNIMPL setprivexec 153 UNIMPL pread 154 UNIMPL pwrite -#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL) -155 NOARGS { int|sys||nfssvc(int flag, void *argp); } -#else 155 EXCL nfssvc -#endif 156 NOARGS { int|compat_43_sys||getdirentries(int fd, char *buf, \ u_int count, long *basep); } ogetdirentries 157 STD { int|darwin_sys||statfs(const char *path, \ Index: src/sys/compat/freebsd/syscalls.master diff -u src/sys/compat/freebsd/syscalls.master:1.63 src/sys/compat/freebsd/syscalls.master:1.64 --- src/sys/compat/freebsd/syscalls.master:1.63 Tue Mar 2 16:00:03 2010 +++ src/sys/compat/freebsd/syscalls.master Tue Mar 2 21:07:21 2010 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.63 2010/03/02 16:00:03 pooka Exp $ + $NetBSD: syscalls.master,v 1.64 2010/03/02 21:07:21 pooka Exp $ ; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -301,12 +301,8 @@ struct statfs12 *buf); } 159 UNIMPL 160 UNIMPL -#ifdef NFS 161 NOARGS { int|compat_30_sys||getfh(const char *fname, \ struct compat_30_fhandle *fhp); } -#else -161 UNIMPL getfh -#endif 162 NOARGS { int|compat_09_sys||getdomainname(char *domainname, \ int len); } 163 NOARGS { int|compat_09_sys||setdomainname(char *domainname, \ Index: src/sys/compat/netbsd32/syscalls.master diff -u src/sys/compat/netbsd32/syscalls.master:1.83 src/sys/compat/netbsd32/syscalls.master:1.84 --- src/sys/compat/netbsd32/syscalls.master:1.83 Tue Mar 2 16:02:43 2010 +++ src/sys/compat/netbsd32/syscalls.master Tue Mar 2 21:07:21 2010 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.83 2010/03/02 16:02:43 pooka Exp $ + $NetBSD: syscalls.master,v 1.84 2010/03/02 21:07:21 pooka Exp $ ; from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -42,8 +42,6 @@ #include opt_sysv.h #include opt_compat_43.h #include opt_posix.h - -#include fs_nfs.h #endif #include sys/param.h @@ -320,7 +318,7 @@ 152 UNIMPL 153 UNIMPL 154 UNIMPL -155 STD {
CVS commit: src/sys/compat
Module Name:src Committed By: pooka Date: Tue Mar 2 21:07:22 UTC 2010 Modified Files: src/sys/compat/aoutm68k: syscalls.master src/sys/compat/darwin: syscalls.master src/sys/compat/freebsd: syscalls.master src/sys/compat/netbsd32: syscalls.master src/sys/compat/sunos32: syscalls.master src/sys/compat/ultrix: syscalls.master Log Message: Kill fs_nfs.h and #ifdef NFS by making getfh() support unconditional and nfssvc unsupport unconditional. nfs server was just a fancy NOP anyway for all except Ultrix. I know I'm boring but I couldn't imagine why someone would want to run an Ultrix nfs server (and I also doubt that it would work anymore with all the changes to fs exporting etc). To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/sys/compat/aoutm68k/syscalls.master cvs rdiff -u -r1.39 -r1.40 src/sys/compat/darwin/syscalls.master cvs rdiff -u -r1.63 -r1.64 src/sys/compat/freebsd/syscalls.master cvs rdiff -u -r1.83 -r1.84 src/sys/compat/netbsd32/syscalls.master cvs rdiff -u -r1.20 -r1.21 src/sys/compat/sunos32/syscalls.master cvs rdiff -u -r1.50 -r1.51 src/sys/compat/ultrix/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external
Module Name:src Committed By: darran Date: Tue Mar 2 21:08:36 UTC 2010 Modified Files: src/external/bsd/libelf/dist: _libelf.h src/external/cddl/osnet/dist/lib/libdtrace/common: dtrace.h mkerrtags.sh mknames.sh src/external/cddl/osnet/sys/sys: sysmacros.h types.h Log Message: DTrace: Get DTrace to build on OS X platforms. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/external/bsd/libelf/dist/_libelf.h cvs rdiff -u -r1.3 -r1.4 \ src/external/cddl/osnet/dist/lib/libdtrace/common/dtrace.h cvs rdiff -u -r1.2 -r1.3 \ src/external/cddl/osnet/dist/lib/libdtrace/common/mkerrtags.sh \ src/external/cddl/osnet/dist/lib/libdtrace/common/mknames.sh cvs rdiff -u -r1.3 -r1.4 src/external/cddl/osnet/sys/sys/sysmacros.h cvs rdiff -u -r1.7 -r1.8 src/external/cddl/osnet/sys/sys/types.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external
Module Name:src Committed By: darran Date: Tue Mar 2 21:08:36 UTC 2010 Modified Files: src/external/bsd/libelf/dist: _libelf.h src/external/cddl/osnet/dist/lib/libdtrace/common: dtrace.h mkerrtags.sh mknames.sh src/external/cddl/osnet/sys/sys: sysmacros.h types.h Log Message: DTrace: Get DTrace to build on OS X platforms. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/external/bsd/libelf/dist/_libelf.h cvs rdiff -u -r1.3 -r1.4 \ src/external/cddl/osnet/dist/lib/libdtrace/common/dtrace.h cvs rdiff -u -r1.2 -r1.3 \ src/external/cddl/osnet/dist/lib/libdtrace/common/mkerrtags.sh \ src/external/cddl/osnet/dist/lib/libdtrace/common/mknames.sh cvs rdiff -u -r1.3 -r1.4 src/external/cddl/osnet/sys/sys/sysmacros.h cvs rdiff -u -r1.7 -r1.8 src/external/cddl/osnet/sys/sys/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/external/bsd/libelf/dist/_libelf.h diff -u src/external/bsd/libelf/dist/_libelf.h:1.4 src/external/bsd/libelf/dist/_libelf.h:1.5 --- src/external/bsd/libelf/dist/_libelf.h:1.4 Sun Dec 20 23:23:46 2009 +++ src/external/bsd/libelf/dist/_libelf.h Tue Mar 2 21:08:36 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: _libelf.h,v 1.4 2009/12/20 23:23:46 thorpej Exp $ */ +/* $NetBSD: _libelf.h,v 1.5 2010/03/02 21:08:36 darran Exp $ */ /*- * Copyright (c) 2006 Joseph Koshy @@ -37,6 +37,10 @@ #define NULL ((void *) 0) #endif +#ifndef roundup2 +#define roundup2(x, m) (((x) + (m) - 1) ~((m) - 1)) +#endif + /* * Library-private data structures. */ Index: src/external/cddl/osnet/dist/lib/libdtrace/common/dtrace.h diff -u src/external/cddl/osnet/dist/lib/libdtrace/common/dtrace.h:1.3 src/external/cddl/osnet/dist/lib/libdtrace/common/dtrace.h:1.4 --- src/external/cddl/osnet/dist/lib/libdtrace/common/dtrace.h:1.3 Sun Feb 21 01:46:34 2010 +++ src/external/cddl/osnet/dist/lib/libdtrace/common/dtrace.h Tue Mar 2 21:08:36 2010 @@ -30,7 +30,6 @@ #pragma ident %Z%%M% %I% %E% SMI #include sys/dtrace.h -typedef processorid_t test_processor_id_t; #include stdarg.h #include stdio.h #include gelf.h Index: src/external/cddl/osnet/dist/lib/libdtrace/common/mkerrtags.sh diff -u src/external/cddl/osnet/dist/lib/libdtrace/common/mkerrtags.sh:1.2 src/external/cddl/osnet/dist/lib/libdtrace/common/mkerrtags.sh:1.3 --- src/external/cddl/osnet/dist/lib/libdtrace/common/mkerrtags.sh:1.2 Sun Feb 21 00:49:55 2010 +++ src/external/cddl/osnet/dist/lib/libdtrace/common/mkerrtags.sh Tue Mar 2 21:08:36 2010 @@ -26,7 +26,7 @@ # #ident %Z%%M% %I% %E% SMI -BSDECHO=-e +BSDECHO= echo ${BSDECHO} \ /*\n\ Index: src/external/cddl/osnet/dist/lib/libdtrace/common/mknames.sh diff -u src/external/cddl/osnet/dist/lib/libdtrace/common/mknames.sh:1.2 src/external/cddl/osnet/dist/lib/libdtrace/common/mknames.sh:1.3 --- src/external/cddl/osnet/dist/lib/libdtrace/common/mknames.sh:1.2 Sun Feb 21 00:49:55 2010 +++ src/external/cddl/osnet/dist/lib/libdtrace/common/mknames.sh Tue Mar 2 21:08:36 2010 @@ -26,7 +26,7 @@ # #ident %Z%%M% %I% %E% SMI -BSDECHO=-e +BSDECHO= echo ${BSDECHO} \ /*\n\ @@ -44,7 +44,7 @@ {\n\ switch (subr) { -nawk ' +awk ' /^#define[ ]*DIF_SUBR_/ $2 != DIF_SUBR_MAX { printf(\tcase %s: return (\%s\);\n, $2, tolower(substr($2, 10))); }' Index: src/external/cddl/osnet/sys/sys/sysmacros.h diff -u src/external/cddl/osnet/sys/sys/sysmacros.h:1.3 src/external/cddl/osnet/sys/sys/sysmacros.h:1.4 --- src/external/cddl/osnet/sys/sys/sysmacros.h:1.3 Sun Feb 21 01:46:36 2010 +++ src/external/cddl/osnet/sys/sys/sysmacros.h Tue Mar 2 21:08:36 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: sysmacros.h,v 1.3 2010/02/21 01:46:36 darran Exp $ */ +/* $NetBSD: sysmacros.h,v 1.4 2010/03/02 21:08:36 darran Exp $ */ /* * CDDL HEADER START @@ -44,7 +44,9 @@ /* * Disk blocks (sectors) and bytes. */ +#ifndef dtob #define dtob(DD) ((DD) DEV_BSHIFT) +#endif #define btod(BB) (((BB) + DEV_BSIZE - 1) DEV_BSHIFT) #define btodt(BB) ((BB) DEV_BSHIFT) #define lbtod(BB) (((offset_t)(BB) + DEV_BSIZE - 1) DEV_BSHIFT) @@ -140,16 +142,18 @@ /* major part of a device external from the kernel (same as emajor below) */ +#undef major #define major(x) (major_t)unsigned)(x)) O_BITSMINOR) O_MAXMAJ) /* minor part of a device external from the kernel (same as eminor below) */ - +#undef minor #define minor(x) (minor_t)((x) O_MAXMIN) #endif /* _KERNEL */ /* create old device number */ +#undef makedev #define makedev(x, y) (unsigned short)(((x) O_BITSMINOR) | ((y) O_MAXMIN)) /* make an new device number */ @@ -224,6 +228,7 @@ /* * Macros for counting and rounding. */ +#undef howmany #define howmany(x, y) (((x)+((y)-1))/(y)) #define roundup(x, y) x)+((y)-1))/(y))*(y)) @@ -342,7 +347,7 @@ * because if a field crosses a byte boundary it's not likely to be meaningful * without reassembly in its nonnative endianness. */
CVS commit: src/sys/compat
Module Name:src Committed By: pooka Date: Tue Mar 2 21:09:22 UTC 2010 Modified Files: src/sys/compat/netbsd32: netbsd32_netbsd.c src/sys/compat/osf1: osf1_mount.c src/sys/compat/sunos32: sunos32_misc.c src/sys/compat/ultrix: ultrix_misc.c Log Message: remove nfssvc emulation (or non-emulation) To generate a diff of this commit: cvs rdiff -u -r1.165 -r1.166 src/sys/compat/netbsd32/netbsd32_netbsd.c cvs rdiff -u -r1.46 -r1.47 src/sys/compat/osf1/osf1_mount.c cvs rdiff -u -r1.67 -r1.68 src/sys/compat/sunos32/sunos32_misc.c cvs rdiff -u -r1.118 -r1.119 src/sys/compat/ultrix/ultrix_misc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat
Module Name:src Committed By: pooka Date: Tue Mar 2 21:09:22 UTC 2010 Modified Files: src/sys/compat/netbsd32: netbsd32_netbsd.c src/sys/compat/osf1: osf1_mount.c src/sys/compat/sunos32: sunos32_misc.c src/sys/compat/ultrix: ultrix_misc.c Log Message: remove nfssvc emulation (or non-emulation) To generate a diff of this commit: cvs rdiff -u -r1.165 -r1.166 src/sys/compat/netbsd32/netbsd32_netbsd.c cvs rdiff -u -r1.46 -r1.47 src/sys/compat/osf1/osf1_mount.c cvs rdiff -u -r1.67 -r1.68 src/sys/compat/sunos32/sunos32_misc.c cvs rdiff -u -r1.118 -r1.119 src/sys/compat/ultrix/ultrix_misc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/netbsd32/netbsd32_netbsd.c diff -u src/sys/compat/netbsd32/netbsd32_netbsd.c:1.165 src/sys/compat/netbsd32/netbsd32_netbsd.c:1.166 --- src/sys/compat/netbsd32/netbsd32_netbsd.c:1.165 Tue Mar 2 16:08:15 2010 +++ src/sys/compat/netbsd32/netbsd32_netbsd.c Tue Mar 2 21:09:21 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: netbsd32_netbsd.c,v 1.165 2010/03/02 16:08:15 pooka Exp $ */ +/* $NetBSD: netbsd32_netbsd.c,v 1.166 2010/03/02 21:09:21 pooka Exp $ */ /* * Copyright (c) 1998, 2001, 2008 Matthew R. Green @@ -27,7 +27,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: netbsd32_netbsd.c,v 1.165 2010/03/02 16:08:15 pooka Exp $); +__KERNEL_RCSID(0, $NetBSD: netbsd32_netbsd.c,v 1.166 2010/03/02 21:09:21 pooka Exp $); #if defined(_KERNEL_OPT) #include opt_ddb.h @@ -1204,25 +1204,6 @@ } int -netbsd32_nfssvc(struct lwp *l, const struct netbsd32_nfssvc_args *uap, register_t *retval) -{ -#if 0 - /* { - syscallarg(int) flag; - syscallarg(netbsd32_voidp) argp; - } */ - struct sys_nfssvc_args ua; - - NETBSD32TO64_UAP(flag); - NETBSD32TOP_UAP(argp, void); - return (sys_nfssvc(l, ua, retval)); -#else - /* Why would we want to support a 32-bit nfsd? */ - return (ENOSYS); -#endif -} - -int netbsd32___getfh30(struct lwp *l, const struct netbsd32___getfh30_args *uap, register_t *retval) { /* { Index: src/sys/compat/osf1/osf1_mount.c diff -u src/sys/compat/osf1/osf1_mount.c:1.46 src/sys/compat/osf1/osf1_mount.c:1.47 --- src/sys/compat/osf1/osf1_mount.c:1.46 Mon Jun 29 05:08:16 2009 +++ src/sys/compat/osf1/osf1_mount.c Tue Mar 2 21:09:21 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: osf1_mount.c,v 1.46 2009/06/29 05:08:16 dholland Exp $ */ +/* $NetBSD: osf1_mount.c,v 1.47 2010/03/02 21:09:21 pooka Exp $ */ /* * Copyright (c) 1999 Christopher G. Demetriou. All rights reserved. @@ -58,11 +58,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: osf1_mount.c,v 1.46 2009/06/29 05:08:16 dholland Exp $); - -#if defined(_KERNEL_OPT) -#include fs_nfs.h -#endif +__KERNEL_RCSID(0, $NetBSD: osf1_mount.c,v 1.47 2010/03/02 21:09:21 pooka Exp $); #include sys/param.h #include sys/systm.h Index: src/sys/compat/sunos32/sunos32_misc.c diff -u src/sys/compat/sunos32/sunos32_misc.c:1.67 src/sys/compat/sunos32/sunos32_misc.c:1.68 --- src/sys/compat/sunos32/sunos32_misc.c:1.67 Mon Jun 29 05:08:16 2009 +++ src/sys/compat/sunos32/sunos32_misc.c Tue Mar 2 21:09:21 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: sunos32_misc.c,v 1.67 2009/06/29 05:08:16 dholland Exp $ */ +/* $NetBSD: sunos32_misc.c,v 1.68 2010/03/02 21:09:21 pooka Exp $ */ /* from :NetBSD: sunos_misc.c,v 1.107 2000/12/01 19:25:10 jdolecek Exp */ /* @@ -77,14 +77,13 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: sunos32_misc.c,v 1.67 2009/06/29 05:08:16 dholland Exp $); +__KERNEL_RCSID(0, $NetBSD: sunos32_misc.c,v 1.68 2010/03/02 21:09:21 pooka Exp $); #define COMPAT_SUNOS 1 #if defined(_KERNEL_OPT) #include opt_compat_43.h #include opt_compat_netbsd.h -#include fs_nfs.h #endif #include sys/param.h @@ -528,19 +527,6 @@ 0, dummy); } -#if defined(NFS) -int -async_daemon(struct lwp *l, const void *v, register_t *retval) -{ - struct netbsd32_nfssvc_args ouap; - - SCARG(ouap, flag) = NFSSVC_BIOD; - NETBSD32PTR32(SCARG(ouap, argp), 0); - - return (netbsd32_nfssvc(l, ouap, retval)); -} -#endif /* NFS */ - void native_to_sunos_sigset(const sigset_t *, int *); void sunos_to_native_sigset(const int, sigset_t *); Index: src/sys/compat/ultrix/ultrix_misc.c diff -u src/sys/compat/ultrix/ultrix_misc.c:1.118 src/sys/compat/ultrix/ultrix_misc.c:1.119 --- src/sys/compat/ultrix/ultrix_misc.c:1.118 Sat Jan 17 15:48:06 2009 +++ src/sys/compat/ultrix/ultrix_misc.c Tue Mar 2 21:09:21 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: ultrix_misc.c,v 1.118 2009/01/17 15:48:06 he Exp $ */ +/* $NetBSD: ultrix_misc.c,v 1.119 2010/03/02 21:09:21 pooka Exp $ */ /* * Copyright (c) 1995, 1997 Jonathan Stone (hereinafter referred to as the author) @@ -76,7 +76,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: ultrix_misc.c,v 1.118 2009/01/17 15:48:06 he Exp $); +__KERNEL_RCSID(0, $NetBSD: ultrix_misc.c,v 1.119 2010/03/02 21:09:21 pooka Exp $); #if defined(_KERNEL_OPT)
CVS commit: src/sys/compat
Module Name:src Committed By: pooka Date: Tue Mar 2 21:14:44 UTC 2010 Modified Files: src/sys/compat/aoutm68k: aoutm68k_syscall.h aoutm68k_syscallargs.h aoutm68k_syscalls.c aoutm68k_sysent.c src/sys/compat/darwin: darwin_syscall.h darwin_syscallargs.h darwin_syscalls.c darwin_sysent.c src/sys/compat/freebsd: freebsd_file.c freebsd_syscall.h freebsd_syscallargs.h freebsd_syscalls.c freebsd_sysent.c src/sys/compat/netbsd32: netbsd32_syscall.h netbsd32_syscallargs.h netbsd32_syscalls.c netbsd32_sysent.c src/sys/compat/sunos32: sunos32_syscall.h sunos32_syscallargs.h sunos32_syscalls.c sunos32_sysent.c src/sys/compat/ultrix: ultrix_syscall.h ultrix_syscallargs.h ultrix_syscalls.c ultrix_sysent.c Log Message: regen: - remove nfssvc / fs_nfs.h / #ifdef NFS - make getfh unconditional To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/sys/compat/aoutm68k/aoutm68k_syscall.h cvs rdiff -u -r1.38 -r1.39 src/sys/compat/aoutm68k/aoutm68k_syscallargs.h cvs rdiff -u -r1.37 -r1.38 src/sys/compat/aoutm68k/aoutm68k_syscalls.c cvs rdiff -u -r1.42 -r1.43 src/sys/compat/aoutm68k/aoutm68k_sysent.c cvs rdiff -u -r1.58 -r1.59 src/sys/compat/darwin/darwin_syscall.h \ src/sys/compat/darwin/darwin_syscallargs.h cvs rdiff -u -r1.59 -r1.60 src/sys/compat/darwin/darwin_syscalls.c \ src/sys/compat/darwin/darwin_sysent.c cvs rdiff -u -r1.31 -r1.32 src/sys/compat/freebsd/freebsd_file.c cvs rdiff -u -r1.75 -r1.76 src/sys/compat/freebsd/freebsd_syscall.h \ src/sys/compat/freebsd/freebsd_syscalls.c cvs rdiff -u -r1.78 -r1.79 src/sys/compat/freebsd/freebsd_syscallargs.h cvs rdiff -u -r1.77 -r1.78 src/sys/compat/freebsd/freebsd_sysent.c cvs rdiff -u -r1.91 -r1.92 src/sys/compat/netbsd32/netbsd32_syscall.h \ src/sys/compat/netbsd32/netbsd32_syscallargs.h cvs rdiff -u -r1.90 -r1.91 src/sys/compat/netbsd32/netbsd32_syscalls.c \ src/sys/compat/netbsd32/netbsd32_sysent.c cvs rdiff -u -r1.26 -r1.27 src/sys/compat/sunos32/sunos32_syscall.h cvs rdiff -u -r1.25 -r1.26 src/sys/compat/sunos32/sunos32_syscallargs.h \ src/sys/compat/sunos32/sunos32_syscalls.c cvs rdiff -u -r1.27 -r1.28 src/sys/compat/sunos32/sunos32_sysent.c cvs rdiff -u -r1.61 -r1.62 src/sys/compat/ultrix/ultrix_syscall.h cvs rdiff -u -r1.56 -r1.57 src/sys/compat/ultrix/ultrix_syscallargs.h cvs rdiff -u -r1.60 -r1.61 src/sys/compat/ultrix/ultrix_syscalls.c cvs rdiff -u -r1.63 -r1.64 src/sys/compat/ultrix/ultrix_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/compat
Module Name:src Committed By: pooka Date: Tue Mar 2 21:14:44 UTC 2010 Modified Files: src/sys/compat/aoutm68k: aoutm68k_syscall.h aoutm68k_syscallargs.h aoutm68k_syscalls.c aoutm68k_sysent.c src/sys/compat/darwin: darwin_syscall.h darwin_syscallargs.h darwin_syscalls.c darwin_sysent.c src/sys/compat/freebsd: freebsd_file.c freebsd_syscall.h freebsd_syscallargs.h freebsd_syscalls.c freebsd_sysent.c src/sys/compat/netbsd32: netbsd32_syscall.h netbsd32_syscallargs.h netbsd32_syscalls.c netbsd32_sysent.c src/sys/compat/sunos32: sunos32_syscall.h sunos32_syscallargs.h sunos32_syscalls.c sunos32_sysent.c src/sys/compat/ultrix: ultrix_syscall.h ultrix_syscallargs.h ultrix_syscalls.c ultrix_sysent.c Log Message: regen: - remove nfssvc / fs_nfs.h / #ifdef NFS - make getfh unconditional To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/sys/compat/aoutm68k/aoutm68k_syscall.h cvs rdiff -u -r1.38 -r1.39 src/sys/compat/aoutm68k/aoutm68k_syscallargs.h cvs rdiff -u -r1.37 -r1.38 src/sys/compat/aoutm68k/aoutm68k_syscalls.c cvs rdiff -u -r1.42 -r1.43 src/sys/compat/aoutm68k/aoutm68k_sysent.c cvs rdiff -u -r1.58 -r1.59 src/sys/compat/darwin/darwin_syscall.h \ src/sys/compat/darwin/darwin_syscallargs.h cvs rdiff -u -r1.59 -r1.60 src/sys/compat/darwin/darwin_syscalls.c \ src/sys/compat/darwin/darwin_sysent.c cvs rdiff -u -r1.31 -r1.32 src/sys/compat/freebsd/freebsd_file.c cvs rdiff -u -r1.75 -r1.76 src/sys/compat/freebsd/freebsd_syscall.h \ src/sys/compat/freebsd/freebsd_syscalls.c cvs rdiff -u -r1.78 -r1.79 src/sys/compat/freebsd/freebsd_syscallargs.h cvs rdiff -u -r1.77 -r1.78 src/sys/compat/freebsd/freebsd_sysent.c cvs rdiff -u -r1.91 -r1.92 src/sys/compat/netbsd32/netbsd32_syscall.h \ src/sys/compat/netbsd32/netbsd32_syscallargs.h cvs rdiff -u -r1.90 -r1.91 src/sys/compat/netbsd32/netbsd32_syscalls.c \ src/sys/compat/netbsd32/netbsd32_sysent.c cvs rdiff -u -r1.26 -r1.27 src/sys/compat/sunos32/sunos32_syscall.h cvs rdiff -u -r1.25 -r1.26 src/sys/compat/sunos32/sunos32_syscallargs.h \ src/sys/compat/sunos32/sunos32_syscalls.c cvs rdiff -u -r1.27 -r1.28 src/sys/compat/sunos32/sunos32_sysent.c cvs rdiff -u -r1.61 -r1.62 src/sys/compat/ultrix/ultrix_syscall.h cvs rdiff -u -r1.56 -r1.57 src/sys/compat/ultrix/ultrix_syscallargs.h cvs rdiff -u -r1.60 -r1.61 src/sys/compat/ultrix/ultrix_syscalls.c cvs rdiff -u -r1.63 -r1.64 src/sys/compat/ultrix/ultrix_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/aoutm68k/aoutm68k_syscall.h diff -u src/sys/compat/aoutm68k/aoutm68k_syscall.h:1.40 src/sys/compat/aoutm68k/aoutm68k_syscall.h:1.41 --- src/sys/compat/aoutm68k/aoutm68k_syscall.h:1.40 Tue Mar 2 16:09:10 2010 +++ src/sys/compat/aoutm68k/aoutm68k_syscall.h Tue Mar 2 21:14:43 2010 @@ -1,10 +1,10 @@ -/* $NetBSD: aoutm68k_syscall.h,v 1.40 2010/03/02 16:09:10 pooka Exp $ */ +/* $NetBSD: aoutm68k_syscall.h,v 1.41 2010/03/02 21:14:43 pooka Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.35 2010/03/02 16:08:15 pooka Exp + * created from NetBSD: syscalls.master,v 1.36 2010/03/02 21:07:21 pooka Exp */ #ifndef _AOUTM68K_SYS_SYSCALL_H_ @@ -562,13 +562,7 @@ /* 149 is excluded compat_43_sys_quota */ /* 150 is excluded compat_43_sys_getsockname */ #endif -#if defined(NFSSERVER) || !defined(_KERNEL) -/* syscall: nfssvc ret: int args: int void * */ -#define AOUTM68K_SYS_nfssvc 155 - -#else /* 155 is excluded nfssvc */ -#endif #if defined(COMPAT_43) || !defined(_KERNEL) /* syscall: ogetdirentries ret: int args: int char * u_int long * */ #define AOUTM68K_SYS_ogetdirentries 156 Index: src/sys/compat/aoutm68k/aoutm68k_syscallargs.h diff -u src/sys/compat/aoutm68k/aoutm68k_syscallargs.h:1.38 src/sys/compat/aoutm68k/aoutm68k_syscallargs.h:1.39 --- src/sys/compat/aoutm68k/aoutm68k_syscallargs.h:1.38 Tue Mar 2 16:09:10 2010 +++ src/sys/compat/aoutm68k/aoutm68k_syscallargs.h Tue Mar 2 21:14:43 2010 @@ -1,10 +1,10 @@ -/* $NetBSD: aoutm68k_syscallargs.h,v 1.38 2010/03/02 16:09:10 pooka Exp $ */ +/* $NetBSD: aoutm68k_syscallargs.h,v 1.39 2010/03/02 21:14:43 pooka Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.35 2010/03/02 16:08:15 pooka Exp + * created from NetBSD: syscalls.master,v 1.36 2010/03/02 21:07:21 pooka Exp */ #ifndef _AOUTM68K_SYS_SYSCALLARGS_H_ @@ -364,11 +364,6 @@ struct compat_43_sys_getsockname_args; #else #endif -#if defined(NFSSERVER) || !defined(_KERNEL) - -struct sys_nfssvc_args; -#else -#endif #if defined(COMPAT_43) || !defined(_KERNEL) struct compat_43_sys_getdirentries_args; @@ -1014,11 +1009,6 @@ #else #endif
CVS commit: src/sys/arch
Module Name:src Committed By: pooka Date: Tue Mar 2 21:17:31 UTC 2010 Modified Files: src/sys/arch/hpcarm/hpcarm: hpc_machdep.c src/sys/arch/hpcmips/hpcmips: machdep.c src/sys/arch/hpcsh/hpcsh: machdep.c Log Message: Remove unnecessary #ifdef NFS. To generate a diff of this commit: cvs rdiff -u -r1.95 -r1.96 src/sys/arch/hpcarm/hpcarm/hpc_machdep.c cvs rdiff -u -r1.110 -r1.111 src/sys/arch/hpcmips/hpcmips/machdep.c cvs rdiff -u -r1.71 -r1.72 src/sys/arch/hpcsh/hpcsh/machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch
Module Name:src Committed By: pooka Date: Tue Mar 2 21:17:31 UTC 2010 Modified Files: src/sys/arch/hpcarm/hpcarm: hpc_machdep.c src/sys/arch/hpcmips/hpcmips: machdep.c src/sys/arch/hpcsh/hpcsh: machdep.c Log Message: Remove unnecessary #ifdef NFS. To generate a diff of this commit: cvs rdiff -u -r1.95 -r1.96 src/sys/arch/hpcarm/hpcarm/hpc_machdep.c cvs rdiff -u -r1.110 -r1.111 src/sys/arch/hpcmips/hpcmips/machdep.c cvs rdiff -u -r1.71 -r1.72 src/sys/arch/hpcsh/hpcsh/machdep.c 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/hpcarm/hpcarm/hpc_machdep.c diff -u src/sys/arch/hpcarm/hpcarm/hpc_machdep.c:1.95 src/sys/arch/hpcarm/hpcarm/hpc_machdep.c:1.96 --- src/sys/arch/hpcarm/hpcarm/hpc_machdep.c:1.95 Sat Dec 26 16:01:25 2009 +++ src/sys/arch/hpcarm/hpcarm/hpc_machdep.c Tue Mar 2 21:17:31 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: hpc_machdep.c,v 1.95 2009/12/26 16:01:25 uebayasi Exp $ */ +/* $NetBSD: hpc_machdep.c,v 1.96 2010/03/02 21:17:31 pooka Exp $ */ /* * Copyright (c) 1994-1998 Mark Brinicombe. @@ -40,12 +40,11 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: hpc_machdep.c,v 1.95 2009/12/26 16:01:25 uebayasi Exp $); +__KERNEL_RCSID(0, $NetBSD: hpc_machdep.c,v 1.96 2010/03/02 21:17:31 pooka Exp $); #include opt_ddb.h #include opt_modular.h #include opt_pmap_debug.h -#include fs_nfs.h #include ksyms.h #include sys/param.h @@ -91,13 +90,11 @@ #include dev/hpc/apm/apmvar.h #include dev/hpc/bicons.h -#ifdef NFS #include sys/mount.h #include nfs/rpcv2.h #include nfs/nfsproto.h #include nfs/nfs.h #include nfs/nfsmount.h -#endif /* NFS */ /* Kernel text starts 256K in from the bottom of the kernel address space. */ #define KERNEL_TEXT_BASE (KERNEL_BASE + 0x0004) @@ -360,14 +357,10 @@ case 'b': /* boot device: -b=sd0 etc. */ cp = cp + 2; -#ifdef NFS if (strcmp(cp, MOUNT_NFS) == 0) rootfstype = MOUNT_NFS; else strncpy(boot_file, cp, sizeof(boot_file)); -#else /* !NFS */ - strncpy(boot_file, cp, sizeof(boot_file)); -#endif /* !NFS */ break; default: BOOT_FLAG(*cp, boothowto); Index: src/sys/arch/hpcmips/hpcmips/machdep.c diff -u src/sys/arch/hpcmips/hpcmips/machdep.c:1.110 src/sys/arch/hpcmips/hpcmips/machdep.c:1.111 --- src/sys/arch/hpcmips/hpcmips/machdep.c:1.110 Tue Mar 2 17:28:08 2010 +++ src/sys/arch/hpcmips/hpcmips/machdep.c Tue Mar 2 21:17:31 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.110 2010/03/02 17:28:08 pooka Exp $ */ +/* $NetBSD: machdep.c,v 1.111 2010/03/02 21:17:31 pooka Exp $ */ /*- * Copyright (c) 1999 Shin Takemura, All rights reserved. @@ -108,7 +108,7 @@ */ #include sys/cdefs.h /* RCS ID Copyright macro defns */ -__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.110 2010/03/02 17:28:08 pooka Exp $); +__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.111 2010/03/02 21:17:31 pooka Exp $); #include opt_vr41xx.h #include opt_tx39xx.h @@ -119,7 +119,6 @@ #include opt_ddb.h #include opt_kgdb.h #include opt_rtc_offset.h -#include fs_nfs.h #include opt_kloader.h #include opt_kloader_kernel_path.h #include debug_hpc.h @@ -179,12 +178,10 @@ #define DPRINTF(arg) #endif /* NBICONSDEV 0 */ -#ifdef NFS #include nfs/rpcv2.h #include nfs/nfsproto.h #include nfs/nfs.h #include nfs/nfsmount.h -#endif #ifdef MEMORY_DISK_DYNAMIC #include dev/md.h @@ -413,14 +410,10 @@ case 'b': /* boot device: -b=sd0 etc. */ -#ifdef NFS if (strcmp(cp+2, nfs) == 0) rootfstype = MOUNT_NFS; else makebootdev(cp+2); -#else /* NFS */ -makebootdev(cp+2); -#endif /* NFS */ cp += strlen(cp); break; default: Index: src/sys/arch/hpcsh/hpcsh/machdep.c diff -u src/sys/arch/hpcsh/hpcsh/machdep.c:1.71 src/sys/arch/hpcsh/hpcsh/machdep.c:1.72 --- src/sys/arch/hpcsh/hpcsh/machdep.c:1.71 Tue Mar 2 17:28:08 2010 +++ src/sys/arch/hpcsh/hpcsh/machdep.c Tue Mar 2 21:17:31 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.71 2010/03/02 17:28:08 pooka Exp $ */ +/* $NetBSD: machdep.c,v 1.72 2010/03/02 21:17:31 pooka Exp $ */ /*- * Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc. @@ -27,13 +27,12 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.71 2010/03/02 17:28:08 pooka Exp $); +__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.72 2010/03/02 21:17:31 pooka Exp $); #include opt_md.h #include opt_ddb.h #include opt_kgdb.h #include opt_modular.h -#include fs_nfs.h #include biconsdev.h #include debug_hpc.h #include hd64465if.h @@ -97,12 +96,10 @@ #include machine/autoconf.h /* makebootdev() */ #include machine/intr.h -#ifdef NFS #include nfs/rpcv2.h #include nfs/nfsproto.h #include nfs/nfs.h #include nfs/nfsmount.h -#endif #include dev/hpc/apm/apmvar.h @@ -240,14 +237,10 @@ case 'b': /* boot device: -b=sd0 etc. */ p = cp + 2; -#ifdef NFS if (strcmp(p, nfs) == 0) rootfstype = MOUNT_NFS;
CVS commit: src/sys
Module Name:src Committed By: pooka Date: Tue Mar 2 21:32:29 UTC 2010 Modified Files: src/sys/dev: vnd.c src/sys/uvm: uvm_swap.c Log Message: For the nfs throttling kludge, test against v_tag == VT_NFS instead of v_op (the latter imposes linkage). To generate a diff of this commit: cvs rdiff -u -r1.207 -r1.208 src/sys/dev/vnd.c cvs rdiff -u -r1.149 -r1.150 src/sys/uvm/uvm_swap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys
Module Name:src Committed By: pooka Date: Tue Mar 2 21:32:29 UTC 2010 Modified Files: src/sys/dev: vnd.c src/sys/uvm: uvm_swap.c Log Message: For the nfs throttling kludge, test against v_tag == VT_NFS instead of v_op (the latter imposes linkage). To generate a diff of this commit: cvs rdiff -u -r1.207 -r1.208 src/sys/dev/vnd.c cvs rdiff -u -r1.149 -r1.150 src/sys/uvm/uvm_swap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/vnd.c diff -u src/sys/dev/vnd.c:1.207 src/sys/dev/vnd.c:1.208 --- src/sys/dev/vnd.c:1.207 Sun Jan 31 15:40:08 2010 +++ src/sys/dev/vnd.c Tue Mar 2 21:32:29 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: vnd.c,v 1.207 2010/01/31 15:40:08 mlelstv Exp $ */ +/* $NetBSD: vnd.c,v 1.208 2010/03/02 21:32:29 pooka Exp $ */ /*- * Copyright (c) 1996, 1997, 1998, 2008 The NetBSD Foundation, Inc. @@ -130,10 +130,9 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: vnd.c,v 1.207 2010/01/31 15:40:08 mlelstv Exp $); +__KERNEL_RCSID(0, $NetBSD: vnd.c,v 1.208 2010/03/02 21:32:29 pooka Exp $); #if defined(_KERNEL_OPT) -#include fs_nfs.h #include opt_vnd.h #endif @@ -1560,13 +1559,10 @@ static void vndthrottle(struct vnd_softc *vnd, struct vnode *vp) { -#ifdef NFS - extern int (**nfsv2_vnodeop_p)(void *); - if (vp-v_op == nfsv2_vnodeop_p) + if (vp-v_tag == VT_NFS) vnd-sc_maxactive = 2; else -#endif vnd-sc_maxactive = 8; if (vnd-sc_maxactive 1) Index: src/sys/uvm/uvm_swap.c diff -u src/sys/uvm/uvm_swap.c:1.149 src/sys/uvm/uvm_swap.c:1.150 --- src/sys/uvm/uvm_swap.c:1.149 Sun Feb 7 15:51:28 2010 +++ src/sys/uvm/uvm_swap.c Tue Mar 2 21:32:29 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_swap.c,v 1.149 2010/02/07 15:51:28 mlelstv Exp $ */ +/* $NetBSD: uvm_swap.c,v 1.150 2010/03/02 21:32:29 pooka Exp $ */ /* * Copyright (c) 1995, 1996, 1997, 2009 Matthew R. Green @@ -30,9 +30,8 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: uvm_swap.c,v 1.149 2010/02/07 15:51:28 mlelstv Exp $); +__KERNEL_RCSID(0, $NetBSD: uvm_swap.c,v 1.150 2010/03/02 21:32:29 pooka Exp $); -#include fs_nfs.h #include opt_uvmhist.h #include opt_compat_netbsd.h #include opt_ddb.h @@ -818,9 +817,6 @@ long addr; u_long result; struct vattr va; -#ifdef NFS - extern int (**nfsv2_vnodeop_p)(void *); -#endif /* NFS */ const struct bdevsw *bdev; dev_t dev; UVMHIST_FUNC(swap_on); UVMHIST_CALLED(pdhist); @@ -877,11 +873,9 @@ * limit the max # of outstanding I/O requests we issue * at any one time. take it easy on NFS servers. */ -#ifdef NFS - if (vp-v_op == nfsv2_vnodeop_p) + if (vp-v_tag == VT_NFS) sdp-swd_maxactive = 2; /* XXX */ else -#endif /* NFS */ sdp-swd_maxactive = 8; /* XXX */ break;
CVS commit: src/sys/arch
Module Name:src Committed By: matt Date: Tue Mar 2 21:52:33 UTC 2010 Modified Files: src/sys/arch/macppc/macppc: cpu.c src/sys/arch/mvmeppc/stand/libsa: srt0.S src/sys/arch/ofppc/ofppc: cpu.c src/sys/arch/powerpc/include: Makefile src/sys/arch/prep/prep: locore.S src/sys/arch/prep/stand/boot: boot.c clock.c src/sys/arch/rs6000/stand/boot: boot.c clock.c src/sys/arch/sandpoint/stand/netboot: entry.S Removed Files: src/sys/arch/amigappc/include: spr.h src/sys/arch/bebox/include: spr.h src/sys/arch/evbppc/include: spr.h src/sys/arch/ibmnws/include: spr.h src/sys/arch/macppc/include: spr.h src/sys/arch/mvmeppc/include: spr.h src/sys/arch/ofppc/include: spr.h src/sys/arch/prep/include: spr.h src/sys/arch/rs6000/include: spr.h src/sys/arch/sandpoint/include: spr.h Log Message: Add missing powerpc/FOO/spr.h to a few files missed on the first pass. Don't export machine/spr.h to userland, only powerpc/spr.h To generate a diff of this commit: cvs rdiff -u -r1.2 -r0 src/sys/arch/amigappc/include/spr.h cvs rdiff -u -r1.4 -r0 src/sys/arch/bebox/include/spr.h cvs rdiff -u -r1.4 -r0 src/sys/arch/evbppc/include/spr.h cvs rdiff -u -r1.2 -r0 src/sys/arch/ibmnws/include/spr.h cvs rdiff -u -r1.4 -r0 src/sys/arch/macppc/include/spr.h cvs rdiff -u -r1.52 -r1.53 src/sys/arch/macppc/macppc/cpu.c cvs rdiff -u -r1.4 -r0 src/sys/arch/mvmeppc/include/spr.h cvs rdiff -u -r1.2 -r1.3 src/sys/arch/mvmeppc/stand/libsa/srt0.S cvs rdiff -u -r1.4 -r0 src/sys/arch/ofppc/include/spr.h cvs rdiff -u -r1.11 -r1.12 src/sys/arch/ofppc/ofppc/cpu.c cvs rdiff -u -r1.34 -r1.35 src/sys/arch/powerpc/include/Makefile cvs rdiff -u -r1.4 -r0 src/sys/arch/prep/include/spr.h cvs rdiff -u -r1.13 -r1.14 src/sys/arch/prep/prep/locore.S cvs rdiff -u -r1.16 -r1.17 src/sys/arch/prep/stand/boot/boot.c cvs rdiff -u -r1.9 -r1.10 src/sys/arch/prep/stand/boot/clock.c cvs rdiff -u -r1.1 -r0 src/sys/arch/rs6000/include/spr.h cvs rdiff -u -r1.3 -r1.4 src/sys/arch/rs6000/stand/boot/boot.c cvs rdiff -u -r1.1 -r1.2 src/sys/arch/rs6000/stand/boot/clock.c cvs rdiff -u -r1.4 -r0 src/sys/arch/sandpoint/include/spr.h cvs rdiff -u -r1.4 -r1.5 src/sys/arch/sandpoint/stand/netboot/entry.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch
Module Name:src Committed By: matt Date: Tue Mar 2 21:52:33 UTC 2010 Modified Files: src/sys/arch/macppc/macppc: cpu.c src/sys/arch/mvmeppc/stand/libsa: srt0.S src/sys/arch/ofppc/ofppc: cpu.c src/sys/arch/powerpc/include: Makefile src/sys/arch/prep/prep: locore.S src/sys/arch/prep/stand/boot: boot.c clock.c src/sys/arch/rs6000/stand/boot: boot.c clock.c src/sys/arch/sandpoint/stand/netboot: entry.S Removed Files: src/sys/arch/amigappc/include: spr.h src/sys/arch/bebox/include: spr.h src/sys/arch/evbppc/include: spr.h src/sys/arch/ibmnws/include: spr.h src/sys/arch/macppc/include: spr.h src/sys/arch/mvmeppc/include: spr.h src/sys/arch/ofppc/include: spr.h src/sys/arch/prep/include: spr.h src/sys/arch/rs6000/include: spr.h src/sys/arch/sandpoint/include: spr.h Log Message: Add missing powerpc/FOO/spr.h to a few files missed on the first pass. Don't export machine/spr.h to userland, only powerpc/spr.h To generate a diff of this commit: cvs rdiff -u -r1.2 -r0 src/sys/arch/amigappc/include/spr.h cvs rdiff -u -r1.4 -r0 src/sys/arch/bebox/include/spr.h cvs rdiff -u -r1.4 -r0 src/sys/arch/evbppc/include/spr.h cvs rdiff -u -r1.2 -r0 src/sys/arch/ibmnws/include/spr.h cvs rdiff -u -r1.4 -r0 src/sys/arch/macppc/include/spr.h cvs rdiff -u -r1.52 -r1.53 src/sys/arch/macppc/macppc/cpu.c cvs rdiff -u -r1.4 -r0 src/sys/arch/mvmeppc/include/spr.h cvs rdiff -u -r1.2 -r1.3 src/sys/arch/mvmeppc/stand/libsa/srt0.S cvs rdiff -u -r1.4 -r0 src/sys/arch/ofppc/include/spr.h cvs rdiff -u -r1.11 -r1.12 src/sys/arch/ofppc/ofppc/cpu.c cvs rdiff -u -r1.34 -r1.35 src/sys/arch/powerpc/include/Makefile cvs rdiff -u -r1.4 -r0 src/sys/arch/prep/include/spr.h cvs rdiff -u -r1.13 -r1.14 src/sys/arch/prep/prep/locore.S cvs rdiff -u -r1.16 -r1.17 src/sys/arch/prep/stand/boot/boot.c cvs rdiff -u -r1.9 -r1.10 src/sys/arch/prep/stand/boot/clock.c cvs rdiff -u -r1.1 -r0 src/sys/arch/rs6000/include/spr.h cvs rdiff -u -r1.3 -r1.4 src/sys/arch/rs6000/stand/boot/boot.c cvs rdiff -u -r1.1 -r1.2 src/sys/arch/rs6000/stand/boot/clock.c cvs rdiff -u -r1.4 -r0 src/sys/arch/sandpoint/include/spr.h cvs rdiff -u -r1.4 -r1.5 src/sys/arch/sandpoint/stand/netboot/entry.S 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/macppc/macppc/cpu.c diff -u src/sys/arch/macppc/macppc/cpu.c:1.52 src/sys/arch/macppc/macppc/cpu.c:1.53 --- src/sys/arch/macppc/macppc/cpu.c:1.52 Fri Nov 27 03:23:11 2009 +++ src/sys/arch/macppc/macppc/cpu.c Tue Mar 2 21:52:33 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.c,v 1.52 2009/11/27 03:23:11 rmind Exp $ */ +/* $NetBSD: cpu.c,v 1.53 2010/03/02 21:52:33 matt Exp $ */ /*- * Copyright (c) 2001 Tsubai Masanari. @@ -33,7 +33,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: cpu.c,v 1.52 2009/11/27 03:23:11 rmind Exp $); +__KERNEL_RCSID(0, $NetBSD: cpu.c,v 1.53 2010/03/02 21:52:33 matt Exp $); #include opt_ppcparam.h #include opt_multiprocessor.h @@ -53,6 +53,7 @@ #include powerpc/openpic.h #include powerpc/atomic.h #include powerpc/spr.h +#include powerpc/oea/spr.h #ifdef ALTIVEC #include powerpc/altivec.h #endif Index: src/sys/arch/mvmeppc/stand/libsa/srt0.S diff -u src/sys/arch/mvmeppc/stand/libsa/srt0.S:1.2 src/sys/arch/mvmeppc/stand/libsa/srt0.S:1.3 --- src/sys/arch/mvmeppc/stand/libsa/srt0.S:1.2 Mon Apr 28 20:23:30 2008 +++ src/sys/arch/mvmeppc/stand/libsa/srt0.S Tue Mar 2 21:52:33 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: srt0.S,v 1.2 2008/04/28 20:23:30 martin Exp $ */ +/* $NetBSD: srt0.S,v 1.3 2010/03/02 21:52:33 matt Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -32,6 +32,7 @@ #include machine/asm.h #include machine/psl.h #include powerpc/spr.h +#include powerpc/oea/spr.h #define STACK_SIZE 8192 Index: src/sys/arch/ofppc/ofppc/cpu.c diff -u src/sys/arch/ofppc/ofppc/cpu.c:1.11 src/sys/arch/ofppc/ofppc/cpu.c:1.12 --- src/sys/arch/ofppc/ofppc/cpu.c:1.11 Mon Apr 28 20:23:31 2008 +++ src/sys/arch/ofppc/ofppc/cpu.c Tue Mar 2 21:52:33 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.c,v 1.11 2008/04/28 20:23:31 martin Exp $ */ +/* $NetBSD: cpu.c,v 1.12 2010/03/02 21:52:33 matt Exp $ */ /*- * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: cpu.c,v 1.11 2008/04/28 20:23:31 martin Exp $); +__KERNEL_RCSID(0, $NetBSD: cpu.c,v 1.12 2010/03/02 21:52:33 matt Exp $); #include opt_ppcparam.h #include opt_multiprocessor.h @@ -42,12 +42,15 @@ #include sys/device.h #include uvm/uvm_extern.h + #include dev/ofw/openfirm.h -#include powerpc/oea/hid.h -#include powerpc/oea/bat.h + #include powerpc/openpic.h #include powerpc/atomic.h #include powerpc/spr.h +#include powerpc/oea/spr.h +#include powerpc/oea/hid.h +#include powerpc/oea/bat.h #ifdef ALTIVEC #include
CVS commit: src/sys/arch/powerpc/powerpc
Module Name:src Committed By: matt Date: Tue Mar 2 21:53:20 UTC 2010 Modified Files: src/sys/arch/powerpc/powerpc: kgdb_machdep.c Log Message: Add missing powerpc/FOO/spr.h to a few files missed on the first pass. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/arch/powerpc/powerpc/kgdb_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/powerpc/powerpc
Module Name:src Committed By: matt Date: Tue Mar 2 21:53:20 UTC 2010 Modified Files: src/sys/arch/powerpc/powerpc: kgdb_machdep.c Log Message: Add missing powerpc/FOO/spr.h to a few files missed on the first pass. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/arch/powerpc/powerpc/kgdb_machdep.c 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/powerpc/powerpc/kgdb_machdep.c diff -u src/sys/arch/powerpc/powerpc/kgdb_machdep.c:1.21 src/sys/arch/powerpc/powerpc/kgdb_machdep.c:1.22 --- src/sys/arch/powerpc/powerpc/kgdb_machdep.c:1.21 Sun Jan 11 23:20:37 2009 +++ src/sys/arch/powerpc/powerpc/kgdb_machdep.c Tue Mar 2 21:53:20 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: kgdb_machdep.c,v 1.21 2009/01/11 23:20:37 cegger Exp $ */ +/* $NetBSD: kgdb_machdep.c,v 1.22 2010/03/02 21:53:20 matt Exp $ */ /* * Copyright 2001 Wasabi Systems, Inc. @@ -36,7 +36,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: kgdb_machdep.c,v 1.21 2009/01/11 23:20:37 cegger Exp $); +__KERNEL_RCSID(0, $NetBSD: kgdb_machdep.c,v 1.22 2010/03/02 21:53:20 matt Exp $); #include opt_ddb.h @@ -54,8 +54,23 @@ #include machine/trap.h #include machine/pmap.h -#include powerpc/oea/bat.h #include powerpc/spr.h +#if defined (PPC_OEA) || defined (PPC_OEA601) || defined (PPC_OEA64_BRIDGE) +#include powerpc/oea/spr.h +#include powerpc/oea/bat.h + +#elif defined (PPC_OEA64) +#include powerpc/oea/spr.h + +#elif defined (PPC_IBM4XX) +#include powerpc/booke/spr.h + +#elif defined (PPC_BOOKE) +#include powerpc/booke/spr.h + +#else +#error unknown architecture +#endif /* * Determine if the memory at va..(va+len) is valid. @@ -66,7 +81,7 @@ vaddr_t last_va; paddr_t pa; u_int msr; -#if !defined (PPC_OEA64) !defined (PPC_IBM4XX) +#if defined (PPC_OEA) || defined (PPC_OEA601) || defined (PPC_OEA64_BRIDGE) u_int batu, batl; #endif @@ -76,7 +91,7 @@ return 1; } -#if !defined (PPC_OEA64) !defined (PPC_IBM4XX) +#if defined (PPC_OEA) || defined (PPC_OEA601) || defined (PPC_OEA64_BRIDGE) /* Now check battable registers */ #ifdef PPC_OEA601 if ((mfpvr() 16) == MPC601) { @@ -129,7 +144,7 @@ } #endif } -#endif /* !defined (PPC_OEA64) !defined (PPC_IBM4XX) */ +#endif /* PPC_OEA || PPC_OEA601 || PPC_OEA64_BRIDGE */ #if defined(PPC_IBM4XX) /* Is it (supposed to be) TLB-reserved mapping? */ @@ -163,7 +178,7 @@ kgdb_signal(int type) { switch (type) { -#ifdef PPC_IBM4XX +#if defined (PPC_IBM4XX) || defined (PPC_BOOKE) case EXC_PIT: /* 40x - Programmable interval timer */ case EXC_FIT: /* 40x - Fixed interval timer */ return SIGALRM; @@ -178,7 +193,7 @@ return SIGSEGV; #endif -#if !defined(PPC_OEA64) !defined (PPC_IBM4XX) +#if defined (PPC_OEA) || defined (PPC_OEA601) || defined (PPC_OEA64_BRIDGE) case EXC_PERF: /* 604/750/7400 - Performance monitoring */ case EXC_BPT: /* 604/750/7400 - Instruction breakpoint */ case EXC_SMI: /* 604/750/7400 - System management interrupt */
CVS commit: src/distrib/sets/lists/comp
Module Name:src Committed By: matt Date: Tue Mar 2 21:54:06 UTC 2010 Modified Files: src/distrib/sets/lists/comp: md.amigappc md.bebox md.evbppc md.ibmnws md.macppc md.mvmeppc md.ofppc md.prep md.rs6000 md.sandpoint Log Message: Make machine/spr.h as obsolete. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/distrib/sets/lists/comp/md.amigappc cvs rdiff -u -r1.30 -r1.31 src/distrib/sets/lists/comp/md.bebox cvs rdiff -u -r1.9 -r1.10 src/distrib/sets/lists/comp/md.evbppc \ src/distrib/sets/lists/comp/md.ofppc cvs rdiff -u -r1.7 -r1.8 src/distrib/sets/lists/comp/md.ibmnws cvs rdiff -u -r1.32 -r1.33 src/distrib/sets/lists/comp/md.macppc cvs rdiff -u -r1.11 -r1.12 src/distrib/sets/lists/comp/md.mvmeppc cvs rdiff -u -r1.23 -r1.24 src/distrib/sets/lists/comp/md.prep cvs rdiff -u -r1.1 -r1.2 src/distrib/sets/lists/comp/md.rs6000 cvs rdiff -u -r1.13 -r1.14 src/distrib/sets/lists/comp/md.sandpoint Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/sets/lists/comp
Module Name:src Committed By: matt Date: Tue Mar 2 21:54:06 UTC 2010 Modified Files: src/distrib/sets/lists/comp: md.amigappc md.bebox md.evbppc md.ibmnws md.macppc md.mvmeppc md.ofppc md.prep md.rs6000 md.sandpoint Log Message: Make machine/spr.h as obsolete. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/distrib/sets/lists/comp/md.amigappc cvs rdiff -u -r1.30 -r1.31 src/distrib/sets/lists/comp/md.bebox cvs rdiff -u -r1.9 -r1.10 src/distrib/sets/lists/comp/md.evbppc \ src/distrib/sets/lists/comp/md.ofppc cvs rdiff -u -r1.7 -r1.8 src/distrib/sets/lists/comp/md.ibmnws cvs rdiff -u -r1.32 -r1.33 src/distrib/sets/lists/comp/md.macppc cvs rdiff -u -r1.11 -r1.12 src/distrib/sets/lists/comp/md.mvmeppc cvs rdiff -u -r1.23 -r1.24 src/distrib/sets/lists/comp/md.prep cvs rdiff -u -r1.1 -r1.2 src/distrib/sets/lists/comp/md.rs6000 cvs rdiff -u -r1.13 -r1.14 src/distrib/sets/lists/comp/md.sandpoint Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/sets/lists/comp/md.amigappc diff -u src/distrib/sets/lists/comp/md.amigappc:1.5 src/distrib/sets/lists/comp/md.amigappc:1.6 --- src/distrib/sets/lists/comp/md.amigappc:1.5 Tue Feb 2 14:13:16 2010 +++ src/distrib/sets/lists/comp/md.amigappc Tue Mar 2 21:54:06 2010 @@ -1,4 +1,4 @@ -# $NetBSD: md.amigappc,v 1.5 2010/02/02 14:13:16 phx Exp $ +# $NetBSD: md.amigappc,v 1.6 2010/03/02 21:54:06 matt Exp $ ./usr/include/ieeefp.hcomp-c-include ./usr/include/amigappccomp-c-include ./usr/include/amigappc/_G_config.h comp-obsolete obsolete @@ -53,7 +53,7 @@ ./usr/include/amigappc/rwlock.h comp-c-include ./usr/include/amigappc/setjmp.h comp-c-include ./usr/include/amigappc/signal.h comp-c-include -./usr/include/amigappc/spr.h comp-c-include +./usr/include/amigappc/spr.h comp-obsolete obsolete ./usr/include/amigappc/stdarg.h comp-c-include ./usr/include/amigappc/trap.h comp-c-include ./usr/include/amigappc/types.h comp-c-include Index: src/distrib/sets/lists/comp/md.bebox diff -u src/distrib/sets/lists/comp/md.bebox:1.30 src/distrib/sets/lists/comp/md.bebox:1.31 --- src/distrib/sets/lists/comp/md.bebox:1.30 Fri Aug 22 13:42:19 2008 +++ src/distrib/sets/lists/comp/md.bebox Tue Mar 2 21:54:06 2010 @@ -1,4 +1,4 @@ -# $NetBSD: md.bebox,v 1.30 2008/08/22 13:42:19 lukem Exp $ +# $NetBSD: md.bebox,v 1.31 2010/03/02 21:54:06 matt Exp $ ./usr/include/beboxcomp-c-include ./usr/include/bebox/_G_config.h comp-obsolete obsolete ./usr/include/bebox/ansi.h comp-c-include @@ -57,7 +57,7 @@ ./usr/include/bebox/setjmp.h comp-c-include ./usr/include/bebox/signal.h comp-c-include ./usr/include/bebox/spkr.h comp-c-include -./usr/include/bebox/spr.h comp-c-include +./usr/include/bebox/spr.h comp-obsolete obsolete ./usr/include/bebox/stdarg.h comp-c-include ./usr/include/bebox/trap.h comp-c-include ./usr/include/bebox/types.h comp-c-include Index: src/distrib/sets/lists/comp/md.evbppc diff -u src/distrib/sets/lists/comp/md.evbppc:1.9 src/distrib/sets/lists/comp/md.evbppc:1.10 --- src/distrib/sets/lists/comp/md.evbppc:1.9 Fri Feb 9 22:49:47 2007 +++ src/distrib/sets/lists/comp/md.evbppc Tue Mar 2 21:54:06 2010 @@ -1,4 +1,4 @@ -# $NetBSD: md.evbppc,v 1.9 2007/02/09 22:49:47 ad Exp $ +# $NetBSD: md.evbppc,v 1.10 2010/03/02 21:54:06 matt Exp $ ./usr/include/evbppccomp-c-include ./usr/include/evbppc/_G_config.h comp-obsolete obsolete ./usr/include/evbppc/ansi.h comp-c-include @@ -48,7 +48,7 @@ ./usr/include/evbppc/rwlock.h comp-c-include ./usr/include/evbppc/setjmp.h comp-c-include ./usr/include/evbppc/signal.h comp-c-include -./usr/include/evbppc/spr.h comp-c-include +./usr/include/evbppc/spr.h comp-obsolete obsolete ./usr/include/evbppc/stdarg.h comp-c-include ./usr/include/evbppc/trap.h comp-c-include ./usr/include/evbppc/types.h comp-c-include Index: src/distrib/sets/lists/comp/md.ofppc diff -u src/distrib/sets/lists/comp/md.ofppc:1.9 src/distrib/sets/lists/comp/md.ofppc:1.10 --- src/distrib/sets/lists/comp/md.ofppc:1.9 Fri Feb 9 22:49:47 2007 +++ src/distrib/sets/lists/comp/md.ofppc Tue Mar 2 21:54:06 2010 @@ -1,4 +1,4 @@ -# $NetBSD: md.ofppc,v 1.9 2007/02/09 22:49:47 ad Exp $ +# $NetBSD: md.ofppc,v 1.10 2010/03/02 21:54:06 matt Exp $ ./usr/include/ieeefp.hcomp-c-include ./usr/include/ofppccomp-c-include ./usr/include/ofppc/_G_config.h comp-obsolete obsolete @@ -47,7 +47,7 @@ ./usr/include/ofppc/rwlock.h comp-c-include ./usr/include/ofppc/setjmp.h comp-c-include ./usr/include/ofppc/signal.h comp-c-include -./usr/include/ofppc/spr.h comp-c-include +./usr/include/ofppc/spr.h comp-obsolete obsolete ./usr/include/ofppc/stdarg.h comp-c-include ./usr/include/ofppc/trap.h comp-c-include ./usr/include/ofppc/types.h comp-c-include Index: src/distrib/sets/lists/comp/md.ibmnws diff -u
CVS commit: src/external/cddl/osnet/sys/sys
Module Name:src Committed By: darran Date: Tue Mar 2 22:00:32 UTC 2010 Modified Files: src/external/cddl/osnet/sys/sys: types.h Log Message: DTrace: another fix for OS X builds, stdint.h location. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/external/cddl/osnet/sys/sys/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/nfs
Module Name:src Committed By: pooka Date: Tue Mar 2 23:19:09 UTC 2010 Modified Files: src/sys/nfs: files.nfs nfs.h nfs_bootparam.c nfs_socket.c nfs_subs.c nfs_var.h nfs_vfsops.c Added Files: src/sys/nfs: nfs_clntsocket.c nfs_clntsubs.c Log Message: Get rid of dependency on fs_nfs.h, i.e. source modules with conditional content depending on if the NFS client is wanted or not. The server can now be made an independent module not depending on the nfs client. Tested with rump_nfs (standalone client), rump_nfsd (standalone nfsd) and a qemu installation with both the client and the server. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sys/nfs/files.nfs cvs rdiff -u -r1.71 -r1.72 src/sys/nfs/nfs.h cvs rdiff -u -r1.35 -r1.36 src/sys/nfs/nfs_bootparam.c cvs rdiff -u -r0 -r1.1 src/sys/nfs/nfs_clntsocket.c \ src/sys/nfs/nfs_clntsubs.c cvs rdiff -u -r1.186 -r1.187 src/sys/nfs/nfs_socket.c cvs rdiff -u -r1.218 -r1.219 src/sys/nfs/nfs_subs.c cvs rdiff -u -r1.89 -r1.90 src/sys/nfs/nfs_var.h cvs rdiff -u -r1.210 -r1.211 src/sys/nfs/nfs_vfsops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys
Module Name:src Committed By: pooka Date: Tue Mar 2 23:37:16 UTC 2010 Modified Files: src/sys/modules/nfs: Makefile src/sys/modules/nfsserver: Makefile src/sys/rump/fs/lib/libnfs: Makefile src/sys/rump/fs/lib/libnfsserver: Makefile Removed Files: src/sys/rump/fs/lib/libnfs: fs_nfs.h Log Message: Reflect removal of fs_nfs.h and -DNFS To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/modules/nfs/Makefile cvs rdiff -u -r1.1 -r1.2 src/sys/modules/nfsserver/Makefile cvs rdiff -u -r1.10 -r1.11 src/sys/rump/fs/lib/libnfs/Makefile cvs rdiff -u -r1.1 -r0 src/sys/rump/fs/lib/libnfs/fs_nfs.h cvs rdiff -u -r1.2 -r1.3 src/sys/rump/fs/lib/libnfsserver/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys
Module Name:src Committed By: pooka Date: Tue Mar 2 23:37:16 UTC 2010 Modified Files: src/sys/modules/nfs: Makefile src/sys/modules/nfsserver: Makefile src/sys/rump/fs/lib/libnfs: Makefile src/sys/rump/fs/lib/libnfsserver: Makefile Removed Files: src/sys/rump/fs/lib/libnfs: fs_nfs.h Log Message: Reflect removal of fs_nfs.h and -DNFS To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/modules/nfs/Makefile cvs rdiff -u -r1.1 -r1.2 src/sys/modules/nfsserver/Makefile cvs rdiff -u -r1.10 -r1.11 src/sys/rump/fs/lib/libnfs/Makefile cvs rdiff -u -r1.1 -r0 src/sys/rump/fs/lib/libnfs/fs_nfs.h cvs rdiff -u -r1.2 -r1.3 src/sys/rump/fs/lib/libnfsserver/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/modules/nfs/Makefile diff -u src/sys/modules/nfs/Makefile:1.1 src/sys/modules/nfs/Makefile:1.2 --- src/sys/modules/nfs/Makefile:1.1 Wed Nov 19 18:36:09 2008 +++ src/sys/modules/nfs/Makefile Tue Mar 2 23:37:16 2010 @@ -1,15 +1,16 @@ -# $NetBSD: Makefile,v 1.1 2008/11/19 18:36:09 ad Exp $ +# $NetBSD: Makefile,v 1.2 2010/03/02 23:37:16 pooka Exp $ .include ../Makefile.inc KMOD= nfs -CPPFLAGS+= -DNFS -DNFS_BOOT_DHCP -DNFS_BOOT_BOOTPARAM -DARP=1 +CPPFLAGS+= -DNFS_BOOT_DHCP -DNFS_BOOT_BOOTPARAM -DARP=1 .PATH: ${S}/nfs SRCS+= krpc_subr.c nfs_bio.c nfs_boot.c nfs_kq.c nfs_node.c SRCS+= nfs_socket.c nfs_subs.c nfs_iod.c nfs_vnops.c SRCS+= nfs_vfsops.c nfs_bootdhcp.c nfs_bootparam.c +SRCS+= nfs_clntsocket.c nfs_clntsubs.c .include bsd.kmodule.mk Index: src/sys/modules/nfsserver/Makefile diff -u src/sys/modules/nfsserver/Makefile:1.1 src/sys/modules/nfsserver/Makefile:1.2 --- src/sys/modules/nfsserver/Makefile:1.1 Wed Nov 19 18:36:09 2008 +++ src/sys/modules/nfsserver/Makefile Tue Mar 2 23:37:16 2010 @@ -1,10 +1,10 @@ -# $NetBSD: Makefile,v 1.1 2008/11/19 18:36:09 ad Exp $ +# $NetBSD: Makefile,v 1.2 2010/03/02 23:37:16 pooka Exp $ .include ../Makefile.inc KMOD= nfsserver -CPPFLAGS+= -DNFS -DNFSSERVER +CPPFLAGS+= -DNFSSERVER .PATH: ${S}/nfs Index: src/sys/rump/fs/lib/libnfs/Makefile diff -u src/sys/rump/fs/lib/libnfs/Makefile:1.10 src/sys/rump/fs/lib/libnfs/Makefile:1.11 --- src/sys/rump/fs/lib/libnfs/Makefile:1.10 Tue Feb 16 20:42:46 2010 +++ src/sys/rump/fs/lib/libnfs/Makefile Tue Mar 2 23:37:16 2010 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2010/02/16 20:42:46 pooka Exp $ +# $NetBSD: Makefile,v 1.11 2010/03/02 23:37:16 pooka Exp $ # .PATH: ${.CURDIR}/../../../../nfs @@ -6,12 +6,12 @@ LIB= rumpfs_nfs SRCS= krpc_subr.c nfs_bio.c nfs_boot.c nfs_kq.c nfs_node.c \ - nfs_socket.c nfs_subs.c nfs_iod.c nfs_vfsops.c nfs_vnops.c \ - nfs_bootdhcp.c nfs_bootparam.c + nfs_socket.c nfs_clntsocket.c nfs_clntsubs.c nfs_subs.c \ + nfs_iod.c nfs_vfsops.c nfs_vnops.c nfs_bootdhcp.c nfs_bootparam.c CPPFLAGS+= -I${.CURDIR}/../../../net/lib/libnet/opt CPPFLAGS+= -I${.CURDIR}/../../../net/lib/libnetinet/opt -CPPFLAGS+= -DNFS -DNFS_BOOT_DHCP -DNFS_BOOT_BOOTPARAM +CPPFLAGS+= -DNFS_BOOT_DHCP -DNFS_BOOT_BOOTPARAM .include bsd.lib.mk .include bsd.klinks.mk Index: src/sys/rump/fs/lib/libnfsserver/Makefile diff -u src/sys/rump/fs/lib/libnfsserver/Makefile:1.2 src/sys/rump/fs/lib/libnfsserver/Makefile:1.3 --- src/sys/rump/fs/lib/libnfsserver/Makefile:1.2 Tue Feb 16 20:42:46 2010 +++ src/sys/rump/fs/lib/libnfsserver/Makefile Tue Mar 2 23:37:16 2010 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2010/02/16 20:42:46 pooka Exp $ +# $NetBSD: Makefile,v 1.3 2010/03/02 23:37:16 pooka Exp $ # .PATH: ${.CURDIR}/../../../../nfs @@ -8,7 +8,5 @@ SRCS= nfs_export.c nfs_serv.c nfs_srvcache.c nfs_srvsubs.c \ nfs_srvsocket.c nfs_syscalls.c -CPPFLAGS+= -DNFS - .include bsd.lib.mk .include bsd.klinks.mk
CVS commit: src/sys/nfs
Module Name:src Committed By: pooka Date: Tue Mar 2 23:49:11 UTC 2010 Modified Files: src/sys/nfs: files.nfs Log Message: don't create unused fs_nfs.h To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/nfs/files.nfs Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/nfs/files.nfs diff -u src/sys/nfs/files.nfs:1.12 src/sys/nfs/files.nfs:1.13 --- src/sys/nfs/files.nfs:1.12 Tue Mar 2 23:19:09 2010 +++ src/sys/nfs/files.nfs Tue Mar 2 23:49:11 2010 @@ -1,6 +1,6 @@ -# $NetBSD: files.nfs,v 1.12 2010/03/02 23:19:09 pooka Exp $ +# $NetBSD: files.nfs,v 1.13 2010/03/02 23:49:11 pooka Exp $ -deffs fs_nfs.h NFS +deffsNFS defflag opt_nfs_boot.h NFS_BOOT_BOOTP NFS_BOOT_BOOTPARAM NFS_BOOT_DHCP NFS_BOOT_GATEWAY NFS_BOOT_TCP
CVS commit: src/sys/nfs
Module Name:src Committed By: pooka Date: Tue Mar 2 23:49:11 UTC 2010 Modified Files: src/sys/nfs: files.nfs Log Message: don't create unused fs_nfs.h To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/nfs/files.nfs Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/modules/ffs
Module Name:src Committed By: pooka Date: Wed Mar 3 00:01:21 UTC 2010 Modified Files: src/sys/modules/ffs: Makefile Log Message: -DFFS is no longer necessary To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/modules/ffs/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/modules/ffs
Module Name:src Committed By: pooka Date: Wed Mar 3 00:01:21 UTC 2010 Modified Files: src/sys/modules/ffs: Makefile Log Message: -DFFS is no longer necessary To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/modules/ffs/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/modules/ffs/Makefile diff -u src/sys/modules/ffs/Makefile:1.3 src/sys/modules/ffs/Makefile:1.4 --- src/sys/modules/ffs/Makefile:1.3 Sun Feb 22 20:28:06 2009 +++ src/sys/modules/ffs/Makefile Wed Mar 3 00:01:20 2010 @@ -1,11 +1,11 @@ -# $NetBSD: Makefile,v 1.3 2009/02/22 20:28:06 ad Exp $ +# $NetBSD: Makefile,v 1.4 2010/03/03 00:01:20 pooka Exp $ .include ../Makefile.inc .PATH: ${S}/ufs/ffs KMOD= ffs -CPPFLAGS+= -DUFS_DIRHASH -DFFS_EI -DWAPBL -DAPPLE_UFS -DQUOTA -DFFS +CPPFLAGS+= -DUFS_DIRHASH -DFFS_EI -DWAPBL -DAPPLE_UFS -DQUOTA .PATH: ${S}/ufs/ufs SRCS= ufs_bmap.c ufs_dirhash.c ufs_extattr.c ufs_ihash.c ufs_inode.c \
CVS commit: src/sys/arch/xen/x86
Module Name:src Committed By: jym Date: Wed Mar 3 00:09:03 UTC 2010 Modified Files: src/sys/arch/xen/x86: cpu.c Log Message: Use roundup2() instead of hardcoding the CACHE_LINE_SIZE rounding operation. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/sys/arch/xen/x86/cpu.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/xen/x86
Module Name:src Committed By: jym Date: Wed Mar 3 00:09:03 UTC 2010 Modified Files: src/sys/arch/xen/x86: cpu.c Log Message: Use roundup2() instead of hardcoding the CACHE_LINE_SIZE rounding operation. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/sys/arch/xen/x86/cpu.c 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/xen/x86/cpu.c diff -u src/sys/arch/xen/x86/cpu.c:1.41 src/sys/arch/xen/x86/cpu.c:1.42 --- src/sys/arch/xen/x86/cpu.c:1.41 Wed Feb 24 22:37:55 2010 +++ src/sys/arch/xen/x86/cpu.c Wed Mar 3 00:09:03 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.c,v 1.41 2010/02/24 22:37:55 dyoung Exp $ */ +/* $NetBSD: cpu.c,v 1.42 2010/03/03 00:09:03 jym Exp $ */ /* NetBSD: cpu.c,v 1.18 2004/02/20 17:35:01 yamt Exp */ /*- @@ -66,7 +66,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: cpu.c,v 1.41 2010/02/24 22:37:55 dyoung Exp $); +__KERNEL_RCSID(0, $NetBSD: cpu.c,v 1.42 2010/03/03 00:09:03 jym Exp $); #include opt_ddb.h #include opt_multiprocessor.h @@ -236,8 +236,7 @@ aprint_naive(: Application Processor\n); ptr = (uintptr_t)kmem_zalloc(sizeof(*ci) + CACHE_LINE_SIZE - 1, KM_SLEEP); - ci = (struct cpu_info *)((ptr + CACHE_LINE_SIZE - 1) - ~(CACHE_LINE_SIZE - 1)); + ci = (struct cpu_info *)roundup2(ptr, CACHE_LINE_SIZE); ci-ci_curldt = -1; } else { aprint_naive(: %s Processor\n, @@ -372,8 +371,7 @@ aprint_naive(: Application Processor\n); ptr = (uintptr_t)kmem_alloc(sizeof(*ci) + CACHE_LINE_SIZE - 1, KM_SLEEP); - ci = (struct cpu_info *)((ptr + CACHE_LINE_SIZE - 1) - ~(CACHE_LINE_SIZE - 1)); + ci = (struct cpu_info *)roundup2(ptr, CACHE_LINE_SIZE); memset(ci, 0, sizeof(*ci)); #ifdef TRAPLOG ci-ci_tlog_base = kmem_zalloc(sizeof(struct tlog), KM_SLEEP);
CVS commit: src/sys/arch
Module Name:src Committed By: pooka Date: Wed Mar 3 00:30:16 UTC 2010 Modified Files: src/sys/arch/amigappc/amigappc: locore.S src/sys/arch/bebox/bebox: locore.S src/sys/arch/evbppc/ev64260: ev64260_locore.S src/sys/arch/evbppc/pmppc: pmppc_locore.S src/sys/arch/ibmnws/ibmnws: locore.S src/sys/arch/mvmeppc/mvmeppc: locore.S src/sys/arch/prep/prep: locore.S src/sys/arch/rs6000/rs6000: locore.S src/sys/arch/sandpoint/sandpoint: locore.S Log Message: Fix some historical powerpc curiocity which had kernfs depend on startsym/endsym, and which crept into most powerpc ports. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/sys/arch/amigappc/amigappc/locore.S cvs rdiff -u -r1.20 -r1.21 src/sys/arch/bebox/bebox/locore.S cvs rdiff -u -r1.14 -r1.15 src/sys/arch/evbppc/ev64260/ev64260_locore.S cvs rdiff -u -r1.6 -r1.7 src/sys/arch/evbppc/pmppc/pmppc_locore.S cvs rdiff -u -r1.7 -r1.8 src/sys/arch/ibmnws/ibmnws/locore.S cvs rdiff -u -r1.11 -r1.12 src/sys/arch/mvmeppc/mvmeppc/locore.S cvs rdiff -u -r1.14 -r1.15 src/sys/arch/prep/prep/locore.S cvs rdiff -u -r1.6 -r1.7 src/sys/arch/rs6000/rs6000/locore.S cvs rdiff -u -r1.18 -r1.19 src/sys/arch/sandpoint/sandpoint/locore.S 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/amigappc/amigappc/locore.S diff -u src/sys/arch/amigappc/amigappc/locore.S:1.19 src/sys/arch/amigappc/amigappc/locore.S:1.20 --- src/sys/arch/amigappc/amigappc/locore.S:1.19 Thu Feb 25 23:33:43 2010 +++ src/sys/arch/amigappc/amigappc/locore.S Wed Mar 3 00:30:15 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: locore.S,v 1.19 2010/02/25 23:33:43 matt Exp $ */ +/* $NetBSD: locore.S,v 1.20 2010/03/03 00:30:15 pooka Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -36,7 +36,6 @@ * Rewritten for 4.0 and bootargs support by Frank Wille. */ #include opt_ddb.h -#include fs_kernfs.h #include opt_ipkdb.h #include opt_lockdebug.h #include opt_multiprocessor.h @@ -167,7 +166,7 @@ lis 6,_C_LABEL(end)+...@ha addi 6,6,_C_LABEL(end)+...@l rlwinm 7,6,0,0,29 /* startsym = end - 32-bit alignment */ -#if NKSYMS || defined(DDB) || defined(MODULAR) || defined(KERNFS) +#if NKSYMS || defined(DDB) || defined(MODULAR) lis 8,_C_LABEL(startsym)@ha stw 7,_C_LABEL(startsym)@l(8) mr. 27,27 /* esym == 0 ? */ Index: src/sys/arch/bebox/bebox/locore.S diff -u src/sys/arch/bebox/bebox/locore.S:1.20 src/sys/arch/bebox/bebox/locore.S:1.21 --- src/sys/arch/bebox/bebox/locore.S:1.20 Thu Feb 25 23:33:44 2010 +++ src/sys/arch/bebox/bebox/locore.S Wed Mar 3 00:30:15 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: locore.S,v 1.20 2010/02/25 23:33:44 matt Exp $ */ +/* $NetBSD: locore.S,v 1.21 2010/03/03 00:30:15 pooka Exp $ */ /* $OpenBSD: locore.S,v 1.4 1997/01/26 09:06:38 rahnds Exp $ */ /* @@ -33,7 +33,6 @@ */ #include opt_ddb.h -#include fs_kernfs.h #include opt_ipkdb.h #include opt_lockdebug.h #include opt_modular.h @@ -153,7 +152,7 @@ __start_cpu0: /* compute end of kernel memory */ -#if defined(DDB) || defined(KERNFS) || NKSYMS || defined(MODULAR) +#if defined(DDB) || NKSYMS || defined(MODULAR) lis 7,_C_LABEL(startsym)@ha addi 7,7,_C_LABEL(startsym)@l stw 3,0(7) Index: src/sys/arch/evbppc/ev64260/ev64260_locore.S diff -u src/sys/arch/evbppc/ev64260/ev64260_locore.S:1.14 src/sys/arch/evbppc/ev64260/ev64260_locore.S:1.15 --- src/sys/arch/evbppc/ev64260/ev64260_locore.S:1.14 Sat Feb 27 22:12:31 2010 +++ src/sys/arch/evbppc/ev64260/ev64260_locore.S Wed Mar 3 00:30:15 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: ev64260_locore.S,v 1.14 2010/02/27 22:12:31 snj Exp $ */ +/* $NetBSD: ev64260_locore.S,v 1.15 2010/03/03 00:30:15 pooka Exp $ */ /* $OpenBSD: locore.S,v 1.4 1997/01/26 09:06:38 rahnds Exp $ */ /* @@ -33,7 +33,6 @@ */ #include opt_ddb.h -#include fs_kernfs.h #include opt_ppcparam.h #include opt_ipkdb.h #include opt_modular.h @@ -214,7 +213,7 @@ /* compute end of kernel memory */ lis 8,_C_LABEL(end)@ha addi 8,8,_C_LABEL(end)@l -#if NKSYMS || defined(DDB) || defined(MODULAR) || defined(KERNFS) +#if NKSYMS || defined(DDB) || defined(MODULAR) lis 7,_C_LABEL(startsym)@ha addi 7,7,_C_LABEL(startsym)@l stw 3,0(7) Index: src/sys/arch/evbppc/pmppc/pmppc_locore.S diff -u src/sys/arch/evbppc/pmppc/pmppc_locore.S:1.6 src/sys/arch/evbppc/pmppc/pmppc_locore.S:1.7 --- src/sys/arch/evbppc/pmppc/pmppc_locore.S:1.6 Sat Feb 27 22:12:31 2010 +++ src/sys/arch/evbppc/pmppc/pmppc_locore.S Wed Mar 3 00:30:15 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: pmppc_locore.S,v 1.6 2010/02/27 22:12:31 snj Exp $ */ +/* $NetBSD: pmppc_locore.S,v 1.7 2010/03/03 00:30:15 pooka Exp $ */ /* $OpenBSD: locore.S,v 1.4 1997/01/26 09:06:38 rahnds Exp $ */ /* @@ -34,7 +34,6 @@ #include opt_ddb.h #include opt_kgdb.h -#include fs_kernfs.h #include opt_ipkdb.h #include opt_multiprocessor.h #include opt_openpic.h
CVS commit: src/external/bsd/iscsi/dist
Module Name:src Committed By: yamt Date: Wed Mar 3 00:44:52 UTC 2010 Modified Files: src/external/bsd/iscsi/dist/include: iscsiprotocol.h src/external/bsd/iscsi/dist/src/lib: disk.c target.c Log Message: fix multi-thread problems wrt read/write buffer. PR/42651. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/external/bsd/iscsi/dist/include/iscsiprotocol.h cvs rdiff -u -r1.5 -r1.6 src/external/bsd/iscsi/dist/src/lib/disk.c cvs rdiff -u -r1.6 -r1.7 src/external/bsd/iscsi/dist/src/lib/target.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/bsd/iscsi/dist/include/iscsiprotocol.h diff -u src/external/bsd/iscsi/dist/include/iscsiprotocol.h:1.1 src/external/bsd/iscsi/dist/include/iscsiprotocol.h:1.2 --- src/external/bsd/iscsi/dist/include/iscsiprotocol.h:1.1 Thu Jun 25 13:47:09 2009 +++ src/external/bsd/iscsi/dist/include/iscsiprotocol.h Wed Mar 3 00:44:51 2010 @@ -391,6 +391,7 @@ uint8_t *ahs; uint8_t ahs_len; uint8_t *send_data; + uint8_t *send_buffer; /* malloc'ed buffer for READ */ int32_t send_sg_len; uint8_t *recv_data; int32_t recv_sg_len; Index: src/external/bsd/iscsi/dist/src/lib/disk.c diff -u src/external/bsd/iscsi/dist/src/lib/disk.c:1.5 src/external/bsd/iscsi/dist/src/lib/disk.c:1.6 --- src/external/bsd/iscsi/dist/src/lib/disk.c:1.5 Wed Jan 20 10:33:08 2010 +++ src/external/bsd/iscsi/dist/src/lib/disk.c Wed Mar 3 00:44:51 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: disk.c,v 1.5 2010/01/20 10:33:08 yamt Exp $ */ +/* $NetBSD: disk.c,v 1.6 2010/03/03 00:44:51 yamt Exp $ */ /*- * Copyright (c) 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc. @@ -100,6 +100,8 @@ #include netinet/in.h #endif +#include assert.h + #ifdef HAVE_ERRNO_H #include errno.h #endif @@ -149,7 +151,6 @@ typedef struct iscsi_disk_t { int type; /* type of disk - fs/mmap and fs */ char filename[MAXPATHLEN]; /* filename for the disk */ - uint8_t *buffer; /* buffer for disk read/write ops */ uint64_t blockc; /* # of blocks */ uint64_t blocklen; /* block size */ uint64_t luns; /* # of luns */ @@ -859,7 +860,6 @@ } idisk-size = de_getsize(tp-de); idisk-blockc = idisk-size / idisk-blocklen; - NEWARRAY(uint8_t, idisk-buffer, MB(1), buffer1, ;); idisk-type = ISCSI_FS; printf(DISK: % PRIu64 logical unit%s (% PRIu64 blocks, % PRIu64 bytes/block), type %s\n, @@ -1386,6 +1386,7 @@ uint64_tbyte_offset; uint64_tbytec; uint8_t*ptr; + int result; byte_offset = lba * disks.v[sess-d].blocklen; bytec = len * disks.v[sess-d].blocklen; @@ -1402,7 +1403,7 @@ } /* Assign ptr for write data */ - ptr = disks.v[sess-d].buffer; + ptr = malloc(MB(1)); /* Have target do data transfer */ sg.iov_base = ptr; @@ -1410,7 +1411,8 @@ if (target_transfer_data(sess, args, sg, 1) != 0) { iscsi_err(__FILE__, __LINE__, target_transfer_data() failed\n); - return -1; + result = -1; + goto out; } /* Finish up write */ if (de_lseek(disks.v[sess-d].lunv-v[lun].de, (off_t)byte_offset, @@ -1418,7 +1420,8 @@ iscsi_err(__FILE__, __LINE__, lseek() to offset % PRIu64 failed\n, byte_offset); - return -1; + result = -1; + goto out; } if (!target_writable(disks.v[sess-d].lunv-v[lun])) { iscsi_err(__FILE__, __LINE__, @@ -1426,7 +1429,8 @@ PRIu64 , size % PRIu64 [READONLY TARGET]\n, bytec, byte_offset, de_getsize(disks.v[sess-d].lunv-v[lun].de)); - return -1; + result = -1; + goto out; } if ((uint64_t)de_write(disks.v[sess-d].lunv-v[lun].de, ptr, (unsigned) bytec) != bytec) { @@ -1435,11 +1439,15 @@ PRIu64 , size % PRIu64 \n, bytec, byte_offset, de_getsize(disks.v[sess-d].lunv-v[lun].de)); - return -1; + result = -1; + goto out; } iscsi_trace(TRACE_SCSI_DATA, wrote % PRIu64 bytes to device OK\n, bytec); - return 0; + result = 0; +out: + free(ptr); + return result; } static int @@ -1452,11 +1460,12 @@ uint8_t*ptr; uint32_tn; int rc; + int result; + assert(args-send_buffer == NULL); byte_offset = lba * disks.v[sess-d].blocklen; bytec = len * disks.v[sess-d].blocklen; extra = 0; - ptr = NULL; if (len == 0) { iscsi_err(__FILE__, __LINE__, Zero \len\\n); NO_CLEANUP; @@ -1475,20 +1484,22 @@ NO_CLEANUP; return -1; } - ptr = disks.v[sess-d].buffer; + ptr = malloc(MB(1)); n = 0; do { if (de_lseek(disks.v[sess-d].lunv-v[lun].de, (off_t)(n + byte_offset), SEEK_SET) == -1) { iscsi_err(__FILE__, __LINE__, lseek failed\n); - return -1; + result = -1; + goto out; } rc = de_read(disks.v[sess-d].lunv-v[lun].de, ptr + n, (size_t)(bytec - n)); if (rc = 0) { iscsi_err(__FILE__, __LINE__, read failed: rc %d errno %d\n, rc, errno); - return -1; + result = -1; + goto out; } n += rc; if (n bytec) { @@ -1504,5 +1515,9
CVS commit: src/sys/sys
Module Name:src Committed By: yamt Date: Wed Mar 3 00:45:55 UTC 2010 Modified Files: src/sys/sys: proc.h Log Message: comment To generate a diff of this commit: cvs rdiff -u -r1.295 -r1.296 src/sys/sys/proc.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/sys/proc.h diff -u src/sys/sys/proc.h:1.295 src/sys/sys/proc.h:1.296 --- src/sys/sys/proc.h:1.295 Sun Feb 21 02:11:39 2010 +++ src/sys/sys/proc.h Wed Mar 3 00:45:55 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: proc.h,v 1.295 2010/02/21 02:11:39 darran Exp $ */ +/* $NetBSD: proc.h,v 1.296 2010/03/03 00:45:55 yamt Exp $ */ /*- * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -533,6 +533,10 @@ return p; } + +/* + * PROCLIST_FOREACH: iterate on the given proclist, skipping PK_MARKER ones. + */ #define PROCLIST_FOREACH(var, head) \ for ((var) = LIST_FIRST(head); \ ((var) = _proclist_skipmarker(var)) != NULL; \
CVS commit: src/sys/kern
Module Name:src Committed By: yamt Date: Wed Mar 3 00:47:31 UTC 2010 Modified Files: src/sys/kern: kern_exit.c kern_ktrace.c kern_resource.c kern_runq.c kern_sig.c kern_synch.c vfs_syscalls.c Log Message: remove redundant checks of PK_MARKER. To generate a diff of this commit: cvs rdiff -u -r1.226 -r1.227 src/sys/kern/kern_exit.c cvs rdiff -u -r1.150 -r1.151 src/sys/kern/kern_ktrace.c cvs rdiff -u -r1.154 -r1.155 src/sys/kern/kern_resource.c cvs rdiff -u -r1.29 -r1.30 src/sys/kern/kern_runq.c cvs rdiff -u -r1.303 -r1.304 src/sys/kern/kern_sig.c cvs rdiff -u -r1.279 -r1.280 src/sys/kern/kern_synch.c cvs rdiff -u -r1.403 -r1.404 src/sys/kern/vfs_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/kern/kern_exit.c diff -u src/sys/kern/kern_exit.c:1.226 src/sys/kern/kern_exit.c:1.227 --- src/sys/kern/kern_exit.c:1.226 Mon Mar 1 21:10:15 2010 +++ src/sys/kern/kern_exit.c Wed Mar 3 00:47:30 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_exit.c,v 1.226 2010/03/01 21:10:15 darran Exp $ */ +/* $NetBSD: kern_exit.c,v 1.227 2010/03/03 00:47:30 yamt Exp $ */ /*- * Copyright (c) 1998, 1999, 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -67,7 +67,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: kern_exit.c,v 1.226 2010/03/01 21:10:15 darran Exp $); +__KERNEL_RCSID(0, $NetBSD: kern_exit.c,v 1.227 2010/03/03 00:47:30 yamt Exp $); #include opt_ktrace.h #include opt_perfctrs.h @@ -436,8 +436,6 @@ */ if (__predict_false(p-p_slflag PSL_CHTRACED)) { PROCLIST_FOREACH(q, allproc) { - if ((q-p_flag PK_MARKER) != 0) -continue; if (q-p_opptr == p) q-p_opptr = NULL; } Index: src/sys/kern/kern_ktrace.c diff -u src/sys/kern/kern_ktrace.c:1.150 src/sys/kern/kern_ktrace.c:1.151 --- src/sys/kern/kern_ktrace.c:1.150 Fri Oct 2 21:47:35 2009 +++ src/sys/kern/kern_ktrace.c Wed Mar 3 00:47:30 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_ktrace.c,v 1.150 2009/10/02 21:47:35 elad Exp $ */ +/* $NetBSD: kern_ktrace.c,v 1.151 2010/03/03 00:47:30 yamt Exp $ */ /*- * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -61,7 +61,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: kern_ktrace.c,v 1.150 2009/10/02 21:47:35 elad Exp $); +__KERNEL_RCSID(0, $NetBSD: kern_ktrace.c,v 1.151 2010/03/03 00:47:30 yamt Exp $); #include sys/param.h #include sys/systm.h @@ -499,7 +499,7 @@ mutex_enter(proc_lock); PROCLIST_FOREACH(p, allproc) { - if ((p-p_flag PK_MARKER) != 0 || p-p_tracep != ktd) + if (p-p_tracep != ktd) continue; mutex_enter(p-p_lock); mutex_enter(ktrace_lock); Index: src/sys/kern/kern_resource.c diff -u src/sys/kern/kern_resource.c:1.154 src/sys/kern/kern_resource.c:1.155 --- src/sys/kern/kern_resource.c:1.154 Fri Oct 2 22:46:18 2009 +++ src/sys/kern/kern_resource.c Wed Mar 3 00:47:30 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_resource.c,v 1.154 2009/10/02 22:46:18 elad Exp $ */ +/* $NetBSD: kern_resource.c,v 1.155 2010/03/03 00:47:30 yamt Exp $ */ /*- * Copyright (c) 1982, 1986, 1991, 1993 @@ -37,7 +37,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: kern_resource.c,v 1.154 2009/10/02 22:46:18 elad Exp $); +__KERNEL_RCSID(0, $NetBSD: kern_resource.c,v 1.155 2010/03/03 00:47:30 yamt Exp $); #include sys/param.h #include sys/systm.h @@ -192,8 +192,6 @@ if (who == 0) who = (int)kauth_cred_geteuid(l-l_cred); PROCLIST_FOREACH(p, allproc) { - if ((p-p_flag PK_MARKER) != 0) -continue; mutex_enter(p-p_lock); if (kauth_cred_geteuid(p-p_cred) == (uid_t)who p-p_nice low) @@ -263,8 +261,6 @@ if (who == 0) who = (int)kauth_cred_geteuid(l-l_cred); PROCLIST_FOREACH(p, allproc) { - if ((p-p_flag PK_MARKER) != 0) -continue; mutex_enter(p-p_lock); if (kauth_cred_geteuid(p-p_cred) == (uid_t)SCARG(uap, who)) { Index: src/sys/kern/kern_runq.c diff -u src/sys/kern/kern_runq.c:1.29 src/sys/kern/kern_runq.c:1.30 --- src/sys/kern/kern_runq.c:1.29 Wed Jan 13 01:57:17 2010 +++ src/sys/kern/kern_runq.c Wed Mar 3 00:47:30 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_runq.c,v 1.29 2010/01/13 01:57:17 mrg Exp $ */ +/* $NetBSD: kern_runq.c,v 1.30 2010/03/03 00:47:30 yamt Exp $ */ /* * Copyright (c) 2007, 2008 Mindaugas Rasiukevicius rmind at NetBSD org @@ -27,7 +27,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: kern_runq.c,v 1.29 2010/01/13 01:57:17 mrg Exp $); +__KERNEL_RCSID(0, $NetBSD: kern_runq.c,v 1.30 2010/03/03 00:47:30 yamt Exp $); #include sys/param.h #include sys/kernel.h @@ -892,8 +892,6 @@ LID, PRI, EPRI, FL, ST, LWP, CPU, TCI, LRTICKS); PROCLIST_FOREACH(p, allproc) { - if ((p-p_flag PK_MARKER) != 0) - continue; (*pr)( /- %d (%s)\n, (int)p-p_pid, p-p_comm); LIST_FOREACH(l, p-p_lwps, l_sibling) { ci = l-l_cpu; Index: src/sys/kern/kern_sig.c diff -u src/sys/kern/kern_sig.c:1.303
CVS commit: src/sys/kern
Module Name:src Committed By: yamt Date: Wed Mar 3 00:47:31 UTC 2010 Modified Files: src/sys/kern: kern_exit.c kern_ktrace.c kern_resource.c kern_runq.c kern_sig.c kern_synch.c vfs_syscalls.c Log Message: remove redundant checks of PK_MARKER. To generate a diff of this commit: cvs rdiff -u -r1.226 -r1.227 src/sys/kern/kern_exit.c cvs rdiff -u -r1.150 -r1.151 src/sys/kern/kern_ktrace.c cvs rdiff -u -r1.154 -r1.155 src/sys/kern/kern_resource.c cvs rdiff -u -r1.29 -r1.30 src/sys/kern/kern_runq.c cvs rdiff -u -r1.303 -r1.304 src/sys/kern/kern_sig.c cvs rdiff -u -r1.279 -r1.280 src/sys/kern/kern_synch.c cvs rdiff -u -r1.403 -r1.404 src/sys/kern/vfs_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/kern
Module Name:src Committed By: pooka Date: Wed Mar 3 00:49:39 UTC 2010 Modified Files: src/sys/kern: kern_stub.c Log Message: Remove fs_lfs now that the syscall is always defined. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/kern/kern_stub.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/kern
Module Name:src Committed By: pooka Date: Wed Mar 3 00:49:39 UTC 2010 Modified Files: src/sys/kern: kern_stub.c Log Message: Remove fs_lfs now that the syscall is always defined. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/kern/kern_stub.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/kern/kern_stub.c diff -u src/sys/kern/kern_stub.c:1.21 src/sys/kern/kern_stub.c:1.22 --- src/sys/kern/kern_stub.c:1.21 Tue Nov 3 05:23:28 2009 +++ src/sys/kern/kern_stub.c Wed Mar 3 00:49:39 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_stub.c,v 1.21 2009/11/03 05:23:28 dyoung Exp $ */ +/* $NetBSD: kern_stub.c,v 1.22 2010/03/03 00:49:39 pooka Exp $ */ /*- * Copyright (c) 2007, 2008 The NetBSD Foundation, Inc. @@ -62,15 +62,12 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: kern_stub.c,v 1.21 2009/11/03 05:23:28 dyoung Exp $); +__KERNEL_RCSID(0, $NetBSD: kern_stub.c,v 1.22 2010/03/03 00:49:39 pooka Exp $); #include opt_ptrace.h #include opt_ktrace.h #include opt_modular.h #include opt_sa.h -#ifdef _KERNEL_OPT -#include fs_lfs.h -#endif /* XXX To get syscall prototypes. */ #define SYSVSHM @@ -303,9 +300,7 @@ { SYS_compat_50_settimeofday, compat }, { SYS_compat_50_utimes, compat }, { SYS_compat_50_adjtime, compat }, -#ifdef LFS { SYS_compat_50_lfs_segwait, compat }, -#endif { SYS_compat_50_futimes, compat }, { SYS_compat_50_clock_gettime, compat }, { SYS_compat_50_clock_settime, compat },
CVS commit: src/sys/dev/cardbus
Module Name:src Committed By: dyoung Date: Wed Mar 3 00:56:41 UTC 2010 Modified Files: src/sys/dev/cardbus: rbus_ppb.c Log Message: Simplify interrupt (dis)establishment by two source transformations: - cardbus_intr_disestablish(cc, cf, ih); + Cardbus_intr_disestablish(ct, ih); - ih = cardbus_intr_establish(cc, cf, ...); + ih = Cardbus_intr_establish(ct, ...); Compiles. Untested. Let me know if you use this hardware with NetBSD any longer. To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/sys/dev/cardbus/rbus_ppb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.