Re: CVS commit: src/sys/arch/x86/acpi

2014-04-18 Thread Jukka Ruohonen
On Thu, Apr 17, 2014 at 12:01:24PM -0400, Christos Zoulas wrote:
 Module Name:  src
 Committed By: christos
 Date: Thu Apr 17 16:01:24 UTC 2014
 
 Modified Files:
   src/sys/arch/x86/acpi: acpi_cpu_md.c
 
 Log Message:
 CID/1203191: Out of bounds read

Oh, nasty. The code was pretty much copy-pasted from ../x86/x86/est.c,
which might be therefore worth to briefly check too.

- Jukka.


Re: CVS commit: src/usr.bin/xlint/lint1

2014-04-18 Thread Alan Barrett

On Fri, 18 Apr 2014, matthew green wrote:
don't include fmemopen in tools builds. Since tools does not 
define _NETBSD_SOURCE, we don't get the fmemopen prototype


hmm is that because we define _SOMEOTHER_SOURCE?

_NETBSD_SOURCE should be defined normally, unless you start to 
ask for restricted namespaces...


src/tools/compat/compat_defs.h goes to a lot of trouble to ensure 
that _NETBSD_SOURCE does not get defined.  I don't understand why 
that is done.


--apb (Alan Barrett)


re: CVS commit: src/usr.bin/xlint/lint1

2014-04-18 Thread Christos Zoulas
On Apr 18,  3:24pm, m...@eterna.com.au (matthew green) wrote:
-- Subject: re: CVS commit: src/usr.bin/xlint/lint1

| 
| Christos Zoulas writes:
|  Module Name:src
|  Committed By:   christos
|  Date:   Fri Apr 18 02:17:14 UTC 2014
|  
|  Modified Files:
|  src/usr.bin/xlint/lint1: main1.c
|  
|  Log Message:
|  don't include fmemopen in tools builds. Since tools does not define
|  _NETBSD_SOURCE, we don't get the fmemopen prototype
| 
| hmm is that because we define _SOMEOTHER_SOURCE?
| 
| _NETBSD_SOURCE should be defined normally, unless you start to ask
| for restricted namespaces...

Yes, I think we define _POSIX_SOURCE. fmemopen is problematic because
it uses funopen() which cannot be easily implemented with 3rd party
stdio.

christos


Re: CVS commit: src/sys/arch/x86/acpi

2014-04-18 Thread Christos Zoulas
In article 20140418072727.GA2474@marx.bitnet,
Jukka Ruohonen  jruoho...@iki.fi wrote:
On Thu, Apr 17, 2014 at 12:01:24PM -0400, Christos Zoulas wrote:
 Module Name: src
 Committed By:christos
 Date:Thu Apr 17 16:01:24 UTC 2014
 
 Modified Files:
  src/sys/arch/x86/acpi: acpi_cpu_md.c
 
 Log Message:
 CID/1203191: Out of bounds read

Oh, nasty. The code was pretty much copy-pasted from ../x86/x86/est.c,
which might be therefore worth to briefly check too.

It was correct, but I made it more conservative.

christos



re: CVS commit: src/usr.bin/xlint/lint1

2014-04-18 Thread matthew green


Alan Barrett writes:
 On Fri, 18 Apr 2014, matthew green wrote:
  don't include fmemopen in tools builds. Since tools does not 
  define _NETBSD_SOURCE, we don't get the fmemopen prototype
 
  hmm is that because we define _SOMEOTHER_SOURCE?
 
  _NETBSD_SOURCE should be defined normally, unless you start to 
  ask for restricted namespaces...
 
 src/tools/compat/compat_defs.h goes to a lot of trouble to ensure 
 that _NETBSD_SOURCE does not get defined.  I don't understand why 
 that is done.

indeed.

that's probably a good idea in general -- it means that we're
going to have a restricted environment for tools, even on netbsd,
which helps keep them portable to other platforms.


.mrg.


CVS commit: src/sys/arch/arm/samsung

2014-04-18 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Fri Apr 18 11:37:17 UTC 2014

Modified Files:
src/sys/arch/arm/samsung: sscom.c

Log Message:
Second handle to bus_space_read_* is the bus_space_handle, not a repeat of the
bus_space_tag


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/arm/samsung/sscom.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/arm/samsung/sscom.c
diff -u src/sys/arch/arm/samsung/sscom.c:1.3 src/sys/arch/arm/samsung/sscom.c:1.4
--- src/sys/arch/arm/samsung/sscom.c:1.3	Wed Apr 16 21:28:51 2014
+++ src/sys/arch/arm/samsung/sscom.c	Fri Apr 18 11:37:17 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: sscom.c,v 1.3 2014/04/16 21:28:51 reinoud Exp $ */
+/*	$NetBSD: sscom.c,v 1.4 2014/04/18 11:37:17 reinoud Exp $ */
 
 /*
  * Copyright (c) 2002, 2003 Fujitsu Component Limited
@@ -98,7 +98,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: sscom.c,v 1.3 2014/04/16 21:28:51 reinoud Exp $);
+__KERNEL_RCSID(0, $NetBSD: sscom.c,v 1.4 2014/04/18 11:37:17 reinoud Exp $);
 
 #include opt_sscom.h
 #include opt_ddb.h
@@ -339,8 +339,8 @@ void
 sscomstatus(struct sscom_softc *sc, const char *str)
 {
 	struct tty *tp = sc-sc_tty;
-	int umstat = bus_space_read_1(sc-sc_iot, sc-sc_iot, SSCOM_UMSTAT);
-	int umcon = bus_space_read_4(sc-sc_iot, sc-sc_iot, SSCOM_UMCON);
+	int umstat = bus_space_read_1(sc-sc_iot, sc-sc_ioh, SSCOM_UMSTAT);
+	int umcon = bus_space_read_4(sc-sc_iot, sc-sc_ioh, SSCOM_UMCON);
 
 	printf(%s: %s %sclocal  %sdcd %sts_carr_on %sdtr %stx_stopped\n,
 	device_xname(sc-sc_dev), str,



CVS commit: src/sys/arch/evbarm/odroid

2014-04-18 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Fri Apr 18 14:17:12 UTC 2014

Modified Files:
src/sys/arch/evbarm/odroid: odroid_machdep.c

Log Message:
Oops, i forgot to commit this patch on the `teaching sscom to use attach with
bus_space_handle_t'


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/evbarm/odroid/odroid_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/evbarm/odroid/odroid_machdep.c
diff -u src/sys/arch/evbarm/odroid/odroid_machdep.c:1.6 src/sys/arch/evbarm/odroid/odroid_machdep.c:1.7
--- src/sys/arch/evbarm/odroid/odroid_machdep.c:1.6	Tue Apr 15 20:36:07 2014
+++ src/sys/arch/evbarm/odroid/odroid_machdep.c	Fri Apr 18 14:17:11 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: odroid_machdep.c,v 1.6 2014/04/15 20:36:07 reinoud Exp $ */
+/*	$NetBSD: odroid_machdep.c,v 1.7 2014/04/18 14:17:11 reinoud Exp $ */
 
 /*
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: odroid_machdep.c,v 1.6 2014/04/15 20:36:07 reinoud Exp $);
+__KERNEL_RCSID(0, $NetBSD: odroid_machdep.c,v 1.7 2014/04/18 14:17:11 reinoud Exp $);
 
 #include opt_evbarm_boardtype.h
 #include opt_exynos.h
@@ -111,37 +111,37 @@ static const struct sscom_uart_info exyn
 #ifdef EXYNOS5
 	{
 		.unit= 0,
-		.iobase = EXYNOS5_CORE_PBASE + EXYNOS5_UART0_OFFSET
+		.iobase = EXYNOS5_UART0_OFFSET
 	},
 	{
 		.unit= 1,
-		.iobase = EXYNOS5_CORE_PBASE + EXYNOS5_UART1_OFFSET
+		.iobase = EXYNOS5_UART1_OFFSET
 	},
 	{
 		.unit= 2,
-		.iobase = EXYNOS5_CORE_PBASE + EXYNOS5_UART2_OFFSET
+		.iobase = EXYNOS5_UART2_OFFSET
 	},
 	{
 		.unit= 3,
-		.iobase = EXYNOS5_CORE_PBASE + EXYNOS5_UART3_OFFSET
+		.iobase = EXYNOS5_UART3_OFFSET
 	},
 #endif
 #ifdef EXYNOS4
 	{
 		.unit= 0,
-		.iobase = EXYNOS5_CORE_PBASE + EXYNOS4_UART0_OFFSET
+		.iobase = EXYNOS4_UART0_OFFSET
 	},
 	{
 		.unit= 1,
-		.iobase = EXYNOS5_CORE_PBASE + EXYNOS4_UART1_OFFSET
+		.iobase = EXYNOS4_UART1_OFFSET
 	},
 	{
 		.unit= 2,
-		.iobase = EXYNOS5_CORE_PBASE + EXYNOS4_UART2_OFFSET
+		.iobase = EXYNOS4_UART2_OFFSET
 	},
 	{
 		.unit= 3,
-		.iobase = EXYNOS5_CORE_PBASE + EXYNOS4_UART3_OFFSET
+		.iobase = EXYNOS4_UART3_OFFSET
 	},
 #endif
 };
@@ -427,21 +427,24 @@ void
 consinit(void)
 {
 	static bool consinit_called;
+
 	if (consinit_called)
 		return;
 	consinit_called = true;
 
 #if NSSCOM  0
-	bus_space_tag_t iot = exynos_bs_tag;
 	bus_addr_t iobase = armreg_tpidruro_read();
 	size_t i;
+
 	for (i = 0; i  __arraycount(exynos_uarts); i++) {
 		/* attach console */
-		if (exynos_uarts[i].iobase == iobase)
+		if (exynos_uarts[i].iobase + EXYNOS_CORE_PBASE == iobase)
 			break;
 	}
 	KASSERT(i  __arraycount(exynos_uarts));
-	if (sscom_cnattach(iot, exynos_uarts[i], conspeed, EXYNOS_UART_FREQ,
+
+	if (sscom_cnattach(exynos_bs_tag, exynos_core_bsh,
+			exynos_uarts[i], conspeed, EXYNOS_UART_FREQ,
 			conmode))
 		panic(Serial console can not be initialized);
 #else



CVS commit: src/sys/dev/ic

2014-04-18 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Fri Apr 18 21:45:22 UTC 2014

Modified Files:
src/sys/dev/ic: vga_raster.c

Log Message:
include VGA kernel options


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/ic/vga_raster.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/ic/vga_raster.c
diff -u src/sys/dev/ic/vga_raster.c:1.38 src/sys/dev/ic/vga_raster.c:1.39
--- src/sys/dev/ic/vga_raster.c:1.38	Fri Apr 18 21:44:43 2014
+++ src/sys/dev/ic/vga_raster.c	Fri Apr 18 21:45:22 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: vga_raster.c,v 1.38 2014/04/18 21:44:43 mlelstv Exp $	*/
+/*	$NetBSD: vga_raster.c,v 1.39 2014/04/18 21:45:22 mlelstv Exp $	*/
 
 /*
  * Copyright (c) 2001, 2002 Bang Jun-Young
@@ -56,8 +56,9 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: vga_raster.c,v 1.38 2014/04/18 21:44:43 mlelstv Exp $);
+__KERNEL_RCSID(0, $NetBSD: vga_raster.c,v 1.39 2014/04/18 21:45:22 mlelstv Exp $);
 
+#include opt_vga.h
 #include opt_wsmsgattrs.h /* for WSDISPLAY_CUSTOM_OUTPUT */
 
 #include sys/param.h



CVS commit: src/sys/dev/ic

2014-04-18 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Fri Apr 18 22:02:44 UTC 2014

Modified Files:
src/sys/dev/ic: vga_raster.c

Log Message:
more unused variables.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/ic/vga_raster.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/ic/vga_raster.c
diff -u src/sys/dev/ic/vga_raster.c:1.39 src/sys/dev/ic/vga_raster.c:1.40
--- src/sys/dev/ic/vga_raster.c:1.39	Fri Apr 18 21:45:22 2014
+++ src/sys/dev/ic/vga_raster.c	Fri Apr 18 22:02:44 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: vga_raster.c,v 1.39 2014/04/18 21:45:22 mlelstv Exp $	*/
+/*	$NetBSD: vga_raster.c,v 1.40 2014/04/18 22:02:44 mlelstv Exp $	*/
 
 /*
  * Copyright (c) 2001, 2002 Bang Jun-Young
@@ -56,7 +56,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: vga_raster.c,v 1.39 2014/04/18 21:45:22 mlelstv Exp $);
+__KERNEL_RCSID(0, $NetBSD: vga_raster.c,v 1.40 2014/04/18 22:02:44 mlelstv Exp $);
 
 #include opt_vga.h
 #include opt_wsmsgattrs.h /* for WSDISPLAY_CUSTOM_OUTPUT */
@@ -1045,7 +1045,6 @@ vga_set_mode(struct vga_handle *vh, stru
 static void
 vga_raster_cursor_init(struct vgascreen *scr, int existing)
 {
-	struct vga_handle *vh = scr-hdl;
 	int off;
 
 	if (existing) {
@@ -1196,7 +1195,7 @@ _vga_raster_putchar(void *id, int row, i
 	int i;
 	int rasoff, rasoff2;
 	int fheight = scr-type-fontheight;
-	volatile u_int8_t dummy __used, pattern;
+	volatile u_int8_t pattern;
 	u_int8_t fgcolor, bgcolor;
 
 	rasoff = scr-dispoffset + row * scr-type-ncols * fheight + col;
@@ -1225,7 +1224,7 @@ _vga_raster_putchar(void *id, int row, i
 			pattern = ((u_int8_t *)fs-font-data)[c * fheight + i];
 			/* When pattern is 0, skip output for speed-up. */
 			if (pattern != 0) {
-dummy = bus_space_read_1(memt, memh, rasoff2);
+bus_space_read_1(memt, memh, rasoff2);
 bus_space_write_1(memt, memh, rasoff2, pattern);
 			}
 			rasoff2 += scr-type-ncols;
@@ -1246,14 +1245,14 @@ _vga_raster_putchar(void *id, int row, i
 			pattern = ((u_int8_t *)fs-font-data)
 			[(c * fheight + i) * 2];
 			if (pattern != 0) {
-dummy = bus_space_read_1(memt, memh, rasoff2);
+bus_space_read_1(memt, memh, rasoff2);
 bus_space_write_1(memt, memh, rasoff2, pattern);
 			}
 			pattern = ((u_int8_t *)fs-font-data)
 			[(c * fheight + i) * 2 + 1];
 			if (pattern != 0) {
 rasoff2++;
-dummy = bus_space_read_1(memt, memh, rasoff2);
+bus_space_read_1(memt, memh, rasoff2);
 bus_space_write_1(memt, memh, rasoff2, pattern);
 rasoff2--;
 			}



CVS commit: src/sys/dev/scsipi

2014-04-18 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Apr 18 06:23:32 UTC 2014

Modified Files:
src/sys/dev/scsipi: cd.c

Log Message:
Fix PR kern/48550 by aligning the single instance of scsipi_read_cd_cap_data
that we found misaligned in the wild so far properly for the ahcisata
driver. Also point at PR kern/48754 for the real issue.


To generate a diff of this commit:
cvs rdiff -u -r1.318 -r1.319 src/sys/dev/scsipi/cd.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/evbarm/cubie

2014-04-18 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Apr 18 06:53:13 UTC 2014

Modified Files:
src/sys/arch/evbarm/cubie: cubie_machdep.c cubie_start.S

Log Message:
Use KERNEL_BASE_VOFFSET.  s/bbs/bss
Move temp_l1_table to last 16KB before 128mb after kernel_base.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/evbarm/cubie/cubie_machdep.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/evbarm/cubie/cubie_start.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2014-04-18 Thread Masao Uebayashi
Module Name:src
Committed By:   uebayasi
Date:   Fri Apr 18 06:59:32 UTC 2014

Modified Files:
src/sys/kern: kern_exec.c

Log Message:
calcargs: Correct the size of argc in the stack size calculation.

(The old code has worked because it is compensated by wrong size calculation
of auxinfo (multiplied by sizeof(void *)).)


To generate a diff of this commit:
cvs rdiff -u -r1.401 -r1.402 src/sys/kern/kern_exec.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/arm/samsung

2014-04-18 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Fri Apr 18 11:37:17 UTC 2014

Modified Files:
src/sys/arch/arm/samsung: sscom.c

Log Message:
Second handle to bus_space_read_* is the bus_space_handle, not a repeat of the
bus_space_tag


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/arm/samsung/sscom.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

2014-04-18 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Apr 18 11:44:31 UTC 2014

Modified Files:
src/sys/kern: kern_exec.c

Log Message:
'error' is not set on failure. This is a true bug: everything is freed
and unlocked while zero is returned. Since there's no error, execve_runproc()
will get called and will try to use those freed things.

PS: This bug was here before uebayasi@'s changes


To generate a diff of this commit:
cvs rdiff -u -r1.402 -r1.403 src/sys/kern/kern_exec.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/evbarm/odroid

2014-04-18 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Fri Apr 18 14:17:12 UTC 2014

Modified Files:
src/sys/arch/evbarm/odroid: odroid_machdep.c

Log Message:
Oops, i forgot to commit this patch on the `teaching sscom to use attach with
bus_space_handle_t'


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/evbarm/odroid/odroid_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/arm/samsung

2014-04-18 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Fri Apr 18 14:18:33 UTC 2014

Modified Files:
src/sys/arch/arm/samsung: exynos_sscom.c

Log Message:
Fix interrupt enable/disable and clearning bits

what was i thinking...


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/arm/samsung/exynos_sscom.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/arm/samsung

2014-04-18 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Fri Apr 18 14:32:49 UTC 2014

Modified Files:
src/sys/arch/arm/samsung: exynos_reg.h exynos_wdt.c
Added Files:
src/sys/arch/arm/samsung: exynos_wdt_reg.h

Log Message:
Fix attachment of wdt to also use the bus_space_handle

While here, move the registers outside the global register file to a separate
wdt_reg.h file.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/samsung/exynos_reg.h \
src/sys/arch/arm/samsung/exynos_wdt.c
cvs rdiff -u -r0 -r1.1 src/sys/arch/arm/samsung/exynos_wdt_reg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/x86

2014-04-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Apr 18 15:00:37 UTC 2014

Modified Files:
src/sys/arch/x86/x86: est.c

Log Message:
more conservative length check.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/x86/x86/est.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/arm/include

2014-04-18 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Apr 18 15:45:46 UTC 2014

Modified Files:
src/sys/arch/arm/include: types.h

Log Message:
ARMv6+ platforms no longer have strict alignment requirements.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/arm/include/types.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/hppa/hppa

2014-04-18 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Apr 18 18:32:00 UTC 2014

Modified Files:
src/sys/arch/hppa/hppa: machdep.c

Log Message:
Explicitly clear p_md.md_flags for newer binaries. Fixes PR port-hppa/48755.
OK: skrll


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/hppa/hppa/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/dev/ic

2014-04-18 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Fri Apr 18 21:44:43 UTC 2014

Modified Files:
src/sys/dev/ic: vga_raster.c

Log Message:
handle unused variables


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/dev/ic/vga_raster.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/ic

2014-04-18 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Fri Apr 18 21:45:22 UTC 2014

Modified Files:
src/sys/dev/ic: vga_raster.c

Log Message:
include VGA kernel options


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/ic/vga_raster.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/lint1

2014-04-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Apr 18 21:53:44 UTC 2014

Modified Files:
src/usr.bin/xlint/lint1: main1.c

Log Message:
provide a poor man's fmemopen()


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/usr.bin/xlint/lint1/main1.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/xlint/lint1

2014-04-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Apr 18 21:54:53 UTC 2014

Modified Files:
src/usr.bin/xlint/lint1: cgram.y

Log Message:
add more places where attribute is valid.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/ic

2014-04-18 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Fri Apr 18 22:02:44 UTC 2014

Modified Files:
src/sys/dev/ic: vga_raster.c

Log Message:
more unused variables.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/ic/vga_raster.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/pci

2014-04-18 Thread Christoph Badura
Module Name:src
Committed By:   bad
Date:   Fri Apr 18 22:25:58 UTC 2014

Modified Files:
src/sys/dev/pci: ubsec.c ubsecvar.h

Log Message:
Rewrite the dmamap handling to allocate and cache the dmamaps beforehand.
Calling bus_dmamap_create/destroy is no longer possible in interrupt context.
Move the dmamaps to the end of struct ubsec_q so the rest of the struct
can be cleared with one call to memset().

As a bonus we get a 25% increase in throughput encrypting 8K blocks.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/pci/ubsec.c
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/pci/ubsecvar.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/arm/arm

2014-04-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Apr 18 23:50:59 UTC 2014

Modified Files:
src/sys/arch/arm/arm: cpufunc.c

Log Message:
Include cpufunc_proto.h before locore.h so that we define cpu_cpwait first.
XXX: this is a mess.


To generate a diff of this commit:
cvs rdiff -u -r1.146 -r1.147 src/sys/arch/arm/arm/cpufunc.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/amiga/stand/bootblock/boot

2014-04-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Apr 19 00:04:12 UTC 2014

Modified Files:
src/sys/arch/amiga/stand/bootblock/boot: Makefile

Log Message:
unbreak gcc4.5


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/amiga/stand/bootblock/boot/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/arm/include

2014-04-18 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Sat Apr 19 00:33:24 UTC 2014

Modified Files:
src/sys/arch/arm/include: cpufunc.h cpufunc_proto.h

Log Message:
Move xscale cpu_cpwait back from cpufunc_proto.ht to cpufunc.h


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/sys/arch/arm/include/cpufunc.h
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/include/cpufunc_proto.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/amiga/stand/bootblock/boot

2014-04-18 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Sat Apr 19 00:55:37 UTC 2014

Modified Files:
src/sys/arch/amiga/stand/bootblock/boot: Makefile

Log Message:
No need to use annoying HAVE_GCC to handle gcc48 m68k behavior chnages.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/arch/amiga/stand/bootblock/boot/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/hp300

2014-04-18 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Sat Apr 19 05:37:54 UTC 2014

Modified Files:
src/sys/arch/hp300/conf: GENERIC INSTALL files.hp300
src/sys/arch/hp300/dev: frodo.c frodoreg.h rtc.c
Added Files:
src/sys/arch/hp300/dev: mcclock_frodo.c

Log Message:
Add proper RealTime Clock support for HP9000/425e.

As the OpenBSD/hp300 page says 425e doesn't have the traditional
RTC at intio (as it also lacks DCA 16550 serial at intio?),
but after a few hour investigation it turns out that
425e uses mc146818 compatible calendar clock in
the Apollo frodo utility chip and the frodo chip on
425e actually has the 32kHz OSC and is actually backed up
by the onboard lithium battery.

Tested on HP425e (with mcclock) and HP362 (with old rtc).


To generate a diff of this commit:
cvs rdiff -u -r1.180 -r1.181 src/sys/arch/hp300/conf/GENERIC
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/hp300/conf/INSTALL
cvs rdiff -u -r1.86 -r1.87 src/sys/arch/hp300/conf/files.hp300
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/hp300/dev/frodo.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/hp300/dev/frodoreg.h
cvs rdiff -u -r0 -r1.1 src/sys/arch/hp300/dev/mcclock_frodo.c
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/hp300/dev/rtc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.