CVS commit: src/sys/arch/sandpoint/conf
Module Name:src Committed By: phx Date: Sat Feb 11 12:31:47 UTC 2012 Modified Files: src/sys/arch/sandpoint/conf: GENERIC Log Message: Add support for ATAPI CD/DVD drives as well. To generate a diff of this commit: cvs rdiff -u -r1.69 -r1.70 src/sys/arch/sandpoint/conf/GENERIC 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/sandpoint/conf/GENERIC diff -u src/sys/arch/sandpoint/conf/GENERIC:1.69 src/sys/arch/sandpoint/conf/GENERIC:1.70 --- src/sys/arch/sandpoint/conf/GENERIC:1.69 Fri Feb 10 21:09:19 2012 +++ src/sys/arch/sandpoint/conf/GENERIC Sat Feb 11 12:31:47 2012 @@ -1,4 +1,4 @@ -# $NetBSD: GENERIC,v 1.69 2012/02/10 21:09:19 phx Exp $ +# $NetBSD: GENERIC,v 1.70 2012/02/11 12:31:47 phx Exp $ # # machine description file for GENERIC NAS # @@ -22,7 +22,7 @@ include "arch/sandpoint/conf/std.sandpo options INCLUDE_CONFIG_FILE # embed config file in kernel binary -#ident "GENERIC-$Revision: 1.69 $" +#ident "GENERIC-$Revision: 1.70 $" maxusers 32 @@ -264,6 +264,9 @@ scsibus* at umass? sd* at scsibus? target ? lun ? # SCSI disk drives cd* at scsibus? target ? lun ? # SCSI CD-ROM drives +atapibus* at atapi? +cd* at atapibus? drive ? flags 0x # ATAPI CD-ROM drives + # # Pseudo-Devices #
CVS commit: src/sys/arch/powerpc/oea
Module Name:src Committed By: kiyohara Date: Sat Feb 11 13:53:59 UTC 2012 Modified Files: src/sys/arch/powerpc/oea: prep_machdep.c Log Message: Fix panic() on KASSERT(len >= BAT_BL_8M) in oea_iobat_add(). Thanks phx@. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/powerpc/oea/prep_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/oea/prep_machdep.c diff -u src/sys/arch/powerpc/oea/prep_machdep.c:1.9 src/sys/arch/powerpc/oea/prep_machdep.c:1.10 --- src/sys/arch/powerpc/oea/prep_machdep.c:1.9 Wed Feb 1 09:54:03 2012 +++ src/sys/arch/powerpc/oea/prep_machdep.c Sat Feb 11 13:53:59 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: prep_machdep.c,v 1.9 2012/02/01 09:54:03 matt Exp $ */ +/* $NetBSD: prep_machdep.c,v 1.10 2012/02/11 13:53:59 kiyohara Exp $ */ /*- * Copyright (c) 2007 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: prep_machdep.c,v 1.9 2012/02/01 09:54:03 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: prep_machdep.c,v 1.10 2012/02/11 13:53:59 kiyohara Exp $"); #include "opt_modular.h" @@ -147,7 +147,7 @@ prep_initppc(u_long startkernel, u_long PREP_BUS_SPACE_MEM, BAT_BL_256M, PREP_BUS_SPACE_IO, BAT_BL_256M, #if defined(bebox) - 0x7000, BAT_BL_128K, /* BeBox Mainboard Registers (4KB) */ + 0x7000, BAT_BL_8M, /* BeBox Mainboard Registers (4KB) */ #elif defined(prep) 0xbf80, BAT_BL_8M, #endif
CVS commit: src/external/mit/expat/dist
Module Name:src Committed By: tron Date: Sat Feb 11 18:18:24 UTC 2012 Update of /cvsroot/src/external/mit/expat/dist In directory ivanova.netbsd.org:/tmp/cvs-serv16625 Log Message: Initial import of "expat" 2.0.1 into base: This is James Clark's expat XML parser library in C. It is a stream oriented parser that requires setting handlers to deal with the structure that the parser discovers in the document. This is the first part of the fix for PR lib/40346. Status: Vendor Tag: expat Release Tags: expat-2-0-1 N src/external/mit/expat/dist/Changes N src/external/mit/expat/dist/MANIFEST N src/external/mit/expat/dist/Makefile.in N src/external/mit/expat/dist/configure N src/external/mit/expat/dist/configure.in N src/external/mit/expat/dist/README N src/external/mit/expat/dist/expat.dsw N src/external/mit/expat/dist/expat_config.h.in N src/external/mit/expat/dist/COPYING N src/external/mit/expat/dist/doc/style.css N src/external/mit/expat/dist/doc/xmlwf.1 N src/external/mit/expat/dist/doc/valid-xhtml10.png N src/external/mit/expat/dist/doc/reference.html N src/external/mit/expat/dist/doc/xmlwf.sgml N src/external/mit/expat/dist/doc/expat.png N src/external/mit/expat/dist/xmlwf/xmlfile.c N src/external/mit/expat/dist/xmlwf/xmlmime.c N src/external/mit/expat/dist/xmlwf/readfilemap.c N src/external/mit/expat/dist/xmlwf/xmlwin32url.cxx N src/external/mit/expat/dist/xmlwf/xmlurl.h N src/external/mit/expat/dist/xmlwf/codepage.c N src/external/mit/expat/dist/xmlwf/ct.c N src/external/mit/expat/dist/xmlwf/filemap.h N src/external/mit/expat/dist/xmlwf/unixfilemap.c N src/external/mit/expat/dist/xmlwf/xmlmime.h N src/external/mit/expat/dist/xmlwf/xmlwf.dsp N src/external/mit/expat/dist/xmlwf/xmltchar.h N src/external/mit/expat/dist/xmlwf/xmlwf.c N src/external/mit/expat/dist/xmlwf/codepage.h N src/external/mit/expat/dist/xmlwf/xmlfile.h N src/external/mit/expat/dist/xmlwf/win32filemap.c N src/external/mit/expat/dist/vms/descrip.mms N src/external/mit/expat/dist/vms/expat_config.h N src/external/mit/expat/dist/vms/README.vms N src/external/mit/expat/dist/lib/expat.dsp N src/external/mit/expat/dist/lib/xmltok.h N src/external/mit/expat/dist/lib/expatw.dsp N src/external/mit/expat/dist/lib/xmltok.c N src/external/mit/expat/dist/lib/xmlrole.c N src/external/mit/expat/dist/lib/expat_static.dsp N src/external/mit/expat/dist/lib/libexpat.def N src/external/mit/expat/dist/lib/winconfig.h N src/external/mit/expat/dist/lib/latin1tab.h N src/external/mit/expat/dist/lib/libexpatw.def N src/external/mit/expat/dist/lib/expatw_static.dsp N src/external/mit/expat/dist/lib/expat.h N src/external/mit/expat/dist/lib/xmlparse.c N src/external/mit/expat/dist/lib/utf8tab.h N src/external/mit/expat/dist/lib/asciitab.h N src/external/mit/expat/dist/lib/nametab.h N src/external/mit/expat/dist/lib/ascii.h N src/external/mit/expat/dist/lib/expat_external.h N src/external/mit/expat/dist/lib/iasciitab.h N src/external/mit/expat/dist/lib/xmltok_impl.h N src/external/mit/expat/dist/lib/macconfig.h N src/external/mit/expat/dist/lib/Makefile.MPW N src/external/mit/expat/dist/lib/internal.h N src/external/mit/expat/dist/lib/xmlrole.h N src/external/mit/expat/dist/lib/xmltok_ns.c N src/external/mit/expat/dist/lib/amigaconfig.h N src/external/mit/expat/dist/lib/xmltok_impl.c N src/external/mit/expat/dist/examples/elements.dsp N src/external/mit/expat/dist/examples/elements.c N src/external/mit/expat/dist/examples/outline.c N src/external/mit/expat/dist/examples/outline.dsp N src/external/mit/expat/dist/bcb5/makefile.mak N src/external/mit/expat/dist/bcb5/expat_static.bpf N src/external/mit/expat/dist/bcb5/libexpatw_mtd.def N src/external/mit/expat/dist/bcb5/expat.bpr N src/external/mit/expat/dist/bcb5/expatw.mak N src/external/mit/expat/dist/bcb5/expatw_static.bpf N src/external/mit/expat/dist/bcb5/libexpat_mtd.def N src/external/mit/expat/dist/bcb5/setup.bat N src/external/mit/expat/dist/bcb5/expatw.bpr N src/external/mit/expat/dist/bcb5/xmlwf.bpr N src/external/mit/expat/dist/bcb5/outline.bpr N src/external/mit/expat/dist/bcb5/expat_static.mak N src/external/mit/expat/dist/bcb5/expatw_static.bpr N src/external/mit/expat/dist/bcb5/expatw.bpf N src/external/mit/expat/dist/bcb5/outline.mak N src/external/mit/expat/dist/bcb5/outline.bpf N src/external/mit/expat/dist/bcb5/xmlwf.mak N src/external/mit/expat/dist/bcb5/expat_static.bpr N src/external/mit/expat/dist/bcb5/expat.mak N src/external/mit/expat/dist/bcb5/elements.bpr N src/external/mit/expat/dist/bcb5/elements.mak N src/external/mit/expat/dist/bcb5/all_projects.bpg N src/external/mit/expat/dist/bcb5/elements.bpf N src/external/mit/expat/dist/bcb5/expat.bpf N src/external/mit/expat/dist/bcb5/xmlwf.bpf N src/external/mit/expat/dist/bcb5/expatw_static.mak N src/external/mit/expat/dist/bcb5/README.txt N src/external/mit/expat/dist/amiga/expat_lib.c N src/external/mit/expat/dist/amiga/Makefile N src/external/mit/expat/dist/amiga/launch.c N src/external/mit/expat/di
CVS commit: src/external/mit/expat/dist
Module Name:src Committed By: tron Date: Sat Feb 11 18:22:59 UTC 2012 Modified Files: src/external/mit/expat/dist/conftools: ac_c_bigendian_cross.m4 mkinstalldirs src/external/mit/expat/dist/lib: xmlparse.c xmltok_impl.c Log Message: Re-apply NetBSD patches. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 \ src/external/mit/expat/dist/conftools/ac_c_bigendian_cross.m4 \ src/external/mit/expat/dist/conftools/mkinstalldirs cvs rdiff -u -r1.1.1.1 -r1.2 src/external/mit/expat/dist/lib/xmlparse.c \ src/external/mit/expat/dist/lib/xmltok_impl.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/mit/expat/dist/conftools/ac_c_bigendian_cross.m4 diff -u src/external/mit/expat/dist/conftools/ac_c_bigendian_cross.m4:1.1.1.1 src/external/mit/expat/dist/conftools/ac_c_bigendian_cross.m4:1.2 --- src/external/mit/expat/dist/conftools/ac_c_bigendian_cross.m4:1.1.1.1 Sat Feb 11 18:18:21 2012 +++ src/external/mit/expat/dist/conftools/ac_c_bigendian_cross.m4 Sat Feb 11 18:22:58 2012 @@ -7,7 +7,7 @@ dnl The implementation will create a bin dnl the binary it will be grep'ed for some symbols that will look dnl different for different endianess of the binary. dnl -dnl @version $Id: ac_c_bigendian_cross.m4,v 1.1.1.1 2012/02/11 18:18:21 tron Exp $ +dnl @version $Id: ac_c_bigendian_cross.m4,v 1.2 2012/02/11 18:22:58 tron Exp $ dnl @author Guido Draheim dnl AC_DEFUN([AC_C_BIGENDIAN_CROSS], Index: src/external/mit/expat/dist/conftools/mkinstalldirs diff -u src/external/mit/expat/dist/conftools/mkinstalldirs:1.1.1.1 src/external/mit/expat/dist/conftools/mkinstalldirs:1.2 --- src/external/mit/expat/dist/conftools/mkinstalldirs:1.1.1.1 Sat Feb 11 18:18:21 2012 +++ src/external/mit/expat/dist/conftools/mkinstalldirs Sat Feb 11 18:22:58 2012 @@ -4,7 +4,7 @@ # Created: 1993-05-16 # Public domain -# $Id: mkinstalldirs,v 1.1.1.1 2012/02/11 18:18:21 tron Exp $ +# $Id: mkinstalldirs,v 1.2 2012/02/11 18:22:58 tron Exp $ errstatus=0 Index: src/external/mit/expat/dist/lib/xmlparse.c diff -u src/external/mit/expat/dist/lib/xmlparse.c:1.1.1.1 src/external/mit/expat/dist/lib/xmlparse.c:1.2 --- src/external/mit/expat/dist/lib/xmlparse.c:1.1.1.1 Sat Feb 11 18:18:19 2012 +++ src/external/mit/expat/dist/lib/xmlparse.c Sat Feb 11 18:22:58 2012 @@ -3703,6 +3703,9 @@ doProlog(XML_Parser parser, return XML_ERROR_UNCLOSED_TOKEN; case XML_TOK_PARTIAL_CHAR: return XML_ERROR_PARTIAL_CHAR; + case -XML_TOK_PROLOG_S: + tok = -tok; + break; case XML_TOK_NONE: #ifdef XML_DTD /* for internal PE NOT referenced between declarations */ Index: src/external/mit/expat/dist/lib/xmltok_impl.c diff -u src/external/mit/expat/dist/lib/xmltok_impl.c:1.1.1.1 src/external/mit/expat/dist/lib/xmltok_impl.c:1.2 --- src/external/mit/expat/dist/lib/xmltok_impl.c:1.1.1.1 Sat Feb 11 18:18:19 2012 +++ src/external/mit/expat/dist/lib/xmltok_impl.c Sat Feb 11 18:22:58 2012 @@ -1744,7 +1744,7 @@ PREFIX(updatePosition)(const ENCODING *e const char *end, POSITION *pos) { - while (ptr != end) { + while (ptr < end) { switch (BYTE_TYPE(enc, ptr)) { #define LEAD_CASE(n) \ case BT_LEAD ## n: \
CVS commit: src/sys/arch/x86/x86
Module Name:src Committed By: chs Date: Sat Feb 11 18:59:41 UTC 2012 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: zero out the unused parts of direct-map page-table pages. these seem to cause problems even though they aren't actually referenced, probably due to speculative execution. fixes PR 45892. To generate a diff of this commit: cvs rdiff -u -r1.163 -r1.164 src/sys/arch/x86/x86/pmap.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/x86/x86/pmap.c diff -u src/sys/arch/x86/x86/pmap.c:1.163 src/sys/arch/x86/x86/pmap.c:1.164 --- src/sys/arch/x86/x86/pmap.c:1.163 Wed Feb 1 18:55:32 2012 +++ src/sys/arch/x86/x86/pmap.c Sat Feb 11 18:59:41 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.163 2012/02/01 18:55:32 cherry Exp $ */ +/* $NetBSD: pmap.c,v 1.164 2012/02/11 18:59:41 chs Exp $ */ /*- * Copyright (c) 2008, 2010 The NetBSD Foundation, Inc. @@ -171,7 +171,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.163 2012/02/01 18:55:32 cherry Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.164 2012/02/11 18:59:41 chs Exp $"); #include "opt_user_ldt.h" #include "opt_lockdebug.h" @@ -1188,7 +1188,7 @@ pmap_bootstrap(vaddr_t kva_start) #ifdef __HAVE_DIRECT_MAP phys_ram_seg_t *mc; long ndmpdp; - paddr_t dmpd, dmpdp, pdp; + paddr_t lastpa, dmpd, dmpdp, pdp; vaddr_t tmpva; #endif @@ -1331,10 +1331,19 @@ pmap_bootstrap(vaddr_t kva_start) * otherwise use 2MB pages. */ - mc = &mem_clusters[mem_cluster_cnt - 1]; - ndmpdp = (mc->start + mc->size + NBPD_L3 - 1) >> L3_SHIFT; + lastpa = 0; + for (i = 0; i < mem_cluster_cnt; i++) { + mc = &mem_clusters[i]; + lastpa = MAX(lastpa, mc->start + mc->size); + } + + ndmpdp = (lastpa + NBPD_L3 - 1) >> L3_SHIFT; dmpdp = avail_start; avail_start += PAGE_SIZE; + *pte = dmpdp | PG_V | PG_RW; + pmap_update_pg(tmpva); + memset((void *)tmpva, 0, PAGE_SIZE); + if (cpu_feature[2] & CPUID_P1GB) { for (i = 0; i < ndmpdp; i++) { pdp = (paddr_t)&(((pd_entry_t *)dmpdp)[i]); @@ -1348,6 +1357,13 @@ pmap_bootstrap(vaddr_t kva_start) } else { dmpd = avail_start; avail_start += ndmpdp * PAGE_SIZE; + for (i = 0; i < ndmpdp; i++) { + pdp = dmpd + i * PAGE_SIZE; + *pte = (pdp & PG_FRAME) | PG_V | PG_RW; + pmap_update_pg(tmpva); + + memset((void *)tmpva, 0, PAGE_SIZE); + } for (i = 0; i < NPDPG * ndmpdp; i++) { pdp = (paddr_t)&(((pd_entry_t *)dmpd)[i]); *pte = (pdp & PG_FRAME) | PG_V | PG_RW;
CVS commit: src/sys/arch/x86/acpi
Module Name:src Committed By: jruoho Date: Sat Feb 11 22:07:53 UTC 2012 Modified Files: src/sys/arch/x86/acpi: acpi_cpu_md.c Log Message: Add non-XPSS support for AMD family 15h a.k.a. "Bulldozer". Ok releng@. To generate a diff of this commit: cvs rdiff -u -r1.69 -r1.70 src/sys/arch/x86/acpi/acpi_cpu_md.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/x86/acpi/acpi_cpu_md.c diff -u src/sys/arch/x86/acpi/acpi_cpu_md.c:1.69 src/sys/arch/x86/acpi/acpi_cpu_md.c:1.70 --- src/sys/arch/x86/acpi/acpi_cpu_md.c:1.69 Tue Nov 15 07:20:30 2011 +++ src/sys/arch/x86/acpi/acpi_cpu_md.c Sat Feb 11 22:07:53 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_cpu_md.c,v 1.69 2011/11/15 07:20:30 jruoho Exp $ */ +/* $NetBSD: acpi_cpu_md.c,v 1.70 2012/02/11 22:07:53 jruoho Exp $ */ /*- * Copyright (c) 2010, 2011 Jukka Ruohonen @@ -27,7 +27,7 @@ * SUCH DAMAGE. */ #include -__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_md.c,v 1.69 2011/11/15 07:20:30 jruoho Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_md.c,v 1.70 2012/02/11 22:07:53 jruoho Exp $"); #include #include @@ -68,7 +68,7 @@ __KERNEL_RCSID(0, "$NetBSD: acpi_cpu_md. #define MSR_CMPHALT_BMSTS __BIT(29) /* - * AMD families 10h, 11h, 12h, and 14h. + * AMD families 10h, 11h, 12h, 14h, and 15h. */ #define MSR_10H_LIMIT 0xc0010061 #define MSR_10H_CONTROL 0xc0010062 @@ -275,6 +275,7 @@ acpicpu_md_flags(void) case 0x12: case 0x14: /* AMD Fusion */ + case 0x15: /* AMD Bulldozer */ /* * Like with Intel, detect invariant TSC,
CVS commit: src/sys/arch/x86/acpi
Module Name:src Committed By: jruoho Date: Sat Feb 11 22:09:47 UTC 2012 Modified Files: src/sys/arch/x86/acpi: acpi_cpu_md.c Log Message: Fix missing case for AMD 0x15. To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71 src/sys/arch/x86/acpi/acpi_cpu_md.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/x86/acpi/acpi_cpu_md.c diff -u src/sys/arch/x86/acpi/acpi_cpu_md.c:1.70 src/sys/arch/x86/acpi/acpi_cpu_md.c:1.71 --- src/sys/arch/x86/acpi/acpi_cpu_md.c:1.70 Sat Feb 11 22:07:53 2012 +++ src/sys/arch/x86/acpi/acpi_cpu_md.c Sat Feb 11 22:09:47 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_cpu_md.c,v 1.70 2012/02/11 22:07:53 jruoho Exp $ */ +/* $NetBSD: acpi_cpu_md.c,v 1.71 2012/02/11 22:09:47 jruoho Exp $ */ /*- * Copyright (c) 2010, 2011 Jukka Ruohonen @@ -27,7 +27,7 @@ * SUCH DAMAGE. */ #include -__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_md.c,v 1.70 2012/02/11 22:07:53 jruoho Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_md.c,v 1.71 2012/02/11 22:09:47 jruoho Exp $"); #include #include @@ -553,7 +553,8 @@ acpicpu_md_pstate_init(struct acpicpu_so case 0x10: case 0x11: case 0x12: - case 0x14: /* AMD Fusion */ + case 0x14: + case 0x15: msr.ps_control_addr = MSR_10H_CONTROL; msr.ps_control_mask = __BITS(0, 2);
CVS commit: src/sys
Module Name:src Committed By: martin Date: Sat Feb 11 23:18:14 UTC 2012 Modified Files: src/sys/kern: init_sysent.c syscalls.c src/sys/rump/include/rump: rump_syscalls.h src/sys/rump/librump/rumpkern: rump_syscalls.c src/sys/sys: syscall.h syscallargs.h Log Message: Regen for posix_spawn To generate a diff of this commit: cvs rdiff -u -r1.260 -r1.261 src/sys/kern/init_sysent.c cvs rdiff -u -r1.251 -r1.252 src/sys/kern/syscalls.c cvs rdiff -u -r1.54 -r1.55 src/sys/rump/include/rump/rump_syscalls.h cvs rdiff -u -r1.76 -r1.77 src/sys/rump/librump/rumpkern/rump_syscalls.c cvs rdiff -u -r1.247 -r1.248 src/sys/sys/syscall.h cvs rdiff -u -r1.230 -r1.231 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.260 src/sys/kern/init_sysent.c:1.261 --- src/sys/kern/init_sysent.c:1.260 Wed Feb 1 05:42:17 2012 +++ src/sys/kern/init_sysent.c Sat Feb 11 23:18:13 2012 @@ -1,14 +1,14 @@ -/* $NetBSD: init_sysent.c,v 1.260 2012/02/01 05:42:17 dholland Exp $ */ +/* $NetBSD: init_sysent.c,v 1.261 2012/02/11 23:18:13 martin Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.253 2012/02/01 05:34:41 dholland Exp + * created from NetBSD: syscalls.master,v 1.254 2012/02/11 23:16:17 martin Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.260 2012/02/01 05:42:17 dholland Exp $"); +__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.261 2012/02/11 23:18:13 martin Exp $"); #include "opt_modular.h" #include "opt_ntp.h" @@ -1140,8 +1140,8 @@ struct sysent sysent[] = { (sy_call_t *)sys_futimens }, /* 472 = futimens */ { ns(struct sys___quotactl_args), 0, (sy_call_t *)sys___quotactl }, /* 473 = __quotactl */ - { 0, 0, 0, - sys_nosys }, /* 474 = filler */ + { ns(struct sys_posix_spawn_args), 0, + (sy_call_t *)sys_posix_spawn }, /* 474 = posix_spawn */ { 0, 0, 0, sys_nosys }, /* 475 = filler */ { 0, 0, 0, Index: src/sys/kern/syscalls.c diff -u src/sys/kern/syscalls.c:1.251 src/sys/kern/syscalls.c:1.252 --- src/sys/kern/syscalls.c:1.251 Wed Feb 1 05:42:18 2012 +++ src/sys/kern/syscalls.c Sat Feb 11 23:18:13 2012 @@ -1,14 +1,14 @@ -/* $NetBSD: syscalls.c,v 1.251 2012/02/01 05:42:18 dholland Exp $ */ +/* $NetBSD: syscalls.c,v 1.252 2012/02/11 23:18:13 martin Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.253 2012/02/01 05:34:41 dholland Exp + * created from NetBSD: syscalls.master,v 1.254 2012/02/11 23:16:17 martin Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.251 2012/02/01 05:42:18 dholland Exp $"); +__KERNEL_RCSID(0, "$NetBSD: syscalls.c,v 1.252 2012/02/11 23:18:13 martin Exp $"); #if defined(_KERNEL_OPT) #include "opt_modular.h" @@ -563,7 +563,7 @@ const char *const syscallnames[] = { /* 471 */ "unlinkat", /* 472 */ "futimens", /* 473 */ "__quotactl", - /* 474 */ "# filler", + /* 474 */ "posix_spawn", /* 475 */ "# filler", /* 476 */ "# filler", /* 477 */ "# filler", Index: src/sys/rump/include/rump/rump_syscalls.h diff -u src/sys/rump/include/rump/rump_syscalls.h:1.54 src/sys/rump/include/rump/rump_syscalls.h:1.55 --- src/sys/rump/include/rump/rump_syscalls.h:1.54 Wed Feb 1 05:42:18 2012 +++ src/sys/rump/include/rump/rump_syscalls.h Sat Feb 11 23:18:13 2012 @@ -1,10 +1,10 @@ -/* $NetBSD: rump_syscalls.h,v 1.54 2012/02/01 05:42:18 dholland Exp $ */ +/* $NetBSD: rump_syscalls.h,v 1.55 2012/02/11 23:18:13 martin Exp $ */ /* * System call protos in rump namespace. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.253 2012/02/01 05:34:41 dholland Exp + * created from NetBSD: syscalls.master,v 1.254 2012/02/11 23:16:17 martin Exp */ #ifndef _RUMP_RUMP_SYSCALLS_H_ Index: src/sys/rump/librump/rumpkern/rump_syscalls.c diff -u src/sys/rump/librump/rumpkern/rump_syscalls.c:1.76 src/sys/rump/librump/rumpkern/rump_syscalls.c:1.77 --- src/sys/rump/librump/rumpkern/rump_syscalls.c:1.76 Wed Feb 1 05:42:18 2012 +++ src/sys/rump/librump/rumpkern/rump_syscalls.c Sat Feb 11 23:18:14 2012 @@ -1,14 +1,14 @@ -/* $NetBSD: rump_syscalls.c,v 1.76 2012/02/01 05:42:18 dholland Exp $ */ +/* $NetBSD: rump_syscalls.c,v 1.77 2012/02/11 23:18:14 martin Exp $ */ /* * System call vector and marshalling for rump. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.253 2012/02/01 05:34:41 dholland Exp + * created from NetBSD: syscalls.master,v 1.254 2012/02/11 23:16:17 martin Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.76 2012/02/01 05:42:18 dholland Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rump_syscalls.c,v 1.77 2012/02/11 23:
CVS commit: src/sys/sys
Module Name:src Committed By: martin Date: Sat Feb 11 23:19:11 UTC 2012 Modified Files: src/sys/sys: param.h Log Message: Welcome to 5.99.65 - posix_spawn syscall added To generate a diff of this commit: cvs rdiff -u -r1.407 -r1.408 src/sys/sys/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/sys/param.h diff -u src/sys/sys/param.h:1.407 src/sys/sys/param.h:1.408 --- src/sys/sys/param.h:1.407 Fri Feb 3 20:12:48 2012 +++ src/sys/sys/param.h Sat Feb 11 23:19:11 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.407 2012/02/03 20:12:48 matt Exp $ */ +/* $NetBSD: param.h,v 1.408 2012/02/11 23:19:11 martin Exp $ */ /*- * Copyright (c) 1982, 1986, 1989, 1993 @@ -63,7 +63,7 @@ * 2.99.9 (299000900) */ -#define __NetBSD_Version__ 599006400 /* NetBSD 5.99.64 */ +#define __NetBSD_Version__ 599006500 /* NetBSD 5.99.65 */ #define __NetBSD_Prereq__(M,m,p) (M) * 1) + \ (m) * 100) + (p) * 100) <= __NetBSD_Version__)
CVS commit: src/doc
Module Name:src Committed By: martin Date: Sat Feb 11 23:36:18 UTC 2012 Modified Files: src/doc: CHANGES Log Message: Note posix_spawn addition To generate a diff of this commit: cvs rdiff -u -r1.1668 -r1.1669 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES diff -u src/doc/CHANGES:1.1668 src/doc/CHANGES:1.1669 --- src/doc/CHANGES:1.1668 Tue Feb 7 19:37:14 2012 +++ src/doc/CHANGES Sat Feb 11 23:36:18 2012 @@ -1,4 +1,4 @@ -# LIST OF CHANGES FROM LAST RELEASE: <$Revision: 1.1668 $> +# LIST OF CHANGES FROM LAST RELEASE: <$Revision: 1.1669 $> # # # [Note: This file does not mention every change made to the NetBSD source tree. @@ -1241,3 +1241,5 @@ Changes from NetBSD 5.0 to NetBSD 6.0: [joerg 20120207] userland: Man pages are formatted with mandoc by default. [joerg 20120207] + posix_spawn: Import Charles Zhang's summer of code project. + [martin 20120212]
CVS commit: src/lib/libc/sys
Module Name:src Committed By: martin Date: Sun Feb 12 01:46:05 UTC 2012 Modified Files: src/lib/libc/sys: makelintstub Log Message: Add missing include To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/lib/libc/sys/makelintstub Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/sys/makelintstub diff -u src/lib/libc/sys/makelintstub:1.24 src/lib/libc/sys/makelintstub:1.25 --- src/lib/libc/sys/makelintstub:1.24 Wed Feb 1 05:34:40 2012 +++ src/lib/libc/sys/makelintstub Sun Feb 12 01:46:05 2012 @@ -1,5 +1,5 @@ #!/bin/sh - -# $NetBSD: makelintstub,v 1.24 2012/02/01 05:34:40 dholland Exp $ +# $NetBSD: makelintstub,v 1.25 2012/02/12 01:46:05 martin Exp $ # # Copyright (c) 1996, 1997 Christopher G. Demetriou # All rights reserved. @@ -74,6 +74,7 @@ header() #include #include #include + #include #include #include #include
CVS commit: src/sys/arch/mips/ralink
Module Name:src Committed By: oki Date: Sun Feb 12 01:51:53 UTC 2012 Modified Files: src/sys/arch/mips/ralink: ralink_reg.h Log Message: add RT3050 SYSCTL_CFG0 values. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/mips/ralink/ralink_reg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/mips/ralink/ralink_reg.h diff -u src/sys/arch/mips/ralink/ralink_reg.h:1.3 src/sys/arch/mips/ralink/ralink_reg.h:1.4 --- src/sys/arch/mips/ralink/ralink_reg.h:1.3 Wed Aug 3 16:27:15 2011 +++ src/sys/arch/mips/ralink/ralink_reg.h Sun Feb 12 01:51:52 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: ralink_reg.h,v 1.3 2011/08/03 16:27:15 matt Exp $ */ +/* $NetBSD: ralink_reg.h,v 1.4 2012/02/12 01:51:52 oki Exp $ */ /*- * Copyright (c) 2011 CradlePoint Technology, Inc. * All rights reserved. @@ -127,6 +127,18 @@ #define RA_SYSCTL_RSTSTAT 0x38 #define RA_SYSCTL_GPIOMODE 0x60 +#if defined(RT3050) || defined(RT3052) +#define SYSCTL_CFG0_INIC_EE_SDRAM __BIT(29) +#define SYSCTL_CFG0_INIC_8MB_SDRAM __BIT(28) +#define SYSCTL_CFG0_GE0_MODE __BITS(24,25) +#define SYSCTL_CFG0_BYPASS_PLL __BIT(21) +#define SYSCTL_CFG0_BE __BIT(20) +#define SYSCTL_CFG0_CPU_CLK_SEL __BIT(18) +#define SYSCTL_CFG0_BOOT_FROM __BITS(16,17) +#define SYSCTL_CFG0_TEST_CODE __BITS(8,15) +#define SYSCTL_CFG0_SRAM_CS_MODE __BITS(2,3) +#define SYSCTL_CFG0_SDRAM_CLK_DRV __BIT(0) +#else #define SYSCTL_CFG0_BE __BIT(19) #define SYSCTL_CFG0_DRAM_SIZE __BITS(12,14) #define SYSCTL_CFG0_DRAM_2MB 0 @@ -136,6 +148,7 @@ #define SYSCTL_CFG0_DRAM_64MB 4 #define SYSCTL_CFG0_DRAM_128MB 5 #define SYSCTL_CFG0_DRAM_256MB 6 +#endif #if defined(RT3883) /* 3883 doesn't have memo regs, use teststat instead */
CVS commit: [matt-nb5-mips64] src/sys/uvm
Module Name:src Committed By: matt Date: Sun Feb 12 07:30:25 UTC 2012 Modified Files: src/sys/uvm [matt-nb5-mips64]: uvm_pdpolicy_clock.c Log Message: Disable some of more agressive debug checks since with lots of pages, they cause O(n^2) increases in time. To generate a diff of this commit: cvs rdiff -u -r1.12.16.2 -r1.12.16.3 src/sys/uvm/uvm_pdpolicy_clock.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/uvm/uvm_pdpolicy_clock.c diff -u src/sys/uvm/uvm_pdpolicy_clock.c:1.12.16.2 src/sys/uvm/uvm_pdpolicy_clock.c:1.12.16.3 --- src/sys/uvm/uvm_pdpolicy_clock.c:1.12.16.2 Thu Feb 9 03:05:01 2012 +++ src/sys/uvm/uvm_pdpolicy_clock.c Sun Feb 12 07:30:25 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_pdpolicy_clock.c,v 1.12.16.2 2012/02/09 03:05:01 matt Exp $ */ +/* $NetBSD: uvm_pdpolicy_clock.c,v 1.12.16.3 2012/02/12 07:30:25 matt Exp $ */ /* NetBSD: uvm_pdaemon.c,v 1.72 2006/01/05 10:47:33 yamt Exp $ */ /* @@ -74,7 +74,7 @@ #else /* defined(PDSIM) */ #include -__KERNEL_RCSID(0, "$NetBSD: uvm_pdpolicy_clock.c,v 1.12.16.2 2012/02/09 03:05:01 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_pdpolicy_clock.c,v 1.12.16.3 2012/02/12 07:30:25 matt Exp $"); #include #include @@ -208,7 +208,7 @@ uvmpdpol_selectvictim(struct uvm_pggroup struct vm_anon *anon; struct uvm_object *uobj; - KDASSERT(gs->gs_inactive == clock_pglist_count(&gs->gs_inactiveq)); + //KDASSERT(gs->gs_inactive == clock_pglist_count(&gs->gs_inactiveq)); if (ss->ss_first) { pg = TAILQ_FIRST(&gs->gs_inactiveq); @@ -287,7 +287,7 @@ uvmpdpol_balancequeue(struct uvm_pggroup * our inactive target. */ - KDASSERT(gs->gs_active == clock_pglist_count(&gs->gs_activeq)); + //KDASSERT(gs->gs_active == clock_pglist_count(&gs->gs_activeq)); u_int inactive_shortage = gs->gs_inactarg - gs->gs_inactive; for (pg = TAILQ_FIRST(&gs->gs_activeq); @@ -319,7 +319,7 @@ uvmpdpol_balancequeue(struct uvm_pggroup } } - KDASSERT(gs->gs_active == clock_pglist_count(&gs->gs_activeq)); + //KDASSERT(gs->gs_active == clock_pglist_count(&gs->gs_activeq)); } void @@ -330,7 +330,7 @@ uvmpdpol_pagedeactivate(struct vm_page * KASSERT(mutex_owned(&uvm_pageqlock)); - KDASSERT(gs->gs_active == clock_pglist_count(&gs->gs_activeq)); + //KDASSERT(gs->gs_active == clock_pglist_count(&gs->gs_activeq)); if (pg->pqflags & PQ_ACTIVE) { TAILQ_REMOVE(&gs->gs_activeq, pg, pageq.queue); @@ -340,8 +340,8 @@ uvmpdpol_pagedeactivate(struct vm_page * grp->pgrp_active--; } - KDASSERT(gs->gs_active == clock_pglist_count(&gs->gs_activeq)); - KDASSERT(gs->gs_inactive == clock_pglist_count(&gs->gs_inactiveq)); + //KDASSERT(gs->gs_active == clock_pglist_count(&gs->gs_activeq)); + //KDASSERT(gs->gs_inactive == clock_pglist_count(&gs->gs_inactiveq)); if ((pg->pqflags & PQ_INACTIVE) == 0) { KASSERT(pg->wire_count == 0); @@ -352,7 +352,7 @@ uvmpdpol_pagedeactivate(struct vm_page * grp->pgrp_inactive++; } - KDASSERT(gs->gs_inactive == clock_pglist_count(&gs->gs_inactiveq)); + //KDASSERT(gs->gs_inactive == clock_pglist_count(&gs->gs_inactiveq)); } void @@ -367,7 +367,7 @@ uvmpdpol_pageactivate(struct vm_page *pg gs->gs_active++; grp->pgrp_active++; - KDASSERT(gs->gs_active == clock_pglist_count(&gs->gs_activeq)); + //KDASSERT(gs->gs_active == clock_pglist_count(&gs->gs_activeq)); } void @@ -376,7 +376,7 @@ uvmpdpol_pagedequeue(struct vm_page *pg) struct uvm_pggroup * const grp = uvm_page_to_pggroup(pg); struct uvmpdpol_groupstate * const gs = grp->pgrp_gs; - KDASSERT(gs->gs_active == clock_pglist_count(&gs->gs_activeq)); + //KDASSERT(gs->gs_active == clock_pglist_count(&gs->gs_activeq)); if (pg->pqflags & PQ_ACTIVE) { KASSERT(mutex_owned(&uvm_pageqlock)); @@ -387,8 +387,8 @@ uvmpdpol_pagedequeue(struct vm_page *pg) grp->pgrp_active--; } - KDASSERT(gs->gs_active == clock_pglist_count(&gs->gs_activeq)); - KDASSERT(gs->gs_inactive == clock_pglist_count(&gs->gs_inactiveq)); + //KDASSERT(gs->gs_active == clock_pglist_count(&gs->gs_activeq)); + //KDASSERT(gs->gs_inactive == clock_pglist_count(&gs->gs_inactiveq)); if (pg->pqflags & PQ_INACTIVE) { KASSERT(mutex_owned(&uvm_pageqlock)); @@ -399,7 +399,7 @@ uvmpdpol_pagedequeue(struct vm_page *pg) grp->pgrp_inactive--; } - KDASSERT(gs->gs_inactive == clock_pglist_count(&gs->gs_inactiveq)); + //KDASSERT(gs->gs_inactive == clock_pglist_count(&gs->gs_inactiveq)); } void @@ -430,8 +430,8 @@ uvmpdpol_estimatepageable(u_int *activep STAILQ_FOREACH(grp, &uvm.page_groups, pgrp_uvm_link) { struct uvmpdpol_groupstate * const gs = grp->pgrp_gs; - KDASSERT(gs->gs_active == clock_pglist_count(&gs->gs_activeq)); - KDASSERT(gs->gs_inactive == clock_pglist_count(&gs->gs_inactiveq)); + //KDASSERT(gs->gs_active == clock_pglist_count(&gs->gs_activeq)); + //KDASSERT(gs->gs_inactive == clock_pglist_count(&gs->gs_inactiveq)); activ
CVS commit: [matt-nb5-mips64] src/sys/arch/mips/mips
Module Name:src Committed By: matt Date: Sun Feb 12 07:48:37 UTC 2012 Modified Files: src/sys/arch/mips/mips [matt-nb5-mips64]: pmap.c Log Message: pmap pv pages can come from KSEGX too. To generate a diff of this commit: cvs rdiff -u -r1.179.16.39 -r1.179.16.40 src/sys/arch/mips/mips/pmap.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/mips/mips/pmap.c diff -u src/sys/arch/mips/mips/pmap.c:1.179.16.39 src/sys/arch/mips/mips/pmap.c:1.179.16.40 --- src/sys/arch/mips/mips/pmap.c:1.179.16.39 Fri Feb 10 08:15:58 2012 +++ src/sys/arch/mips/mips/pmap.c Sun Feb 12 07:48:37 2012 @@ -2538,8 +2538,15 @@ pmap_pv_page_free(struct pool *pp, void KASSERT(MIPS_XKPHYS_P(va)); pa = MIPS_XKPHYS_TO_PHYS(va); #else - KASSERT(MIPS_KSEG0_P(va)); - pa = MIPS_KSEG0_TO_PHYS(va); +#ifdef ENABLE_MIPS_KSEGX + if (VM_KSEGX_ADDRESS <= va && va <= VM_KSEGX_ADDRESS + VM_KSEGX_SIZE) { + pa = mips_ksegx_start + va - VM_KSEGX_ADDRESS; + } else +#endif + { + KASSERT(MIPS_KSEG0_P(va)); + pa = MIPS_KSEG0_TO_PHYS(va); + } #endif #ifdef MIPS3_PLUS if (MIPS_CACHE_VIRTUAL_ALIAS)