CVS commit: src/sys/arch/ia64/stand/ia64/ski

2009-11-10 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Tue Nov 10 11:14:48 UTC 2009

Modified Files:
src/sys/arch/ia64/stand/ia64/ski: acpi_stub.c

Log Message:
Fix build failure.
  acpi.h moves to external/intel-public/acpica/dist/include/.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/ia64/stand/ia64/ski/acpi_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/arch/ia64/stand/ia64/ski/acpi_stub.c
diff -u src/sys/arch/ia64/stand/ia64/ski/acpi_stub.c:1.4 src/sys/arch/ia64/stand/ia64/ski/acpi_stub.c:1.5
--- src/sys/arch/ia64/stand/ia64/ski/acpi_stub.c:1.4	Wed Jul 30 11:57:24 2008
+++ src/sys/arch/ia64/stand/ia64/ski/acpi_stub.c	Tue Nov 10 11:14:48 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: acpi_stub.c,v 1.4 2008/07/30 11:57:24 cherry Exp $	*/
+/*	$NetBSD: acpi_stub.c,v 1.5 2009/11/10 11:14:48 kiyohara Exp $	*/
 
 /*-
  * Copyright (c) 2003 Marcel Moolenaar
@@ -34,7 +34,7 @@
 
 #include 
 #include 
-#include 
+#include 
 
 #define APIC_IO_SAPIC   6
 #define APIC_LOCAL_SAPIC7



CVS commit: src/sys/arch/ia64/stand/ia64/ski

2009-11-10 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Wed Nov 11 05:19:35 UTC 2009

Modified Files:
src/sys/arch/ia64/stand/ia64/ski: acpi_stub.c

Log Message:
Include  instead of .
  Thanks cegger@


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/ia64/stand/ia64/ski/acpi_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/arch/ia64/stand/ia64/ski/acpi_stub.c
diff -u src/sys/arch/ia64/stand/ia64/ski/acpi_stub.c:1.5 src/sys/arch/ia64/stand/ia64/ski/acpi_stub.c:1.6
--- src/sys/arch/ia64/stand/ia64/ski/acpi_stub.c:1.5	Tue Nov 10 11:14:48 2009
+++ src/sys/arch/ia64/stand/ia64/ski/acpi_stub.c	Wed Nov 11 05:19:34 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: acpi_stub.c,v 1.5 2009/11/10 11:14:48 kiyohara Exp $	*/
+/*	$NetBSD: acpi_stub.c,v 1.6 2009/11/11 05:19:34 kiyohara Exp $	*/
 
 /*-
  * Copyright (c) 2003 Marcel Moolenaar
@@ -34,7 +34,7 @@
 
 #include 
 #include 
-#include 
+#include 
 
 #define APIC_IO_SAPIC   6
 #define APIC_LOCAL_SAPIC7



CVS commit: src/sys/arch/ia64/stand/ia64/ski

2016-12-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Dec 17 18:41:13 UTC 2016

Modified Files:
src/sys/arch/ia64/stand/ia64/ski: Makefile

Log Message:
XXX: Can't do PIE yet because of gp relocation in start.S


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/ia64/stand/ia64/ski/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/arch/ia64/stand/ia64/ski/Makefile
diff -u src/sys/arch/ia64/stand/ia64/ski/Makefile:1.5 src/sys/arch/ia64/stand/ia64/ski/Makefile:1.6
--- src/sys/arch/ia64/stand/ia64/ski/Makefile:1.5	Fri Aug  5 13:08:10 2016
+++ src/sys/arch/ia64/stand/ia64/ski/Makefile	Sat Dec 17 13:41:13 2016
@@ -4,6 +4,7 @@ VERSIONFILE= ${.CURDIR}/version
 
 .include "../Makefile.booters"
 
+NOPIE=		yes
 PROG=		skiload
 MAN=#
 BINDIR?=	/usr/mdec



CVS commit: src/sys/arch/ia64/stand/ia64/ski

2016-08-15 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Aug 15 09:06:40 UTC 2016

Modified Files:
src/sys/arch/ia64/stand/ia64/ski: devicename.c

Log Message:
Two uninitialized vars, found by brainy. The former is similar to the one
I fixed in ia64/stand/efi/libefi/devicename.c. I don't know how to fix the
latter, so just add a comment. I will probably file a PR for this one.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/ia64/stand/ia64/ski/devicename.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/ia64/stand/ia64/ski/devicename.c
diff -u src/sys/arch/ia64/stand/ia64/ski/devicename.c:1.7 src/sys/arch/ia64/stand/ia64/ski/devicename.c:1.8
--- src/sys/arch/ia64/stand/ia64/ski/devicename.c:1.7	Tue Apr  8 21:51:06 2014
+++ src/sys/arch/ia64/stand/ia64/ski/devicename.c	Mon Aug 15 09:06:39 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: devicename.c,v 1.7 2014/04/08 21:51:06 martin Exp $	*/
+/*	$NetBSD: devicename.c,v 1.8 2016/08/15 09:06:39 maxv Exp $	*/
 
 /*-
  * Copyright (c) 1998 Michael Smith 
@@ -91,7 +91,7 @@ ski_parsedev(struct ski_devdesc **dev, c
 	struct devsw	*dv;
 	int dv_type;
 	int		i, unit, slice, partition, err;
-	char		*cp;
+	char		*cp = NULL;
 	const char	*np;
 
 	/* minimum length check */
@@ -146,6 +146,10 @@ ski_parsedev(struct ski_devdesc **dev, c
 cp++;
 			}
 		}
+		if (cp == NULL) {
+			err = EINVAL;
+			goto fail;
+		}
 		if (*cp && (*cp != ':')) {
 			err = EINVAL;
 			goto fail;
@@ -169,6 +173,10 @@ ski_parsedev(struct ski_devdesc **dev, c
 goto fail;
 			}
 		}
+		if (cp == NULL) {
+			err = EINVAL;
+			goto fail;
+		}
 		if (*cp && (*cp != ':')) {
 			err = EINVAL;
 			goto fail;
@@ -228,6 +236,7 @@ ski_fmtdev(void *vdev)
 		break;
 
 	case DEVT_NET:
+		/* XXX XXX XXX: Yay, 'len' is not initialized here */
 		snprintf(buf, buflen - len, "%s%d:", dev->d_dev->dv_name, dev->d_kind.netif.unit);
 		break;
 	}



CVS commit: src/sys/arch/ia64/stand/ia64/ski

2017-06-25 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Jun 25 12:04:37 UTC 2017

Modified Files:
src/sys/arch/ia64/stand/ia64/ski: devicename.c

Log Message:
uninitialized variable, found by Mootja


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/ia64/stand/ia64/ski/devicename.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/ia64/stand/ia64/ski/devicename.c
diff -u src/sys/arch/ia64/stand/ia64/ski/devicename.c:1.8 src/sys/arch/ia64/stand/ia64/ski/devicename.c:1.9
--- src/sys/arch/ia64/stand/ia64/ski/devicename.c:1.8	Mon Aug 15 09:06:39 2016
+++ src/sys/arch/ia64/stand/ia64/ski/devicename.c	Sun Jun 25 12:04:37 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: devicename.c,v 1.8 2016/08/15 09:06:39 maxv Exp $	*/
+/*	$NetBSD: devicename.c,v 1.9 2017/06/25 12:04:37 maxv Exp $	*/
 
 /*-
  * Copyright (c) 1998 Michael Smith 
@@ -236,8 +236,7 @@ ski_fmtdev(void *vdev)
 		break;
 
 	case DEVT_NET:
-		/* XXX XXX XXX: Yay, 'len' is not initialized here */
-		snprintf(buf, buflen - len, "%s%d:", dev->d_dev->dv_name, dev->d_kind.netif.unit);
+		snprintf(buf, buflen, "%s%d:", dev->d_dev->dv_name, dev->d_kind.netif.unit);
 		break;
 	}
 	return(buf);



CVS commit: src/sys/arch/ia64/stand/ia64/ski

2020-01-14 Thread Sean Cole
Module Name:src
Committed By:   scole
Date:   Tue Jan 14 16:23:08 UTC 2020

Modified Files:
src/sys/arch/ia64/stand/ia64/ski: ssc.c

Log Message:
add noinline attribute


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/ia64/stand/ia64/ski/ssc.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/ia64/stand/ia64/ski/ssc.c
diff -u src/sys/arch/ia64/stand/ia64/ski/ssc.c:1.3 src/sys/arch/ia64/stand/ia64/ski/ssc.c:1.4
--- src/sys/arch/ia64/stand/ia64/ski/ssc.c:1.3	Mon Jul 20 04:59:04 2009
+++ src/sys/arch/ia64/stand/ia64/ski/ssc.c	Tue Jan 14 16:23:07 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: ssc.c,v 1.3 2009/07/20 04:59:04 kiyohara Exp $	*/
+/*	$NetBSD: ssc.c,v 1.4 2020/01/14 16:23:07 scole Exp $	*/
 
 /*-
  * Copyright (c) 2001 Doug Rabson
@@ -41,6 +41,8 @@
  * PSR.dt across the SSC call. We do this by saving and restoring psr.l
  * completely.
  */
+
+__attribute__((__noinline__))
 u_int64_t
 ssc(u_int64_t in0, u_int64_t in1, u_int64_t in2, u_int64_t in3, int which)
 {