CVS commit: src/sys/arch/ia64/include

2024-05-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat May 18 19:57:03 UTC 2024

Modified Files:
src/sys/arch/ia64/include: mcontext.h

Log Message:
allow things to compile again


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/ia64/include/mcontext.h

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

Modified files:

Index: src/sys/arch/ia64/include/mcontext.h
diff -u src/sys/arch/ia64/include/mcontext.h:1.12 src/sys/arch/ia64/include/mcontext.h:1.13
--- src/sys/arch/ia64/include/mcontext.h:1.12	Mon Jun 29 13:09:33 2020
+++ src/sys/arch/ia64/include/mcontext.h	Sat May 18 15:57:03 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: mcontext.h,v 1.12 2020/06/29 17:09:33 scole Exp $	*/
+/*	$NetBSD: mcontext.h,v 1.13 2024/05/18 19:57:03 christos Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -117,6 +117,11 @@ typedef struct __mcontext {
 #define	_UC_MACHINE_INTRV(uc)	((uc)->uc_mcontext.mc_scratch.gr8) /* gregs[8] */
 #define _UC_MACHINE_SET_PC(uc, pc)	(uc)->uc_mcontext.mc_special.iip = (pc)
 
+#define	_UC_TLSBASE	_UC_MD_BIT16
+#define	_UC_SETSTACK	_UC_MD_BIT17
+#define	_UC_CLRSTACK	_UC_MD_BIT18
+
+
 #if defined(_RTLD_SOURCE) || defined(_LIBC_SOURCE) || \
 defined(__LIBPTHREAD_SOURCE__)
 #include 



CVS commit: src/sys/arch/ia64/include

2024-05-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat May 18 19:57:03 UTC 2024

Modified Files:
src/sys/arch/ia64/include: mcontext.h

Log Message:
allow things to compile again


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/ia64/include/mcontext.h

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



CVS commit: src/sys/arch/ia64/include

2023-10-06 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Fri Oct  6 11:45:37 UTC 2023

Modified Files:
src/sys/arch/ia64/include: asm.h bootinfo.h cpu.h db_machdep.h
ia64_cpu.h int_limits.h intrdefs.h loadfile_machdep.h lock.h
param.h pmap.h proc.h setjmp.h userret.h vmparam.h

Log Message:
Trailing whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/ia64/include/asm.h \
src/sys/arch/ia64/include/pmap.h
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/ia64/include/bootinfo.h
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/ia64/include/cpu.h
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/ia64/include/db_machdep.h \
src/sys/arch/ia64/include/setjmp.h
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/ia64/include/ia64_cpu.h \
src/sys/arch/ia64/include/intrdefs.h \
src/sys/arch/ia64/include/loadfile_machdep.h
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/ia64/include/int_limits.h
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/ia64/include/lock.h
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/ia64/include/param.h \
src/sys/arch/ia64/include/vmparam.h
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/ia64/include/proc.h
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/ia64/include/userret.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/ia64/include

2023-10-06 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Fri Oct  6 11:45:37 UTC 2023

Modified Files:
src/sys/arch/ia64/include: asm.h bootinfo.h cpu.h db_machdep.h
ia64_cpu.h int_limits.h intrdefs.h loadfile_machdep.h lock.h
param.h pmap.h proc.h setjmp.h userret.h vmparam.h

Log Message:
Trailing whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/ia64/include/asm.h \
src/sys/arch/ia64/include/pmap.h
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/ia64/include/bootinfo.h
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/ia64/include/cpu.h
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/ia64/include/db_machdep.h \
src/sys/arch/ia64/include/setjmp.h
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/ia64/include/ia64_cpu.h \
src/sys/arch/ia64/include/intrdefs.h \
src/sys/arch/ia64/include/loadfile_machdep.h
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/ia64/include/int_limits.h
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/ia64/include/lock.h
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/ia64/include/param.h \
src/sys/arch/ia64/include/vmparam.h
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/ia64/include/proc.h
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/ia64/include/userret.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/ia64/include/asm.h
diff -u src/sys/arch/ia64/include/asm.h:1.8 src/sys/arch/ia64/include/asm.h:1.9
--- src/sys/arch/ia64/include/asm.h:1.8	Fri Apr 17 14:19:43 2020
+++ src/sys/arch/ia64/include/asm.h	Fri Oct  6 11:45:37 2023
@@ -1,26 +1,26 @@
-/*	$NetBSD: asm.h,v 1.8 2020/04/17 14:19:43 joerg Exp $	*/
+/*	$NetBSD: asm.h,v 1.9 2023/10/06 11:45:37 skrll Exp $	*/
 
 /* -
  * Copyright (c) 1991,1990,1989,1994,1995,1996 Carnegie Mellon University
  * All Rights Reserved.
- * 
+ *
  * Permission to use, copy, modify and distribute this software and its
  * documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
  * software, derivative works or modified versions, and any portions
  * thereof, and that both notices appear in supporting documentation.
- * 
+ *
  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- * 
+ *
  * Carnegie Mellon requests users of this software to return to
- * 
+ *
  *  Software Distribution Coordinator  or  software.distribut...@cs.cmu.edu
  *  School of Computer Science
  *  Carnegie Mellon University
  *  Pittsburgh PA 15213-3890
- * 
+ *
  * any improvements or extensions that they make and grant Carnegie Mellon
  * the rights to redistribute these changes.
  */
Index: src/sys/arch/ia64/include/pmap.h
diff -u src/sys/arch/ia64/include/pmap.h:1.8 src/sys/arch/ia64/include/pmap.h:1.9
--- src/sys/arch/ia64/include/pmap.h:1.8	Sat Apr  8 18:08:33 2017
+++ src/sys/arch/ia64/include/pmap.h	Fri Oct  6 11:45:37 2023
@@ -178,10 +178,10 @@ void pmap_procwr(struct proc *, vaddr_t,
 struct vm_page_md {
 	TAILQ_HEAD(,pv_entry)	pv_list;
 	vm_memattr_t		memattr;
-#if 0 /* XXX freebsd */	
+#if 0 /* XXX freebsd */
 	uint8_t		pv_flags;
 	uint8_t		aflags;
-#endif	
+#endif
 };
 
 #define	VM_MDPAGE_INIT(pg)		\

Index: src/sys/arch/ia64/include/bootinfo.h
diff -u src/sys/arch/ia64/include/bootinfo.h:1.2 src/sys/arch/ia64/include/bootinfo.h:1.3
--- src/sys/arch/ia64/include/bootinfo.h:1.2	Thu Dec 26 04:53:11 2019
+++ src/sys/arch/ia64/include/bootinfo.h	Fri Oct  6 11:45:37 2023
@@ -1,21 +1,21 @@
-/*	$NetBSD: bootinfo.h,v 1.2 2019/12/26 04:53:11 msaitoh Exp $	*/
+/*	$NetBSD: bootinfo.h,v 1.3 2023/10/06 11:45:37 skrll Exp $	*/
 
 /*-
  * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
  * All rights reserved.
  *
  * Author: Chris G. Demetriou
- * 
+ *
  * Permission to use, copy, modify and distribute this software and
  * its documentation is hereby granted, provided that both the copyright
  * notice and this permission notice appear in all copies of the
  * software, derivative works or modified versions, and any portions
  * thereof, and that both notices appear in supporting documentation.
- * 
- * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 
- * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 
+ *
+ * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
+ * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- * 
+ *
  * Carnegie Mellon requests users of this software to return to
  *
  *  Software Distribution Coordinator  or  software.distribut...@cs.cmu.edu

Index: src/sys/arch/ia64/include/cpu.h
diff -u src/sys/arch/ia64/include/cpu.h:1.21 src/sys/arch/ia64/include/cpu.h:1.22
--- src/sys/arch/ia64/include/cpu.h:1.21	Tue May 31 08:43:14 2022
+++ src/sys/arch/ia64/include/cpu.h	Fri Oct  6 11:45:37 

CVS commit: src/sys/arch/ia64/include

2023-07-13 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Jul 13 18:27:46 UTC 2023

Modified Files:
src/sys/arch/ia64/include: sapicvar.h

Log Message:
ia64: Need sys/types.h for u_int, vaddr_t; sys/mutex.h for kmutex_t.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/ia64/include/sapicvar.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/ia64/include/sapicvar.h
diff -u src/sys/arch/ia64/include/sapicvar.h:1.1 src/sys/arch/ia64/include/sapicvar.h:1.2
--- src/sys/arch/ia64/include/sapicvar.h:1.1	Mon Jul 20 04:41:37 2009
+++ src/sys/arch/ia64/include/sapicvar.h	Thu Jul 13 18:27:46 2023
@@ -29,6 +29,10 @@
 #ifndef _MACHINE_SAPICVAR_H_
 #define _MACHINE_SAPICVAR_H_
 
+#include 
+
+#include 
+
 struct sapic {
 	kmutex_t	sa_mtx;
 	vaddr_t		sa_registers;	/* virtual address of sapic */



CVS commit: src/sys/arch/ia64/include

2023-07-13 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Jul 13 18:27:46 UTC 2023

Modified Files:
src/sys/arch/ia64/include: sapicvar.h

Log Message:
ia64: Need sys/types.h for u_int, vaddr_t; sys/mutex.h for kmutex_t.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/ia64/include/sapicvar.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/ia64/include

2022-08-20 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sat Aug 20 09:40:22 UTC 2022

Modified Files:
src/sys/arch/ia64/include: efi.h

Log Message:
ia64/efi.h: Fix whitespace.  No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/ia64/include/efi.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/ia64/include/efi.h
diff -u src/sys/arch/ia64/include/efi.h:1.2 src/sys/arch/ia64/include/efi.h:1.3
--- src/sys/arch/ia64/include/efi.h:1.2	Sat Aug 20 09:09:06 2022
+++ src/sys/arch/ia64/include/efi.h	Sat Aug 20 09:40:22 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: efi.h,v 1.2 2022/08/20 09:09:06 riastradh Exp $	*/
+/*	$NetBSD: efi.h,v 1.3 2022/08/20 09:40:22 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2004 Marcel Moolenaar
@@ -84,11 +84,11 @@ struct efi_md {
 #define	EFI_MD_ATTR_WP		0x1000UL
 #define	EFI_MD_ATTR_RP		0x2000UL
 #define	EFI_MD_ATTR_XP		0x4000UL
-#define	EFI_MD_ATTR_NV  0x8000UL
+#define	EFI_MD_ATTR_NV		0x8000UL
 #define	EFI_MD_ATTR_MORE_RELIABLE 0x0001UL
-#define	EFI_MD_ATTR_RO  0x0002UL
-#define	EFI_MD_ATTR_SP  0x0004UL
-#define	EFI_MD_ATTR_CPU_CRYPTO  0x0008UL
+#define	EFI_MD_ATTR_RO		0x0002UL
+#define	EFI_MD_ATTR_SP		0x0004UL
+#define	EFI_MD_ATTR_CPU_CRYPTO	0x0008UL
 #define	EFI_MD_ATTR_RT		0x8000UL
 };
 



CVS commit: src/sys/arch/ia64/include

2022-08-20 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sat Aug 20 09:40:22 UTC 2022

Modified Files:
src/sys/arch/ia64/include: efi.h

Log Message:
ia64/efi.h: Fix whitespace.  No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/ia64/include/efi.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/ia64/include

2022-07-21 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Jul 21 14:27:47 UTC 2022

Modified Files:
src/sys/arch/ia64/include: dig64.h

Log Message:
s/Transration/Translation/


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/ia64/include/dig64.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/ia64/include/dig64.h
diff -u src/sys/arch/ia64/include/dig64.h:1.3 src/sys/arch/ia64/include/dig64.h:1.4
--- src/sys/arch/ia64/include/dig64.h:1.3	Thu Jul 21 10:09:21 2022
+++ src/sys/arch/ia64/include/dig64.h	Thu Jul 21 14:27:46 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: dig64.h,v 1.3 2022/07/21 10:09:21 andvar Exp $	*/
+/*	$NetBSD: dig64.h,v 1.4 2022/07/21 14:27:46 andvar Exp $	*/
 
 /*-
  * Copyright (c) 2002 Marcel Moolenaar
@@ -105,8 +105,8 @@ struct dig64_vga_spec {
 #define DIG64_FLAGS_INTR_EDGE		(1 << 0)	/* Edge Triggered */
 #define DIG64_FLAGS_INTR_ACTH		(0 << 1)	/* Intr Active High */
 #define DIG64_FLAGS_INTR_ACTL		(1 << 1)	/* Intr Active Low */
-#define DIG64_FLAGS_TRANS_DENSE		(0 << 3)	/* Dense Transration */
-#define DIG64_FLAGS_TRANS_SPARSE	(1 << 3)	/* Sparse Transration */
+#define DIG64_FLAGS_TRANS_DENSE		(0 << 3)	/* Dense Translation */
+#define DIG64_FLAGS_TRANS_SPARSE	(1 << 3)	/* Sparse Translation */
 #define DIG64_FLAGS_TYPE_STATIC		(0 << 4)	/* Type Static */
 #define DIG64_FLAGS_TYPE_TRANS		(1 << 4)	/* Type Translation */
 #define DIG64_FLAGS_INTR_SUPP		(1 << 6)	/* Interrupt supported */



CVS commit: src/sys/arch/ia64/include

2022-07-21 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Thu Jul 21 14:27:47 UTC 2022

Modified Files:
src/sys/arch/ia64/include: dig64.h

Log Message:
s/Transration/Translation/


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

2021-11-14 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Nov 15 07:26:23 UTC 2021

Modified Files:
src/sys/arch/ia64/include: bus.h

Log Message:
Sprinkle const (and fix build)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/ia64/include/bus.h

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

Modified files:

Index: src/sys/arch/ia64/include/bus.h
diff -u src/sys/arch/ia64/include/bus.h:1.4 src/sys/arch/ia64/include/bus.h:1.5
--- src/sys/arch/ia64/include/bus.h:1.4	Sun Dec 15 16:48:26 2019
+++ src/sys/arch/ia64/include/bus.h	Mon Nov 15 07:26:23 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: bus.h,v 1.4 2019/12/15 16:48:26 tsutsui Exp $	*/
+/*	$NetBSD: bus.h,v 1.5 2021/11/15 07:26:23 skrll Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
@@ -428,7 +428,7 @@ do {	\
 	} else {			\
 		int __i;		\
 		volatile uint8_t *__p = (uint8_t *)((h) + (o));		\
-		uint8_t *__src = (ptr);	\
+		const uint8_t *__src = (ptr);\
 		for (__i = 0; __i < (cnt); __i++)			\
 			*__p = *__src++;\
 	}\
@@ -443,7 +443,7 @@ do {	\
 	} else {			\
 		int __i;		\
 		volatile uint16_t *__p = (uint16_t *)((h) + (o));	\
-		uint16_t *__src = (ptr);\
+		const uint16_t *__src = (ptr);\
 		for (__i = 0; __i < (cnt); __i++)			\
 			*__p = *__src++;\
 	}\
@@ -458,7 +458,7 @@ do {	\
 	} else {			\
 		int __i;		\
 		volatile uint32_t *__p = (uint32_t *)((h) + (o));	\
-		uint32_t *__src = (ptr);\
+		const uint32_t *__src = (ptr);\
 		for (__i = 0; __i < (cnt); __i++)			\
 			*__p = *__src++;\
 	}\
@@ -473,7 +473,7 @@ do {	\
 	} else {			\
 		int __i;		\
 		volatile uint64_t *__p = (uint64_t *)((h) + (o));	\
-		uint64_t *__src = (ptr);\
+		const uint64_t *__src = (ptr);\
 		for (__i = 0; __i < (cnt); __i++)			\
 			*__p = *__src++;\
 	}\
@@ -499,7 +499,7 @@ do {	\
 	if ((t) == IA64_BUS_SPACE_IO) {	\
 		int __i;		\
 		volatile bus_addr_t __port = (h) + (o);			\
-		uint8_t *__src = (ptr);	\
+		const uint8_t *__src = (ptr);\
 		for (__i = 0; __i < (cnt); __i++) {			\
 			outb(__port, *__src);\
 			__port++;	\
@@ -508,7 +508,7 @@ do {	\
 	} else {			\
 		int __i;		\
 		volatile uint8_t *__p = (uint8_t *)((h) + (o));		\
-		uint8_t *__src = (ptr);	\
+		const uint8_t *__src = (ptr);\
 		for (__i = 0; __i < (cnt); __i++)			\
 			*__p++ = *__src++;\
 	}\
@@ -521,7 +521,7 @@ do {	\
 	if ((t) == IA64_BUS_SPACE_IO) {	\
 		int __i;		\
 		volatile bus_addr_t __port = (h) + (o);			\
-		uint16_t *__src = (ptr);\
+		const uint16_t *__src = (ptr);\
 		for (__i = 0; __i < (cnt); __i++) {			\
 			outw(__port, *__src);\
 			__port += 2;	\
@@ -530,7 +530,7 @@ do {	\
 	} else {			\
 		int __i;		\
 		volatile uint16_t *__p = (uint16_t *)((h) + (o));	\
-		uint16_t *__src = (ptr);\
+		const uint16_t *__src = (ptr);\
 		for (__i = 0; __i < (cnt); __i++)			\
 			*__p++ = *__src++;\
 	}\
@@ -543,7 +543,7 @@ do {	\
 	if ((t) == IA64_BUS_SPACE_IO) {	\
 		int __i;		\
 		volatile bus_addr_t __port = (h) + (o);			\
-		uint32_t *__src = (ptr);\
+		const uint32_t *__src = (ptr);\
 		for (__i = 0; __i < (cnt); __i++) {			\
 			outl(__port, *__src);\
 			__port += 4;	\
@@ -552,7 +552,7 @@ do {	\
 	} else {			\
 		int __i;		\
 		volatile uint32_t *__p = (uint32_t *)(h) + (o);		\
-		uint32_t *__src = (ptr);\
+		const uint32_t *__src = (ptr);\
 		for (__i = 0; __i < (cnt); __i++)			\
 			*__p++ = *__src++;\
 	}\
@@ -567,7 +567,7 @@ do {	\
 	} else {			\
 		int __i;		\
 		volatile uint64_t *__p = (uint64_t *)((h) + (o));	\
-		uint64_t *__src = (ptr);\
+		const uint64_t *__src = (ptr);\
 		for (__i = 0; __i < (cnt); __i++)			\
 			*__p++ = *__src++;\
 	}\



CVS commit: src/sys/arch/ia64/include

2021-11-14 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Nov 15 07:26:23 UTC 2021

Modified Files:
src/sys/arch/ia64/include: bus.h

Log Message:
Sprinkle const (and fix build)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/ia64/include/bus.h

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



CVS commit: src/sys/arch/ia64/include

2019-11-29 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Nov 29 20:05:38 UTC 2019

Modified Files:
src/sys/arch/ia64/include: lock.h

Log Message:
Nix mb_* on ia64.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/ia64/include/lock.h

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

Modified files:

Index: src/sys/arch/ia64/include/lock.h
diff -u src/sys/arch/ia64/include/lock.h:1.7 src/sys/arch/ia64/include/lock.h:1.8
--- src/sys/arch/ia64/include/lock.h:1.7	Thu Jan 10 17:05:56 2019
+++ src/sys/arch/ia64/include/lock.h	Fri Nov 29 20:05:38 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: lock.h,v 1.7 2019/01/10 17:05:56 scole Exp $	*/
+/*	$NetBSD: lock.h,v 1.8 2019/11/29 20:05:38 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -117,24 +117,6 @@ __cpu_simple_unlock(__cpu_simple_lock_t 
 }
 
 static __inline void
-mb_read(void)
-{
-	__asm __volatile("mf	\n" ::: "memory");
-}
-
-static __inline void
-mb_write(void)
-{
-	__asm __volatile("mf	\n" ::: "memory");
-}
-
-static __inline void
-mb_memory(void)
-{
-	__asm __volatile("mf	\n" ::: "memory");
-}
-
-static __inline void
 ia64_pause(void)
 {
 	__asm __volatile("hint @pause" ::: "memory");



CVS commit: src/sys/arch/ia64/include

2019-11-29 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Nov 29 20:05:38 UTC 2019

Modified Files:
src/sys/arch/ia64/include: lock.h

Log Message:
Nix mb_* on ia64.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/ia64/include/lock.h

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



CVS commit: src/sys/arch/ia64/include

2019-11-24 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Sun Nov 24 15:45:41 UTC 2019

Modified Files:
src/sys/arch/ia64/include: cpu.h

Log Message:
Make ci_want_resched a u_int.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/ia64/include/cpu.h

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

Modified files:

Index: src/sys/arch/ia64/include/cpu.h
diff -u src/sys/arch/ia64/include/cpu.h:1.18 src/sys/arch/ia64/include/cpu.h:1.19
--- src/sys/arch/ia64/include/cpu.h:1.18	Sat Nov 23 19:40:35 2019
+++ src/sys/arch/ia64/include/cpu.h	Sun Nov 24 15:45:41 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpu.h,v 1.18 2019/11/23 19:40:35 ad Exp $	*/
+/*	$NetBSD: cpu.h,v 1.19 2019/11/24 15:45:41 ad Exp $	*/
 
 /*-
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -107,7 +107,8 @@ struct cpu_info {
 	struct lwp *ci_fpcurlwp;	/* current owner of the FPU */
 	paddr_t ci_curpcb;		/* PA of current HW PCB */
 	struct pcb *ci_idle_pcb;	/* our idle PCB */
-	u_long ci_want_resched;		/* preempt current process */
+	u_int ci_want_resched;		/* preempt current process */
+	u_int ci_unused;		/* unused */
 	u_long ci_intrdepth;		/* interrupt trap depth */
 	struct trapframe *ci_db_regs;	/* registers for debuggers */
 	uint64_t ci_clock;		/* clock counter */



CVS commit: src/sys/arch/ia64/include

2019-11-24 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Sun Nov 24 15:45:41 UTC 2019

Modified Files:
src/sys/arch/ia64/include: cpu.h

Log Message:
Make ci_want_resched a u_int.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/ia64/include/cpu.h

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



CVS commit: src/sys/arch/ia64/include

2019-11-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Nov 16 22:51:51 UTC 2019

Modified Files:
src/sys/arch/ia64/include: fenv.h

Log Message:
do the ignore -Wshadow dance for builtins and GCC 8, copied from ppc version.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/ia64/include/fenv.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/ia64/include

2019-11-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Nov 16 22:51:51 UTC 2019

Modified Files:
src/sys/arch/ia64/include: fenv.h

Log Message:
do the ignore -Wshadow dance for builtins and GCC 8, copied from ppc version.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/ia64/include/fenv.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/ia64/include/fenv.h
diff -u src/sys/arch/ia64/include/fenv.h:1.2 src/sys/arch/ia64/include/fenv.h:1.3
--- src/sys/arch/ia64/include/fenv.h:1.2	Thu Mar 23 18:27:29 2017
+++ src/sys/arch/ia64/include/fenv.h	Sat Nov 16 22:51:51 2019
@@ -67,6 +67,11 @@ extern const fenv_t	__fe_dfl_env;
 #define	__stfpsr(__r)	__asm __volatile("mov %0=ar.fpsr" : "=r" (*(__r)))
 #define	__ldfpsr(__r)	__asm __volatile("mov ar.fpsr=%0;;" : : "r" (__r))
 
+#if __GNUC_PREREQ__(8, 0)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wshadow"
+#endif
+
 __fenv_static inline int
 feclearexcept(int __excepts)
 {
@@ -206,6 +211,10 @@ fesetenv(const fenv_t *__envp)
 
 int feupdateenv(const fenv_t *__envp);
 
+#if __GNUC_PREREQ__(8, 0)
+#pragma GCC diagnostic pop
+#endif
+
 #if defined(_NETBSD_SOURCE) || defined(_GNU_SOURCE)
 
 __fenv_static inline int



CVS commit: src/sys/arch/ia64/include

2019-06-17 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Jun 17 15:08:34 UTC 2019

Modified Files:
src/sys/arch/ia64/include: mcontext.h

Log Message:
Enhance ia64/mcontext defines

Stop mapping _UC_MACHINE_FP() to a register as it is not supported by CPU.
There is need to use in code __builtin_frame_address() inlined in the code
to get the frame pointer.

Return a constant value 0 instead. New value does not pretend to return
a meaningful value.

While there, fix the definition of _UC_MACHINE_SET_PC as it didn't contain
the pc argument in the definition.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/ia64/include/mcontext.h

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



CVS commit: src/sys/arch/ia64/include

2019-06-17 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Mon Jun 17 15:08:34 UTC 2019

Modified Files:
src/sys/arch/ia64/include: mcontext.h

Log Message:
Enhance ia64/mcontext defines

Stop mapping _UC_MACHINE_FP() to a register as it is not supported by CPU.
There is need to use in code __builtin_frame_address() inlined in the code
to get the frame pointer.

Return a constant value 0 instead. New value does not pretend to return
a meaningful value.

While there, fix the definition of _UC_MACHINE_SET_PC as it didn't contain
the pc argument in the definition.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/ia64/include/mcontext.h

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

Modified files:

Index: src/sys/arch/ia64/include/mcontext.h
diff -u src/sys/arch/ia64/include/mcontext.h:1.8 src/sys/arch/ia64/include/mcontext.h:1.9
--- src/sys/arch/ia64/include/mcontext.h:1.8	Thu Apr 26 18:06:25 2018
+++ src/sys/arch/ia64/include/mcontext.h	Mon Jun 17 15:08:34 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: mcontext.h,v 1.8 2018/04/26 18:06:25 scole Exp $	*/
+/*	$NetBSD: mcontext.h,v 1.9 2019/06/17 15:08:34 kamil Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -112,10 +112,10 @@ typedef struct __mcontext {
 } mcontext_t;
 
 #define _UC_MACHINE_SP(uc)	((uc)->uc_mcontext.mc_special.sp)  /* gregs[12] */
-#define _UC_MACHINE_FP(uc)	((uc)->uc_mcontext.__gregs[79])
+#define _UC_MACHINE_FP(uc)	0 /* Not supported in target */
 #define	_UC_MACHINE_PC(uc)	((uc)->uc_mcontext.mc_special.iip)
 #define	_UC_MACHINE_INTRV(uc)	((uc)->uc_mcontext.__gregs[8])
-#define _UC_MACHINE_SET_PC(uc)  _UC_MACHINE_PC(uc) = (pc)  /* XXX */
+#define _UC_MACHINE_SET_PC(uc, pc)	(uc)->uc_mcontext.mc_special.iip = (pc)
 
 static __inline void *
 __lwp_getprivate_fast(void)



CVS commit: src/sys/arch/ia64/include

2010-02-16 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Wed Feb 17 06:06:50 UTC 2010

Modified Files:
src/sys/arch/ia64/include: proc.h

Log Message:
Fix type missmatch.
  forgot to commit since change ia64/syscall.c,1.5.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/ia64/include/proc.h

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