diff options
| author | ad <ad@NetBSD.org> | 2007-06-10 00:52:29 +0000 |
|---|---|---|
| committer | ad <ad@NetBSD.org> | 2007-06-10 00:52:29 +0000 |
| commit | 3f8edbdfd789bb885e72c19bdf0ce1b007033b2e (patch) | |
| tree | 3e4f4f5368838061d2b294b8984a8bfc216d5b66 /sys/arch/pdp10/include | |
| parent | 54630771e7f9d1c90715bb416d7b58ae9e70ab00 (diff) | |
G/C dead code.
Diffstat (limited to 'sys/arch/pdp10/include')
35 files changed, 0 insertions, 2509 deletions
diff --git a/sys/arch/pdp10/include/ansi.h b/sys/arch/pdp10/include/ansi.h deleted file mode 100644 index 3a68d6bb98a..00000000000 --- a/sys/arch/pdp10/include/ansi.h +++ /dev/null @@ -1,110 +0,0 @@ -/* $NetBSD: ansi.h,v 1.3 2006/10/04 13:52:00 tnozaki Exp $ */ - -/*- - * Copyright (c) 1990 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. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. 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. - * - * @(#)ansi.h 7.1 (Berkeley) 3/9/91 - */ - -#ifndef _ANSI_H_ -#define _ANSI_H_ - -#include <sys/cdefs.h> -#include <machine/int_types.h> - -/* - * Types which are fundamental to the implementation and may appear in - * more than one standard header are defined here. Standard headers - * then use: - * #ifdef _SIZE_T_ - * typedef _SIZE_T_ size_t; - * #undef _SIZE_T_ - * #endif - * - * Thanks, ANSI! - */ -#ifdef __ELF__ -#define _BSD_CLOCK_T_ unsigned int /* clock() */ -#define _BSD_PTRDIFF_T_ long int /* ptr1 - ptr2 */ -#define _BSD_SIZE_T_ unsigned long int /* sizeof() */ -#define _BSD_SSIZE_T_ long int /* byte count or error */ -#define _BSD_TIME_T_ int /* time() */ -#else -#define _BSD_CLOCK_T_ unsigned long int /* clock() */ -#define _BSD_PTRDIFF_T_ int /* ptr1 - ptr2 */ -#define _BSD_SIZE_T_ unsigned int /* sizeof() */ -#define _BSD_SSIZE_T_ int /* byte count or error */ -#define _BSD_TIME_T_ long /* time() */ -#endif -#if __GNUC_PREREQ__(2,96) -#define _BSD_VA_LIST_ __builtin_va_list /* va_list */ -#else -#define _BSD_VA_LIST_ int * /* va_list */ -#endif -#define _BSD_WINT_T_ int /* wint_t */ -#define _BSD_CLOCKID_T_ int /* clockid_t */ -#define _BSD_TIMER_T_ int /* timer_t */ -#define _BSD_SUSECONDS_T_ int /* suseconds_t */ -#define _BSD_USECONDS_T_ unsigned int /* useconds_t */ - -/* - * NOTE: rune_t is not covered by ANSI nor other standards, and should not - * be instantiated outside of lib/libc/locale. use wchar_t. - * - * Runes (wchar_t) is declared to be an ``int'' instead of the more natural - * ``unsigned long'' or ``long''. Two things are happening here. It is not - * unsigned so that EOF (-1) can be naturally assigned to it and used. Also, - * it looks like 10646 will be a 31 bit standard. This means that if your - * ints cannot hold 32 bits, you will be in trouble. The reason an int was - * chosen over a long is that the is*() and to*() routines take ints (says - * ANSI C), but they use _RUNE_T_ instead of int. By changing it here, you - * lose a bit of ANSI conformance, but your programs will still work. - * - * Note that _WCHAR_T_ and _RUNE_T_ must be of the same type. When wchar_t - * and rune_t are typedef'd, _WCHAR_T_ will be undef'd, but _RUNE_T remains - * defined for ctype.h. - */ -#define _BSD_WCHAR_T_ int /* wchar_t */ -#define _BSD_WINT_T_ int /* wint_t */ -#define _BSD_RUNE_T_ int /* rune_t */ - -/* - * mbstate_t is an opaque object to keep conversion state, during multibyte - * stream conversions. The content must not be referenced by user programs. - */ -typedef union { - __int64_t __mbstateL; /* for alignment */ - char __mbstate8[128]; -} __mbstate_t; -#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */ - -#endif /* _ANSI_H_ */ diff --git a/sys/arch/pdp10/include/aout_machdep.h b/sys/arch/pdp10/include/aout_machdep.h deleted file mode 100644 index a6644b5fdc3..00000000000 --- a/sys/arch/pdp10/include/aout_machdep.h +++ /dev/null @@ -1,39 +0,0 @@ -/* $NetBSD: aout_machdep.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ -/* - * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). - * 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. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - */ -/* - * This file shouldn't be needed! - */ - -#ifndef _PDP10_AOUT_MACHDEP_H_ -#define _PDP10_AOUT_MACHDEP_H_ - -#define cpu_exec_aout_makecmds(p, epp) ENOEXEC - -#define AOUT_LDPGSZ 2048 - -#endif /* _PDP10_EXEC_H_ */ diff --git a/sys/arch/pdp10/include/asm.h b/sys/arch/pdp10/include/asm.h deleted file mode 100644 index 7ee312e917a..00000000000 --- a/sys/arch/pdp10/include/asm.h +++ /dev/null @@ -1,103 +0,0 @@ -/* $NetBSD: asm.h,v 1.3 2006/01/20 22:02:40 christos Exp $ */ -/* - * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). - * 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. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - */ - -#ifndef _PDP10_ASM_H_ -#define _PDP10_ASM_H_ - -#ifdef __ELF__ -# define _C_LABEL(x) x -#else -# ifdef __STDC__ -# define _C_LABEL(x) _ ## x -# else -# define _C_LABEL(x) _/**/x -# endif -#endif - -#define _ASM_LABEL(x) x - -#ifdef __STDC__ -# define __CONCAT(x,y) x ## y -# define __STRING(x) #x -#else -# define __CONCAT(x,y) x/**/y -# define __STRING(x) "x" -#endif - -/* let kernels and others override entrypoint alignment */ -#ifndef _ALIGN_TEXT -# ifdef __ELF__ -# define _ALIGN_TEXT .align 4 -# else -# define _ALIGN_TEXT .align 2 -# endif -#endif - -#define _ENTRY(x) \ - .text ; .globl x ; __CONCAT(x,:) - -#ifdef GPROF -# ifdef __ELF__ -# define _PROF_PROLOGUE \ - .data; 1:; .long 0; .text; moval 1b,r0; jsb _ASM_LABEL(__mcount) -# else -# define _PROF_PROLOGUE \ - .data; 1:; .long 0; .text; moval 1b,r0; jsb _ASM_LABEL(mcount) -# endif -#else -# define _PROF_PROLOGUE -#endif - -#define ENTRY(x) _ENTRY(_C_LABEL(x)); _PROF_PROLOGUE -#define NENTRY(x, regs) _ENTRY(_C_LABEL(x)) -#define ASENTRY(x, regs) _ENTRY(_ASM_LABEL(x)); _PROF_PROLOGUE - -#define ALTENTRY(x) .globl _C_LABEL(x) ; _C_LABEL(x): -#define RCSID(x) .text ; .asciz x - -#ifdef __ELF__ -#define WEAK_ALIAS(alias,sym) .weak alias ; alias = sym -#endif -/* - * STRONG_ALIAS: create a strong alias. - */ -#define STRONG_ALIAS(alias,sym) \ - .globl alias; \ - alias = sym - -#ifdef __STDC__ -#define WARN_REFERENCES(sym,msg) \ - .stabs msg ## ,30,0,0,0 ; \ - .stabs __STRING(_C_LABEL(sym)) ## ,1,0,0,0 -#else -#define WARN_REFERENCES(sym,msg) \ - .stabs msg,30,0,0,0 ; \ - .stabs __STRING(_C_LABEL(sym)),1,0,0,0 -#endif /* __STDC__ */ - -#endif /* !_PDP10_ASM_H_ */ diff --git a/sys/arch/pdp10/include/bswap.h b/sys/arch/pdp10/include/bswap.h deleted file mode 100644 index 090ecab2d7b..00000000000 --- a/sys/arch/pdp10/include/bswap.h +++ /dev/null @@ -1,9 +0,0 @@ -/* $NetBSD: bswap.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ - -#ifndef _MACHINE_BSWAP_H_ -#define _MACHINE_BSWAP_H_ - -#define __BSWAP_RENAME -#include <sys/bswap.h> - -#endif /* !_MACHINE_BSWAP_H_ */ diff --git a/sys/arch/pdp10/include/bus.h b/sys/arch/pdp10/include/bus.h deleted file mode 100644 index f6a02b66ddc..00000000000 --- a/sys/arch/pdp10/include/bus.h +++ /dev/null @@ -1,35 +0,0 @@ -/* $NetBSD: bus.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ -/* - * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). - * 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. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - */ - - -typedef u_long bus_addr_t; -typedef u_long bus_size_t; - -typedef u_long bus_space_tag_t; -typedef u_long bus_space_handle_t; - diff --git a/sys/arch/pdp10/include/cdefs.h b/sys/arch/pdp10/include/cdefs.h deleted file mode 100644 index 102b71d3d5f..00000000000 --- a/sys/arch/pdp10/include/cdefs.h +++ /dev/null @@ -1,8 +0,0 @@ -/* $NetBSD: cdefs.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ - -#ifndef _MACHINE_CDEFS_H_ -#define _MACHINE_CDEFS_H_ - -/* No arch-specific cdefs. */ - -#endif /* !_MACHINE_CDEFS_H_ */ diff --git a/sys/arch/pdp10/include/cpu.h b/sys/arch/pdp10/include/cpu.h deleted file mode 100644 index 8b73d75d420..00000000000 --- a/sys/arch/pdp10/include/cpu.h +++ /dev/null @@ -1,96 +0,0 @@ -/* $NetBSD: cpu.h,v 1.4 2007/02/16 02:53:50 ad Exp $ */ -/* - * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). - * 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. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - */ - -#ifndef _PDP10_CPU_H_ -#define _PDP10_CPU_H_ - -#if defined(_KERNEL_OPT) -#include "opt_lockdebug.h" -#endif - -#ifdef _KERNEL - -#include <sys/cdefs.h> -#include <sys/device.h> -#include <sys/lock.h> -#include <sys/cpu_data.h> - -struct cpu_info { - /* - * Public members. - */ - struct cpu_data ci_data; /* MI per-cpu data */ - struct proc *ci_curproc; /* current owner of the processor */ - -}; - -extern struct cpu_info cpu_info_store; -#define curcpu() (&cpu_info_store) - -volatile int want_resched, astpending; -#define need_resched(ci) (want_resched = 1, astpending = 1) -#define cpu_proc_fork(x, y) -void signotify(struct proc *); -void need_proftick(struct proc *); - -#define cpu_number() 0 - -/* - * Info given to hardclock; current ac block (DATAI PAG). - * If current ac block is user block, CLKF_USERMODE. - * If current ac block is interrupt block, CLKF_INTR. - */ -struct clockframe { - int dataiw; -}; -#define CAC(y) (((y)->dataiw >> 27) & 7) - -#define CLKF_USERMODE(x) (CAC(x) == 1) -#define CLKF_PC(x) (panic("CLKF_PC"), 0) -#define CLKF_INTR(x) (CAC(x) == 2) - -void kl10_conf(void); - -/* Type conversion without pointer conversion */ -#ifdef __GNUC__ -#define TCONV(rtype, inval) \ - ({ union { typeof(inval) p; rtype i; } f; f.p = inval; f.i; }) -#endif -typedef union { - int *intp; - char *cp; - int intop; -} TUNION; -#define TPTOINT(b) (uu.intp = (int *)b, uu.intop) -#define TINTTOP(b) (uu.intop = (int)b, uu.intp) -#define TINTTOCP(b) (uu.intop = (int)b, uu.cp) - - -#endif /* _KERNEL */ - -#endif /* _PDP10_CPU_H_ */ diff --git a/sys/arch/pdp10/include/db_machdep.h b/sys/arch/pdp10/include/db_machdep.h deleted file mode 100644 index 5a8eacf01df..00000000000 --- a/sys/arch/pdp10/include/db_machdep.h +++ /dev/null @@ -1,84 +0,0 @@ -/* $NetBSD: db_machdep.h,v 1.5 2007/02/21 22:59:49 thorpej Exp $ */ -/* - * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). - * 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. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - */ - -#ifndef _PDP10_DB_MACHDEP_H_ -#define _PDP10_DB_MACHDEP_H_ - -/* - * Machine-dependent debugger defines for PDP10. - */ - -#include <sys/param.h> -#include <uvm/uvm_param.h> -#include <machine/trap.h> - - -typedef vaddr_t db_addr_t; -typedef long db_expr_t; - -typedef struct trapframe db_regs_t; -extern db_regs_t ddb_regs; - -#define DDB_REGS (&ddb_regs) - -#define PC_REGS(regs) (regs->pc) - -#define BKPT_INST 0041000000000 /* MUUO */ -#define BKPT_SIZE 4 /* bytes */ -#define BKPT_SET(inst, addr) (BKPT_INST) -#define BKPT_ADDR(addr) (addr) /* breakpoint address */ - -#define IS_BREAKPOINT_TRAP(type, code) (1) /* XXX */ -#define IS_WATCHPOINT_TRAP(type, code) (0) /* XXX */ - -#define PUSHJ 0260000000000 -#define POPJ 0263000000000 -#define XJEN 0254300000000 - -#define inst_trap_return(ins) (((ins)&0777740000000) == XJEN) -#define inst_return(ins) (((ins)&0777000000000) == POPJ) -#define inst_call(ins) (((ins)&0777000000000) == PUSHJ) -#define next_instr_address(v, b) ((db_addr_t) ((b) ? (v) : ((v) + 4))) - -#define SOFTWARE_SSTEP - -#define inst_load(ins) 0 -#define inst_store(ins) 0 - -/* - * Functions needed for software single-stepping. - */ - -bool inst_branch(int inst); -db_addr_t branch_taken(int inst, db_addr_t pc, db_regs_t *regs); -bool inst_unconditional_flow_transfer(int inst); - -#define DB_ELF_SYMBOLS -#define DB_ELFSIZE 36 - -#endif /* _PDP10_DB_MACHDEP_H_ */ diff --git a/sys/arch/pdp10/include/disklabel.h b/sys/arch/pdp10/include/disklabel.h deleted file mode 100644 index e98d975c5c5..00000000000 --- a/sys/arch/pdp10/include/disklabel.h +++ /dev/null @@ -1,47 +0,0 @@ -/* $NetBSD: disklabel.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ - -/* - * Copyright (c) 1994 Christopher G. Demetriou - * 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. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Christopher G. Demetriou. - * 4. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - */ - -#ifndef _MACHINE_DISKLABEL_H_ -#define _MACHINE_DISKLABEL_H_ - -#define LABELSECTOR 0 /* sector containing label */ -#define LABELOFFSET 64 /* offset of label in sector */ -#define MAXPARTITIONS 16 /* number of partitions */ -#define RAW_PART 2 /* raw partition: xx?c */ - -/* Just a dummy */ -#ifndef _LOCORE -struct cpu_disklabel { - int cd_dummy; /* must have one element. */ -}; -#endif -#endif /* _MACHINE_DISKLABEL_H_ */ diff --git a/sys/arch/pdp10/include/elf_machdep.h b/sys/arch/pdp10/include/elf_machdep.h deleted file mode 100644 index 26ed6543cd0..00000000000 --- a/sys/arch/pdp10/include/elf_machdep.h +++ /dev/null @@ -1,18 +0,0 @@ -/* $NetBSD: elf_machdep.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ - -#define ELF36_MACHDEP_ENDIANNESS ELFDATA2MSB -#define ELF36_MACHDEP_ID_CASES \ - case EM_PDP10: \ - break; - -#define ELF32_MACHDEP_ENDIANNESS XXX /* break compilation */ -#define ELF32_MACHDEP_ID_CASES \ - /* no 32-bit ELF machine types supported */ - -#define ELF64_MACHDEP_ENDIANNESS XXX /* break compilation */ -#define ELF64_MACHDEP_ID_CASES \ - /* no 64-bit ELF machine types supported */ - -#define ELF36_MACHDEP_ID EM_PDP10 - -#define ARCH_ELFSIZE 36 /* MD native binary size XXX */ diff --git a/sys/arch/pdp10/include/endian.h b/sys/arch/pdp10/include/endian.h deleted file mode 100644 index 1af53fbcfee..00000000000 --- a/sys/arch/pdp10/include/endian.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $NetBSD: endian.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ - -#include <sys/endian.h> diff --git a/sys/arch/pdp10/include/endian_machdep.h b/sys/arch/pdp10/include/endian_machdep.h deleted file mode 100644 index 694179598c4..00000000000 --- a/sys/arch/pdp10/include/endian_machdep.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $NetBSD: endian_machdep.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ - -#define _BYTE_ORDER _BIG_ENDIAN diff --git a/sys/arch/pdp10/include/int_const.h b/sys/arch/pdp10/include/int_const.h deleted file mode 100644 index 2ebff31f4c1..00000000000 --- a/sys/arch/pdp10/include/int_const.h +++ /dev/null @@ -1,63 +0,0 @@ -/* $NetBSD: int_const.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ - -/*- - * Copyright (c) 2001 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Klaus Klein. - * - * 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. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the NetBSD - * Foundation, Inc. and its contributors. - * 4. Neither the name of The NetBSD Foundation 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 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. - */ - -#ifndef _PDP10_INT_CONST_H_ -#define _PDP10_INT_CONST_H_ - -/* - * 7.18.4 Macros for integer constants - */ - -/* 7.18.4.1 Macros for minimum-width integer constants */ - -#define INT8_C(c) c -#define INT16_C(c) c -#define INT32_C(c) c -#define INT64_C(c) c ## LL - -#define UINT8_C(c) c ## U -#define UINT16_C(c) c ## U -#define UINT32_C(c) c ## U -#define UINT64_C(c) c ## ULL - -/* 7.18.4.2 Macros for greatest-width integer constants */ - -#define INTMAX_C(c) c ## LL -#define UINTMAX_C(c) c ## ULL - -#endif /* !_PDP10_INT_CONST_H_ */ diff --git a/sys/arch/pdp10/include/int_fmtio.h b/sys/arch/pdp10/include/int_fmtio.h deleted file mode 100644 index 46b84f02aa6..00000000000 --- a/sys/arch/pdp10/include/int_fmtio.h +++ /dev/null @@ -1,263 +0,0 @@ -/* $NetBSD: int_fmtio.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ - -/*- - * Copyright (c) 2001 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Klaus Klein. - * - * 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. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the NetBSD - * Foundation, Inc. and its contributors. - * 4. Neither the name of The NetBSD Foundation 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 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. - */ - -#ifndef _PDP10_INT_FMTIO_H_ -#define _PDP10_INT_FMTIO_H_ - -/* - * 7.8.1 Macros for format specifiers - */ - -/* fprintf macros for signed integers */ - -#define PRId8 "d" /* int8_t */ -#define PRId16 "d" /* int16_t */ -#define PRId32 "d" /* int32_t */ -#define PRId64 "lld" /* int64_t */ -#define PRIdLEAST8 "d" /* int_least8_t */ -#define PRIdLEAST16 "d" /* int_least16_t */ -#define PRIdLEAST32 "d" /* int_least32_t */ -#define PRIdLEAST64 "lld" /* int_least64_t */ -#define PRIdFAST8 "d" /* int_fast8_t */ -#define PRIdFAST16 "d" /* int_fast16_t */ -#define PRIdFAST32 "d" /* int_fast32_t */ -#define PRIdFAST64 "lld" /* int_fast64_t */ -#define PRIdMAX "lld" /* intmax_t */ -#ifdef __ELF__ -#define PRIdPTR "ld" /* intptr_t */ -#else -#define PRIdPTR "d" /* intptr_t */ -#endif - -#define PRIi8 "i" /* int8_t */ -#define PRIi16 "i" /* int16_t */ -#define PRIi32 "i" /* int32_t */ -#define PRIi64 "lli" /* int64_t */ -#define PRIiLEAST8 "i" /* int_least8_t */ -#define PRIiLEAST16 "i" /* int_least16_t */ -#define PRIiLEAST32 "i" /* int_least32_t */ -#define PRIiLEAST64 "lli" /* int_least64_t */ -#define PRIiFAST8 "i" /* int_fast8_t */ -#define PRIiFAST16 "i" /* int_fast16_t */ -#define PRIiFAST32 "i" /* int_fast32_t */ -#define PRIiFAST64 "lli" /* int_fast64_t */ -#define PRIiMAX "lli" /* intmax_t */ -#ifdef __ELF__ -#define PRIiPTR "li" /* intptr_t */ -#else -#define PRIiPTR "i" /* intptr_t */ -#endif - -/* fprintf macros for unsigned integers */ - -#define PRIo8 "o" /* uint8_t */ -#define PRIo16 "o" /* uint16_t */ -#define PRIo32 "o" /* uint32_t */ -#define PRIo64 "llo" /* uint64_t */ -#define PRIoLEAST8 "o" /* uint_least8_t */ -#define PRIoLEAST16 "o" /* uint_least16_t */ -#define PRIoLEAST32 "o" /* uint_least32_t */ -#define PRIoLEAST64 "llo" /* uint_least64_t */ -#define PRIoFAST8 "o" /* uint_fast8_t */ -#define PRIoFAST16 "o" /* uint_fast16_t */ -#define PRIoFAST32 "o" /* uint_fast32_t */ -#define PRIoFAST64 "llo" /* uint_fast64_t */ -#define PRIoMAX "llo" /* uintmax_t */ -#ifdef __ELF__ -#define PRIoPTR "lo" /* uintptr_t */ -#else -#define PRIoPTR "o" /* uintptr_t */ -#endif - -#define PRIu8 "u" /* uint8_t */ -#define PRIu16 "u" /* uint16_t */ -#define PRIu32 "u" /* uint32_t */ -#define PRIu64 "llu" /* uint64_t */ -#define PRIuLEAST8 "u" /* uint_least8_t */ -#define PRIuLEAST16 "u" /* uint_least16_t */ -#define PRIuLEAST32 "u" /* uint_least32_t */ -#define PRIuLEAST64 "llu" /* uint_least64_t */ -#define PRIuFAST8 "u" /* uint_fast8_t */ -#define PRIuFAST16 "u" /* uint_fast16_t */ -#define PRIuFAST32 "u" /* uint_fast32_t */ -#define PRIuFAST64 "llu" /* uint_fast64_t */ -#define PRIuMAX "llu" /* uintmax_t */ -#ifdef __ELF__ -#define PRIuPTR "lu" /* uintptr_t */ -#else -#define PRIuPTR "u" /* uintptr_t */ -#endif - -#define PRIx8 "x" /* uint8_t */ -#define PRIx16 "x" /* uint16_t */ -#define PRIx32 "x" /* uint32_t */ -#define PRIx64 "llx" /* uint64_t */ -#define PRIxLEAST8 "x" /* uint_least8_t */ -#define PRIxLEAST16 "x" /* uint_least16_t */ -#define PRIxLEAST32 "x" /* uint_least32_t */ -#define PRIxLEAST64 "llx" /* uint_least64_t */ -#define PRIxFAST8 "x" /* uint_fast8_t */ -#define PRIxFAST16 "x" /* uint_fast16_t */ -#define PRIxFAST32 "x" /* uint_fast32_t */ -#define PRIxFAST64 "llx" /* uint_fast64_t */ -#define PRIxMAX "llx" /* uintmax_t */ -#ifdef __ELF__ -#define PRIxPTR "lx" /* uintptr_t */ -#else -#define PRIxPTR "x" /* uintptr_t */ -#endif - -#define PRIX8 "X" /* uint8_t */ -#define PRIX16 "X" /* uint16_t */ -#define PRIX32 "X" /* uint32_t */ -#define PRIX64 "llX" /* uint64_t */ -#define PRIXLEAST8 "X" /* uint_least8_t */ -#define PRIXLEAST16 "X" /* uint_least16_t */ -#define PRIXLEAST32 "X" /* uint_least32_t */ -#define PRIXLEAST64 "llX" /* uint_least64_t */ -#define PRIXFAST8 "X" /* uint_fast8_t */ -#define PRIXFAST16 "X" /* uint_fast16_t */ -#define PRIXFAST32 "X" /* uint_fast32_t */ -#define PRIXFAST64 "llX" /* uint_fast64_t */ -#define PRIXMAX "llX" /* uintmax_t */ -#ifdef __ELF__ -#define PRIXPTR "lX" /* uintptr_t */ -#else -#define PRIXPTR "X" /* uintptr_t */ -#endif - -/* fscanf macros for signed integers */ - -#define SCNd8 "hhd" /* int8_t */ -#define SCNd16 "hd" /* int16_t */ -#define SCNd32 "d" /* int32_t */ -#define SCNd64 "lld" /* int64_t */ -#define SCNdLEAST8 "hhd" /* int_least8_t */ -#define SCNdLEAST16 "hd" /* int_least16_t */ -#define SCNdLEAST32 "d" /* int_least32_t */ -#define SCNdLEAST64 "lld" /* int_least64_t */ -#define SCNdFAST8 "hhd" /* int_fast8_t */ -#define SCNdFAST16 "hd" /* int_fast16_t */ -#define SCNdFAST32 "d" /* int_fast32_t */ -#define SCNdFAST64 "lld" /* int_fast64_t */ -#define SCNdMAX "lld" /* intmax_t */ -#ifdef __ELF__ -#define SCNdPTR "ld" /* intptr_t */ -#else -#define SCNdPTR "d" /* intptr_t */ -#endif - -#define SCNi8 "hhi" /* int8_t */ -#define SCNi16 "hi" /* int16_t */ -#define SCNi32 "i" /* int32_t */ -#define SCNi64 "lli" /* int64_t */ -#define SCNiLEAST8 "hhi" /* int_least8_t */ -#define SCNiLEAST16 "hi" /* int_least16_t */ -#define SCNiLEAST32 "i" /* int_least32_t */ -#define SCNiLEAST64 "lli" /* int_least64_t */ -#define SCNiFAST8 "hhi" /* int_fast8_t */ -#define SCNiFAST16 "hi" /* int_fast16_t */ -#define SCNiFAST32 "i" /* int_fast32_t */ -#define SCNiFAST64 "lli" /* int_fast64_t */ -#define SCNiMAX "lli" /* intmax_t */ -#ifdef __ELF__ -#define SCNiPTR "li" /* intptr_t */ -#else -#define SCNiPTR "i" /* intptr_t */ -#endif - -/* fscanf macros for unsigned integers */ - -#define SCNo8 "hho" /* uint8_t */ -#define SCNo16 "ho" /* uint16_t */ -#define SCNo32 "o" /* uint32_t */ -#define SCNo64 "llo" /* uint64_t */ -#define SCNoLEAST8 "hho" /* uint_least8_t */ -#define SCNoLEAST16 "ho" /* uint_least16_t */ -#define SCNoLEAST32 "o" /* uint_least32_t */ -#define SCNoLEAST64 "llo" /* uint_least64_t */ -#define SCNoFAST8 "hho" /* uint_fast8_t */ -#define SCNoFAST16 "ho" /* uint_fast16_t */ -#define SCNoFAST32 "o" /* uint_fast32_t */ -#define SCNoFAST64 "llo" /* uint_fast64_t */ -#define SCNoMAX "llo" /* uintmax_t */ -#ifdef __ELF__ -#define SCNoPTR "lo" /* uintptr_t */ -#else -#define SCNoPTR "o" /* uintptr_t */ -#endif - -#define SCNu8 "hhu" /* uint8_t */ -#define SCNu16 "hu" /* uint16_t */ -#define SCNu32 "u" /* uint32_t */ -#define SCNu64 "llu" /* uint64_t */ -#define SCNuLEAST8 "hhu" /* uint_least8_t */ -#define SCNuLEAST16 "hu" /* uint_least16_t */ -#define SCNuLEAST32 "u" /* uint_least32_t */ -#define SCNuLEAST64 "llu" /* uint_least64_t */ -#define SCNuFAST8 "hhu" /* uint_fast8_t */ -#define SCNuFAST16 "hu" /* uint_fast16_t */ -#define SCNuFAST32 "u" /* uint_fast32_t */ -#define SCNuFAST64 "llu" /* uint_fast64_t */ -#define SCNuMAX "llu" /* uintmax_t */ -#ifdef __ELF__ -#define SCNuPTR "lu" /* uintptr_t */ -#else -#define SCNuPTR "u" /* uintptr_t */ -#endif - -#define SCNx8 "hhx" /* uint8_t */ -#define SCNx16 "hx" /* uint16_t */ -#define SCNx32 "x" /* uint32_t */ -#define SCNx64 "llx" /* uint64_t */ -#define SCNxLEAST8 "hhx" /* uint_least8_t */ -#define SCNxLEAST16 "hx" /* uint_least16_t */ -#define SCNxLEAST32 "x" /* uint_least32_t */ -#define SCNxLEAST64 "llx" /* uint_least64_t */ -#define SCNxFAST8 "hhx" /* uint_fast8_t */ -#define SCNxFAST16 "hx" /* uint_fast16_t */ -#define SCNxFAST32 "x" /* uint_fast32_t */ -#define SCNxFAST64 "llx" /* uint_fast64_t */ -#define SCNxMAX "llx" /* uintmax_t */ -#ifdef __ELF__ -#define SCNxPTR "lx" /* uintptr_t */ -#else -#define SCNxPTR "x" /* uintptr_t */ -#endif - -#endif /* !_PDP10_INT_FMTIO_H_ */ diff --git a/sys/arch/pdp10/include/int_limits.h b/sys/arch/pdp10/include/int_limits.h deleted file mode 100644 index 1109e8e0915..00000000000 --- a/sys/arch/pdp10/include/int_limits.h +++ /dev/null @@ -1,143 +0,0 @@ -/* $NetBSD: int_limits.h,v 1.3 2005/12/11 12:18:34 christos Exp $ */ - -/*- - * Copyright (c) 2001 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Klaus Klein. - * - * 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. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the NetBSD - * Foundation, Inc. and its contributors. - * 4. Neither the name of The NetBSD Foundation 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 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. - */ - -#ifndef _PDP10_INT_LIMITS_H_ -#define _PDP10_INT_LIMITS_H_ - -/* - * 7.18.2 Limits of specified-width integer types - */ - -/* 7.18.2.1 Limits of exact-width integer types */ - -/* minimum values of exact-width signed integer types */ -#define INT8_MIN (-0x7f-1) /* int8_t */ -#define INT16_MIN (-0x7fff-1) /* int16_t */ -#define INT32_MIN (-0x7fffffff-1) /* int32_t */ -#define INT64_MIN (-0x7fffffffffffffffLL-1) /* int64_t XXX */ - -/* maximum values of exact-width signed integer types */ -#define INT8_MAX 0x7f /* int8_t */ -#define INT16_MAX 0x7fff /* int16_t */ -#define INT32_MAX 0x7fffffff /* int32_t */ -#define INT64_MAX 0x7fffffffffffffffLL /* int64_t XXX */ - -/* maximum values of exact-width unsigned integer types */ -#define UINT8_MAX 0xffU /* uint8_t */ -#define UINT16_MAX 0xffffU /* uint16_t */ -#define UINT32_MAX 0xffffffffU /* uint32_t */ -#define UINT64_MAX 0xffffffffffffffffULL /* uint64_t XXX */ - -/* 7.18.2.2 Limits of minimum-width integer types */ - -/* minimum values of minimum-width signed integer types */ -#define INT_LEAST8_MIN (-0xff-1) /* int_least8_t */ -#define INT_LEAST16_MIN (-0x1ffff-1) /* int_least16_t */ -#define INT_LEAST32_MIN (-0x7ffffffff-1) /* int_least32_t */ -#define INT_LEAST64_MIN (-0x7fffffffffffffffffLL-1) /* int_least64_t */ - -/* maximum values of minimum-width signed integer types */ -#define INT_LEAST8_MAX 0xff /* int_least8_t */ -#define INT_LEAST16_MAX 0x1ffff /* int_least16_t */ -#define INT_LEAST32_MAX 0x7ffffffff /* int_least32_t */ -#define INT_LEAST64_MAX 0x7fffffffffffffffffLL /* int_least64_t */ - -/* maximum values of minimum-width unsigned integer types */ -#define UINT_LEAST8_MAX 0x1ffU /* uint_least8_t */ -#define UINT_LEAST16_MAX 0x3ffffU /* uint_least16_t */ -#define UINT_LEAST32_MAX 0xfffffffffU /* uint_least32_t */ -#define UINT_LEAST64_MAX 0xffffffffffffffffffULL /* uint_least64_t */ - -/* 7.18.2.3 Limits of fastest minimum-width integer types */ - -/* minimum values of fastest minimum-width signed integer types */ -#define INT_FAST8_MIN (-0xff-1) /* int_fast8_t */ -#define INT_FAST16_MIN (-0x1ffff-1) /* int_fast16_t */ -#define INT_FAST32_MIN (-0x7ffffffff-1) /* int_fast32_t */ -#define INT_FAST64_MIN (-0x7fffffffffffffffffLL-1) /* int_fast64_t */ - -/* maximum values of fastest minimum-width signed integer types */ -#define INT_FAST8_MAX 0xff /* int_fast8_t */ -#define INT_FAST16_MAX 0x1ffff /* int_fast16_t */ -#define INT_FAST32_MAX 0x7ffffffff /* int_fast32_t */ -#define INT_FAST64_MAX 0x7fffffffffffffffffLL /* int_fast64_t */ - -/* maximum values of fastest minimum-width unsigned integer types */ -#define UINT_FAST8_MAX 0x1ffU /* uint_fast8_t */ -#define UINT_FAST16_MAX 0x3ffffU /* uint_fast16_t */ -#define UINT_FAST32_MAX 0xfffffffffU /* uint_fast32_t */ -#define UINT_FAST64_MAX 0xffffffffffffffffffULL /* uint_fast64_t */ - -/* 7.18.2.4 Limits of integer types capable of holding object pointers */ - -#define INTPTR_MIN (-0x7ffffffff-1) /* intptr_t */ -#define INTPTR_MAX 0x7ffffffff /* intptr_t */ -#define UINTPTR_MAX 0xfffffffffU /* uintptr_t */ - -/* 7.18.2.5 Limits of greatest-width integer types */ - -#define INTMAX_MIN (-0x7fffffffffffffffffLL-1) /* intmax_t */ -#define INTMAX_MAX 0x7fffffffffffffffffLL /* intmax_t */ -#define UINTMAX_MAX 0xffffffffffffffffffULL /* uintmax_t */ - - -/* - * 7.18.3 Limits of other integer types - */ - -/* limits of ptrdiff_t */ -#ifdef __ELF__ -#define PTRDIFF_MIN (-0x7ffffffffL-1) /* ptrdiff_t */ -#define PTRDIFF_MAX 0x7ffffffffL /* ptrdiff_t */ -#else -#define PTRDIFF_MIN (-0x7ffffffff-1) /* ptrdiff_t */ -#define PTRDIFF_MAX 0x7ffffffff /* ptrdiff_t */ -#endif - -/* limits of sig_atomic_t */ -#define SIG_ATOMIC_MIN (-0x7ffffffff-1) /* sig_atomic_t */ -#define SIG_ATOMIC_MAX 0x7ffffffff /* sig_atomic_t */ - -/* limit of size_t */ -#ifdef __ELF__ -#define SIZE_MAX 0xfffffffffUL /* size_t */ -#else -#define SIZE_MAX 0xfffffffffU /* size_t */ -#endif - -#endif /* !_PDP10_INT_LIMITS_H_ */ diff --git a/sys/arch/pdp10/include/int_mwgwtypes.h b/sys/arch/pdp10/include/int_mwgwtypes.h deleted file mode 100644 index 3dd168ac245..00000000000 --- a/sys/arch/pdp10/include/int_mwgwtypes.h +++ /dev/null @@ -1,102 +0,0 @@ -/* $NetBSD: int_mwgwtypes.h,v 1.3 2005/12/24 20:07:24 perry Exp $ */ - -/*- - * Copyright (c) 2001 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Klaus Klein. - * - * 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. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the NetBSD - * Foundation, Inc. and its contributors. - * 4. Neither the name of The NetBSD Foundation 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 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. - */ - -#ifndef _PDP10_INT_MWGWTYPES_H_ -#define _PDP10_INT_MWGWTYPES_H_ - -/* - * 7.18.1 Integer types - */ - -/* 7.18.1.2 Minimum-width integer types */ - -#ifdef __GNUC__ -typedef signed char int_least8_t; -#else -typedef signed char int_least8_t; -#endif -typedef unsigned char uint_least8_t; -typedef short int int_least16_t; -typedef unsigned short int uint_least16_t; -typedef int int_least32_t; -typedef unsigned int uint_least32_t; -#ifdef __COMPILER_INT64__ -typedef __COMPILER_INT64__ int_least64_t; -typedef __COMPILER_UINT64__ uint_least64_t; -#else -/* LONGLONG */ -typedef long long int int_least64_t; -/* LONGLONG */ -typedef unsigned long long int uint_least64_t; -#endif - -/* 7.18.1.3 Fastest minimum-width integer types */ - -#ifdef __GNUC__ -typedef signed char int_fast8_t; -#else -typedef signed char int_fast8_t; -#endif -typedef unsigned char uint_fast8_t; -typedef short int int_fast16_t; -typedef unsigned short int uint_fast16_t; -typedef int int_fast32_t; -typedef unsigned int uint_fast32_t; -#ifdef __COMPILER_INT64__ -typedef __COMPILER_INT64__ int_fast64_t; -typedef __COMPILER_UINT64__ uint_fast64_t; -#else -/* LONGLONG */ -typedef long long int int_fast64_t; -/* LONGLONG */ -typedef unsigned long long int uint_fast64_t; -#endif - -/* 7.18.1.5 Greatest-width integer types */ - -#ifdef __COMPILER_INT64__ -typedef __COMPILER_INT64__ intmax_t; -typedef __COMPILER_UINT64__ uintmax_t; -#else -/* LONGLONG */ -typedef long long int intmax_t; -/* LONGLONG */ -typedef unsigned long long int uintmax_t; -#endif - -#endif /* !_PDP10_INT_MWGWTYPES_H_ */ diff --git a/sys/arch/pdp10/include/int_types.h b/sys/arch/pdp10/include/int_types.h deleted file mode 100644 index 097e0cf0c70..00000000000 --- a/sys/arch/pdp10/include/int_types.h +++ /dev/null @@ -1,88 +0,0 @@ -/* $NetBSD: int_types.h,v 1.4 2005/12/24 20:07:24 perry Exp $ */ - -/*- - * Copyright (c) 1990 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. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. 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. - * - * from: @(#)types.h 7.5 (Berkeley) 3/9/91 - */ - -#ifndef _PDP10_INT_TYPES_H_ -#define _PDP10_INT_TYPES_H_ - -#include <sys/cdefs.h> - -/* - * 7.18.1 Integer types - */ - -/* 7.18.1.1 Exact-width integer types */ - -#ifdef __GNUC__ -typedef signed char __int8_t __attribute__ ((size (8))); -typedef unsigned char __uint8_t __attribute__ ((size (8))); -typedef short int __int16_t __attribute__ ((size (16))); -typedef unsigned short int __uint16_t __attribute__ ((size (16))); -typedef int __int32_t __attribute__ ((size (32))); -typedef unsigned int __uint32_t __attribute__ ((size (32))); -#elif defined(__PCC__) -typedef signed char __int8_t /* _Pragma ((size (8))) */; -typedef unsigned char __uint8_t /* _Pragma ((size (8))) */; -typedef short int __int16_t /* _Pragma ((size (16))) */; -typedef unsigned short int __uint16_t /* _Pragma ((size (16))) */; -typedef int __int32_t /* _Pragma ((size (32))) */; -typedef unsigned int __uint32_t /* _Pragma ((size (32))) */; -#else -#error Need special types for compiler -#endif -#ifdef __COMPILER_INT64__ -typedef __COMPILER_INT64__ __int64_t; -typedef __COMPILER_UINT64__ __uint64_t; -#else -/* LONGLONG */ -typedef long long int __int64_t; -/* LONGLONG */ -typedef unsigned long long int __uint64_t; -#endif - -#define __BIT_TYPES_DEFINED__ - -/* 7.18.1.4 Integer types capable of holding object pointers */ - -#ifdef __ELF__ -typedef long int __intptr_t; -typedef unsigned long int __uintptr_t; -#else -typedef int __intptr_t; -typedef unsigned int __uintptr_t; -#endif - -#endif /* !_VAX_INT_TYPES_H_ */ diff --git a/sys/arch/pdp10/include/intr.h b/sys/arch/pdp10/include/intr.h deleted file mode 100644 index d4b9ff2e8a3..00000000000 --- a/sys/arch/pdp10/include/intr.h +++ /dev/null @@ -1,105 +0,0 @@ -/* $NetBSD: intr.h,v 1.4 2007/02/16 02:53:50 ad Exp $ */ -/* - * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). - * 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. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - */ - -#ifndef _PDP10_INTR_H_ -#define _PDP10_INTR_H_ - -/* - * A KL10 has 8 interrupt levels, numbered from 0 (highest) to 7. - * All devices get their interrupt level assigned by software. - * The levels here are given as those numbers. - * The hardware vectors used are 40-57 in EPT. - */ -#define IPL_HIGH 0 /* In reality cannot be blocked */ -#define IPL_DDB 1 /* Enter DDB here */ -#define IPL_CLOCK 2 /* Interrupt timer */ -#define IPL_VM 3 /* Blocks everything except hardclock */ -#define IPL_NET 3 /* NIA20 */ -#define IPL_BIO 4 /* RH20 */ -#define IPL_TTY 5 /* Actually all frontend devices */ -#define IPL_AUDIO 5 /* Not likely... */ -#define IPL_SOFTSERIAL 6 -#define IPL_SOFTNET 6 -#define IPL_SOFTCLOCK 7 /* Process scheduling */ - -#define MAKEIV(ipl) (040 + (ipl)*2) - -/* - * Constants used for altering the interrupt system. - */ -#define PI_ON 0000200 /* Turn on PI system */ -#define PI_OFF 0000400 /* Turn off PI system */ -#define PI_LVLOFF 0001000 /* Turn off PI level */ -#define PI_LVLON 0002000 /* Turn on PI level */ -#define PI_INIT 0004000 /* Initiate interrupt on level */ -#define PI_CLEAR 0010000 /* Clear interrupt system */ -#define PI_DROP 0020000 /* Drop initiated interrupt on level */ - -/* - * IPLs converted to PI bits - */ -#define IPL2PI(x) (1 << (7 - (x))) -#define PI_CLOCK IPL2PI(IPL_CLOCK) -#define PI_BIO IPL2PI(IPL_BIO) -#define PI_NET IPL2PI(IPL_NET) -#define PI_TTY IPL2PI(IPL_TTY) -#define PI_SOFTNET IPL2PI(IPL_SOFTNET) -#define PI_SOFTCLOCK IPL2PI(IPL_SOFTCLOCK) -#define PI_ALL 0177 - -#ifndef _LOCORE -int splvm(void); -int splnet(void); -int splsched(void); -int splclock(void); -int splbio(void); -int splstatclock(void); -int splhigh(void); -int splstatclock(void); -int splsoftnet(void); -int spltty(void); -int spl0(void); -int spllock(void); -int splx(int); - -typedef int ipl_t; -typedef struct { - _pi; -} ipl_cookie_t; -int splraiseipl(ipl_cookie_t); -ipl_cookie_t makeiplcookie(ipl_t); - -#if 0 -extern void *softintr_establish(int, void (*)(void *), void *); -void softintr_schedule(void *arg); -#endif -void setsoftclock(void); -void setsoftnet(void); -#endif /* _LOCORE */ - -#endif /* _PDP10_INTR_H */ diff --git a/sys/arch/pdp10/include/io.h b/sys/arch/pdp10/include/io.h deleted file mode 100644 index 2a85104010d..00000000000 --- a/sys/arch/pdp10/include/io.h +++ /dev/null @@ -1,93 +0,0 @@ -/* $NetBSD: io.h,v 1.3 2005/12/24 20:07:24 perry Exp $ */ -/* - * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). - * 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. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - */ - -/* - * I/O defines for KA/KI/KL-type CPUs. - */ - -#ifndef _LOCORE -#ifdef __GNUC__ -#define CONO(dev,val) \ - asm volatile("xct %0" :: "r"(0700200000000 | ((dev) << 24) | (val))) -#define CONI(dev,val) \ - asm volatile("xct %1 \n move %0,6 " \ - : "=r"(val) : "r"(0700240000006 | ((dev) << 24)) : "6") -#define DATAO(dev,val) \ - asm volatile("move 6,%1 \n xct %0" \ - : : "r"(0700140000006 | ((dev) << 24)), "r"(val) : "6") -#define DATAI(dev,val) \ - asm volatile("xct %1 \n move %0,6 " \ - : "=r"(val) : "r"(0700040000006 | ((dev) << 24)) : "6") -#define BLKI(dev,val) \ - asm volatile("xct %1 \n move %0,6 " \ - : "=r"(val) : "r"(0700000000006 | ((dev) << 24)) : "6") -#define BLKO(dev,val) \ - asm volatile("move 6,%1 \n xct %0" \ - : : "r"(0700100000006 | ((dev) << 24)), "r"(val) : "6") -#endif /* __GNUC__ */ - -#ifdef __PCC__ -#define CONO(dev,val) cono(dev,val) -#define CONI(dev,val) val = coni(dev) -#define DATAO(dev,val) datao(dev,val) -#define DATAI(dev,val) val = datai(dev) -#define BLKO(dev,val) blko(dev,val) -#define BLKI(dev,val) val = blki(dev) - -void cono(int, int); -void datao(int, int); -void blko(int, int); -int coni(int); -int datai(int); -int blki(int); -#endif /* __PCC__ */ - -#endif /* _LOCORE */ - -/* Paging control, device 010 */ -#define PAG 010 -#define PAG_CON_T20 0040000 -#define PAG_CON_ENABLE 0020000 -#define PAG_DATA_LUBA 0100000000000 /* Load user base address */ -#define PAG_DATA_DNUA 0000000400000 /* Do not update accounts */ - -#define DTE 0200 /* DTE20 */ - -/* Timer control, device 020 */ -#define TIM 020 -#define TIM_CON_CLIC 0400000 /* Clear interval counter */ -#define TIM_CON_ICON 0040000 /* Turn interval counter on */ -#define TIM_CON_CLIF 0020000 /* Clear interval flags */ - -/* Meter control, device 024 */ -#define MTR 024 -#define MTR_CONO_TBOFF 0004000 /* Time base off */ -#define MTR_CONO_TBON 0002000 /* Time base on */ -#define MTR_CONO_TBCLR 0001000 /* Time base clear */ - -#define PI 004 /* Interrupt system */ diff --git a/sys/arch/pdp10/include/limits.h b/sys/arch/pdp10/include/limits.h deleted file mode 100644 index 2bac41e92b3..00000000000 --- a/sys/arch/pdp10/include/limits.h +++ /dev/null @@ -1,106 +0,0 @@ -/* $NetBSD: limits.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ - -/* - * Copyright (c) 1988 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. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. 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. - * - * @(#)limits.h 7.2 (Berkeley) 6/28/90 - */ - -#ifndef _MACHINE_LIMITS_H_ -#define _MACHINE_LIMITS_H_ - -#define CHAR_BIT 9 /* number of bits in a char */ -#define MB_LEN_MAX 36 /* no multibyte characters */ - -#define SCHAR_MAX 0xff /* max value for a signed char */ -#define SCHAR_MIN (-0xff-1) /* min value for a signed char */ - -#define UCHAR_MAX 0x1ffU /* max value for an unsigned char */ -#define CHAR_MAX 0xff /* max value for a char */ -#define CHAR_MIN (-0xff-1) /* min value for a char */ - -#define USHRT_MAX 0x3ffffU /* max value for an unsigned short */ -#define SHRT_MAX 0x1ffff /* max value for a short */ -#define SHRT_MIN (-0x1ffff-1) /* min value for a short */ - -#define UINT_MAX 0xfffffffffU /* max value for an unsigned int */ -#define INT_MAX 0x7ffffffff /* max value for an int */ -#define INT_MIN (-0x7ffffffff-1) /* min value for an int */ - -#define ULONG_MAX 0xfffffffffUL /* max value for an unsigned long */ -#define LONG_MAX 0x7ffffffffL /* max value for a long */ -#define LONG_MIN (-0x7ffffffffL-1) /* min value for a long */ - -#if !defined(_ANSI_SOURCE) -#ifdef __ELF__ -#define SSIZE_MAX LONG_MAX /* max value for a ssize_t */ -#else -#define SSIZE_MAX INT_MAX /* max value for a ssize_t */ -#endif - -#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \ - defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L -#define ULLONG_MAX 0xffffffffffffffffffULL /* max unsigned long long */ -#define LLONG_MAX 0x7fffffffffffffffffLL /* max signed long long */ -#define LLONG_MIN (-0x7fffffffffffffffffLL-1) /* min signed long long */ -#endif - -#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) -#ifdef __ELF__ -#define SIZE_T_MAX ULONG_MAX /* max value for a size_t */ -#else -#define SIZE_T_MAX UINT_MAX /* max value for a size_t */ -#endif - -#define UQUAD_MAX 0xffffffffffffffffffULL /* max unsigned quad */ -#define QUAD_MAX 0x7fffffffffffffffffLL /* max signed quad */ -#define QUAD_MIN (-0x7fffffffffffffffffLL-1) /* min signed quad */ - -#endif /* !_POSIX_C_SOURCE && !_XOPEN_SOURCE */ -#endif /* !_ANSI_SOURCE */ - -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) || \ - defined(_XOPEN_SOURCE) -#define LONG_BIT 36 -#define WORD_BIT 36 - -/* XXX - floating point numbers not entirely correct */ -#define DBL_DIG 16 -#define DBL_MAX 1.701411834604692294E+38 -#define DBL_MIN 2.938735877055718770E-39 - -#define FLT_DIG 6 -#define FLT_MAX 1.70141173E+38F -#define FLT_MIN 2.93873588E-39F -#endif - -#endif /* _MACHINE_LIMITS_H_ */ diff --git a/sys/arch/pdp10/include/lock.h b/sys/arch/pdp10/include/lock.h deleted file mode 100644 index ba17b5be2c6..00000000000 --- a/sys/arch/pdp10/include/lock.h +++ /dev/null @@ -1,37 +0,0 @@ -/* $NetBSD: lock.h,v 1.3 2005/12/11 12:18:34 christos Exp $ */ -/* - * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). - * 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. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - */ - -#ifndef _PDP10_LOCK_H_ -#define _PDP10_LOCK_H_ - -void __cpu_simple_lock_init(__cpu_simple_lock_t *alp); -void __cpu_simple_lock(__cpu_simple_lock_t *alp); -void __cpu_simple_unlock(__cpu_simple_lock_t *alp); -int __cpu_simple_lock_try(__cpu_simple_lock_t *alp); - -#endif /* _PDP10_LOCK_H_ */ diff --git a/sys/arch/pdp10/include/mcontext.h b/sys/arch/pdp10/include/mcontext.h deleted file mode 100644 index 9b8688a7de2..00000000000 --- a/sys/arch/pdp10/include/mcontext.h +++ /dev/null @@ -1,82 +0,0 @@ -/* $NetBSD: mcontext.h,v 1.4 2005/12/11 12:18:34 christos Exp $ */ - -/*- - * Copyright (c) 2001 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Klaus Klein. - * - * 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. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the NetBSD - * Foundation, Inc. and its contributors. - * 4. Neither the name of The NetBSD Foundation 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 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. - */ - -#ifndef _PDP10_MCONTEXT_H_ -#define _PDP10_MCONTEXT_H_ - -/* - * Layout of mcontext_t. - * As on Alpha, this maps directly to `struct reg'. - */ - -#define _NGREG 17 /* 0-17, PC */ - -typedef int __greg_t; -typedef __greg_t __gregset_t[_NGREG]; - -#define _REG_0 0 -#define _REG_1 1 -#define _REG_2 2 -#define _REG_3 3 -#define _REG_4 4 -#define _REG_5 5 -#define _REG_6 6 -#define _REG_7 7 -#define _REG_10 8 -#define _REG_11 9 -#define _REG_12 10 -#define _REG_13 11 -#define _REG_14 12 -#define _REG_15 13 -#define _REG_16 14 -#define _REG_FP _REG_16 -#define _REG_17 15 -#define _REG_SP _REG_17 -#define _REG_PC 16 - -typedef struct { - __gregset_t __gregs; /* General Purpose Register set */ -} mcontext_t; - -#define _UC_MACHINE_SP(uc) ((uc)->uc_mcontext.__gregs[_REG_SP]) -#define _UC_MACHINE_PC(uc) ((uc)->uc_mcontext.__gregs[_REG_PC]) -#define _UC_MACHINE_INTRV(uc) ((uc)->uc_mcontext.__gregs[_REG_1]) - -#define _UC_MACHINE_SET_PC(uc, pc) _UC_MACHINE_PC(uc) = (pc) - -#endif /* !_PDP10_MCONTEXT_H_ */ diff --git a/sys/arch/pdp10/include/param.h b/sys/arch/pdp10/include/param.h deleted file mode 100644 index 1eff400ab26..00000000000 --- a/sys/arch/pdp10/include/param.h +++ /dev/null @@ -1,153 +0,0 @@ -/* $NetBSD: param.h,v 1.4 2006/08/28 13:43:35 yamt Exp $ */ -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * William Jolitz. - * - * 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. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. 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. - * - * @(#)param.h 5.8 (Berkeley) 6/28/91 - */ - -#ifndef _PDP10_PARAM_H_ -#define _PDP10_PARAM_H_ - -/* - * Machine dependent constants for PDP10. - */ - -#define _MACHINE pdp10 -#define MACHINE "pdp10" -#define _MACHINE_ARCH pdp10 -#define MACHINE_ARCH "pdp10" -#define MID_MACHINE MID_PDP10 - -/* - * Round p (pointer or byte index) up to a correctly-aligned value - * for all data types (int, long, ...). The result is u_int and - * must be cast to any desired pointer type. - * - * ALIGNED_POINTER is a boolean macro that checks whether an address - * is valid to fetch data elements of type t from on this architecture. - * This does not reflect the optimal alignment, just the possibility - * (within reasonable limits). - * - */ - -/* XXX - how should this macro look like??? */ -#define ALIGNBYTES (sizeof(int) - 1) -#define ALIGN(p) (((u_int)(p) + ALIGNBYTES) &~ ALIGNBYTES) -#define ALIGNED_POINTER(p,t) ((((u_long)(p)) & (sizeof(t)-1)) == 0) - -#define PGSHIFT 11 /* LOG2(NBPG) */ -#define NBPG (1 << PGSHIFT) /* (1 << PGSHIFT) bytes/page */ -#define PGOFSET (NBPG - 1) /* byte offset into page */ - -#define KERNBASE 01000000 /* start of kernel virtual */ - -#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ -#define DEV_BSIZE (1 << DEV_BSHIFT) - -#define BLKDEV_IOSIZE 2048 -#define MAXPHYS (64 * 1024) /* max raw I/O transfer size */ -#define MAXBSIZE 0x4000 /* max FS block size - XXX */ - -#define UPAGES 2 /* pages of u-area */ -#define USPACE (NBPG*UPAGES) - -#ifndef MSGBUFSIZE -#define MSGBUFSIZE NBPG /* default message buffer size */ -#endif - -/* - * KVA is very tight on pdp10, reduce the amount of KVA used by pipe - * "direct" write code to reasonably low value. - */ -#ifndef PIPE_DIRECT_CHUNK -#define PIPE_DIRECT_CHUNK 65536 -#endif - -/* - * Constants related to network buffer management. - * MCLBYTES must be no larger than NBPG (the software page size), and, - * on machines that exchange pages of input or output buffers with mbuf - * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple - * of the hardware page size. - */ -#define MSIZE 256 /* size of an mbuf */ - -#ifndef MCLSHIFT -#define MCLSHIFT 11 /* convert bytes to m_buf clusters */ - /* 2K cluster can hold Ether frame */ -#endif /* MCLSHIFT */ - -#define MCLBYTES (1 << MCLSHIFT) /* size of a m_buf cluster */ - -#ifndef NMBCLUSTERS -#if defined(_KERNEL_OPT) -#include "opt_gateway.h" -#endif - -#ifdef GATEWAY -#define NMBCLUSTERS 512 /* map size, max cluster allocation */ -#else -#define NMBCLUSTERS 256 /* map size, max cluster allocation */ -#endif -#endif - -/* - * Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized - * logical pages. - */ -#define NKMEMPAGES_MIN_DEFAULT ((4 * 1024 * 1024) >> PAGE_SHIFT) -#define NKMEMPAGES_MAX_DEFAULT ((4 * 1024 * 1024) >> PAGE_SHIFT) - -#define PAGER_MAP_SIZE (4 * 1024 * 1024) - -/* - * Some macros for units conversion - */ - -#define btop(x) (((unsigned)(x)) >> PGSHIFT) - -#ifdef _KERNEL -#include <machine/intr.h> - -/* Prototype needed for delay() */ -#ifndef _LOCORE -void delay __P((int)); -void * alloca(size_t); /* XXX should be somewhere else */ -#endif - -#define DELAY(x) delay(x) -#endif /* _KERNEL */ - -#endif /* _PDP10_PARAM_H_ */ diff --git a/sys/arch/pdp10/include/pcb.h b/sys/arch/pdp10/include/pcb.h deleted file mode 100644 index 60094abacca..00000000000 --- a/sys/arch/pdp10/include/pcb.h +++ /dev/null @@ -1,103 +0,0 @@ -/* $NetBSD: pcb.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ -/* - * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). - * 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. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - */ - -#ifndef _PDP10_PCB_H_ -#define _PDP10_PCB_H_ - -/* - * The "user process table" for extended TOPS-20. - */ -struct pcb { - int pcb_pad1[0420]; /* Page mapping in TOPS-10 */ - int pcb_luuo; /* Address of LUUO block */ - int pcb_ovtrap; /* Arithmetic overflow trap insn */ - int pcb_ovstack; /* Stack overflow trap insn */ - int pcb_trap3; /* User trap 3 instruction */ - int pcb_muuo_flop; /* MUUO flags/opcode */ - int pcb_muuo_oldpc; /* MUUO old PC */ - int pcb_muuo_e; /* MUUO E address */ - int pcb_muuo_pcw; /* MUUO Process Context Word */ - int pcb_knotrap; /* Kernel no trap MUUO new PC */ - int pcb_ktrap; /* Kernel trap MUUO new PC */ - int pcb_snotrap; /* Supervisor no trap MUUO new PC */ - int pcb_strap; /* Supervisor trap MUUO new PC */ - int pcb_cnotrap; /* Concealed no trap MUUO new PC */ - int pcb_ctrap; /* Concealed trap MUUO new PC */ - int pcb_pnotrap; /* Public no trap MUUO new PC */ - int pcb_ptrap; /* Public trap MUUO new PC */ - int pcb_pad2[040]; /* Reserved */ - int pcb_pfw; /* Page fail word */ - int pcb_pff; /* Page fail flags */ - int pcb_pfopc; /* Page fail old pc */ - int pcb_pfnpc; /* Page fail new pc */ - int pcb_upet[2]; /* User Process Execution Time */ - int pcb_umrc[2]; /* User Memory Reference Count */ - int pcb_pad3[030]; /* Reserved */ - int pcb_section[040]; /* Section pointers */ - int pcb_pad4[0200]; /* Reserved */ -}; - -/* - * The "executive process table" for extended TOPS-20. - */ -struct ept { - int ept_channel[8][4]; /* Channel logout areas */ - int ept_pad1[2]; /* Reserved */ - int ept_spii[016]; /* Standard Priority Interrupt Instructions */ - int ept_fcbfw[4]; /* Four channel block fill word */ - int ept_pad2[054]; /* Reserved */ - int ept_dte20[040]; /* Four DTE20 control blocks */ - int ept_pad3[0221]; /* Reserved */ - int ept_earov; /* Executive Arithmetic Overflow Trap Insn */ - int ept_esov; /* Executive Stack Overflow Trap Insn */ - int ept_etrap3; /* Executive Trap 3 Trap Insn */ - int ept_pad4[064]; /* Reserved */ - int ept_tb[2]; /* Time Base */ - int ept_pac[2]; /* Performance Analysis Count */ - int ept_icii; /* Interval Counter Interrupt Instruction */ - int ept_pad5[023]; /* Reserved */ - int ept_section[040]; /* Section pointers */ - int ept_pad6[0200]; /* Reserved */ -}; - -#define PG_IMM 0100000000000 /* Immediate access */ -#define PG_SH 0200000000000 /* Shared access */ -#define PG_IND 0300000000000 /* Indirect access */ -#define PG_PUBLIC 0040000000000 /* Public access */ -#define PG_WRITE 0020000000000 /* Write access */ -#define PG_CACHE 0004000000000 /* Cachable access */ - -struct md_coredump { - int dummy; -}; - -#ifdef _KERNEL -extern struct ept *ept; -#endif -#endif /* _PDP10_PCB_H_ */ - diff --git a/sys/arch/pdp10/include/pmap.h b/sys/arch/pdp10/include/pmap.h deleted file mode 100644 index 6c1dc924302..00000000000 --- a/sys/arch/pdp10/include/pmap.h +++ /dev/null @@ -1,49 +0,0 @@ -/* $NetBSD: pmap.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ -/* - * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). - * 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. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - */ - -#ifndef _PDP10_PMAP_H -#define _PDP10_PMAP_H - -/* - * pmap structure - */ - -typedef struct pmap { - int pad; -} *pmap_t; - - -#ifdef _KERNEL - -extern struct pmap kernel_pmap_store; - -#define pmap_kernel() (&kernel_pmap_store) - -#endif /* _KERNEL */ - -#endif /* _PDP10_PMAP_H */ diff --git a/sys/arch/pdp10/include/proc.h b/sys/arch/pdp10/include/proc.h deleted file mode 100644 index a99636a2062..00000000000 --- a/sys/arch/pdp10/include/proc.h +++ /dev/null @@ -1,45 +0,0 @@ -/* $NetBSD: proc.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ -/* - * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). - * 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. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - */ - -#ifndef _PDP10_PROC_H_ -#define _PDP10_PROC_H_ - -/* - * Machine-dependent lwp struct for pdp10. - */ -struct mdlwp { - int md_dummy; /* Must be at least one field */ -}; - -/* - * Machine-dependent part of the proc structure for pdp10. - */ -struct mdproc { - int md_flags; /* machine-dependent flags */ -}; -#endif /* _PDP10_PROC_H_ */ diff --git a/sys/arch/pdp10/include/ptrace.h b/sys/arch/pdp10/include/ptrace.h deleted file mode 100644 index 9a79fc5fba3..00000000000 --- a/sys/arch/pdp10/include/ptrace.h +++ /dev/null @@ -1,32 +0,0 @@ -/* $NetBSD: ptrace.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ -/* - * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). - * 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. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - */ - -#define PT_STEP (PT_FIRSTMACH + 0) -#define PT_GETREGS (PT_FIRSTMACH + 1) -#define PT_SETREGS (PT_FIRSTMACH + 2) - diff --git a/sys/arch/pdp10/include/reg.h b/sys/arch/pdp10/include/reg.h deleted file mode 100644 index c73f12bbb56..00000000000 --- a/sys/arch/pdp10/include/reg.h +++ /dev/null @@ -1,70 +0,0 @@ -/* $NetBSD: reg.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ -/* - * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). - * 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. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - */ - -#ifndef _PDP10_REG_H_ -#define _PDP10_REG_H_ - -#ifndef _LOCORE -/* - * Registers only saved for special purposes. - * Normally the register contents are accessed directly from the - * previous register block. - */ -struct reg { - int r0; - int r1; - int r2; - int r3; - int r4; - int r5; - int r6; - int r7; - int r10; - int r11; - int r12; - int r13; - int r14; - int r15; - int r16; - int r17; - int pc; -}; -#endif /* _LOCORE */ - -/* - * The KL10 has 8 register blocks, but the last blocks are partly used - * for internal states. NetBSD uses them as follows: - * 0 - Kernel - * 1 - User - * 3 - Interrupts - */ -#define KERNELREG 0 -#define USERREG 1 -#define INTREG 2 - -#endif /* _PDP10_REG_H_ */ diff --git a/sys/arch/pdp10/include/setjmp.h b/sys/arch/pdp10/include/setjmp.h deleted file mode 100644 index 657184d2adb..00000000000 --- a/sys/arch/pdp10/include/setjmp.h +++ /dev/null @@ -1,4 +0,0 @@ -/* $NetBSD: setjmp.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ - -#define _JBLEN (8 + 6 + 8) /* size, in ints, of a jmp_buf */ - /* 8 for sigcontext + 6 for reg 10-15 + 8 extra */ diff --git a/sys/arch/pdp10/include/signal.h b/sys/arch/pdp10/include/signal.h deleted file mode 100644 index 3c5c0a7e5f6..00000000000 --- a/sys/arch/pdp10/include/signal.h +++ /dev/null @@ -1,52 +0,0 @@ -/* $NetBSD: signal.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ -/* - * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). - * 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. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - */ - -#ifndef _PDP10_SIGNAL_H_ -#define _PDP10_SIGNAL_H_ - -typedef int sig_atomic_t; - -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ - !defined(_XOPEN_SOURCE) -/* - * Information pushed on stack when a signal is delivered. - * This is used by the kernel to restore state following - * execution of the signal handler. It is also made available - * to the handler to allow it to restore state properly if - * a non-standard exit is performed. - */ -struct sigcontext { - int sc_onstack; /* sigstack state to restore */ - int sc_pc; /* pc to restore */ - int sc_sp; /* sp to restore */ - int sc_fp; /* fp to restore */ - sigset_t sc_mask; /* signal mask to restore */ -}; - -#endif /* !_ANSI_SOURCE && !_POSIX_C_SOURCE && !_XOPEN_SOURCE */ -#endif /* !_PDP10_SIGNAL_H_ */ diff --git a/sys/arch/pdp10/include/stdarg.h b/sys/arch/pdp10/include/stdarg.h deleted file mode 100644 index 0e3db5a8328..00000000000 --- a/sys/arch/pdp10/include/stdarg.h +++ /dev/null @@ -1,85 +0,0 @@ -/* $NetBSD: stdarg.h,v 1.3 2005/12/11 12:18:34 christos Exp $ */ - -/*- - * Copyright (c) 1991 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. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. 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. - * - * @(#)stdarg.h 7.2 (Berkeley) 5/4/91 - */ - -#ifndef _PDP10_STDARG_H_ -#define _PDP10_STDARG_H_ - -#include <machine/ansi.h> -#include <sys/featuretest.h> - -typedef _BSD_VA_LIST_ va_list; - -#ifdef __lint__ -#define __builtin_next_arg(t) ((t) ? 0 : 0) -#endif - -#ifdef __GNUC__ -#if __GNUC_PREREQ__(2, 96) -#define va_start(ap, last) __builtin_stdarg_start((ap), (last)) -#define va_arg __builtin_va_arg -#define va_end __builtin_va_end -#define __va_copy(dest, src) __builtin_va_copy((dest), (src)) -#else -#define __va_size(type) \ - (((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long)) - -#define va_start(ap, last) \ - ((ap) = (va_list)__builtin_next_arg(last)) - -#define va_arg(ap, type) \ - (*(type *)(void *)((ap) += __va_size(type), (ap) - __va_size(type))) - -#define va_end(ap) - -#define __va_copy(dest, src) ((dest) = (src)) -#endif -#endif /* __GNUC__ */ - -#ifdef __PCC__ -#define va_start(ap, last) ap = (va_list)&last -#define va_arg(ap, type) (*(type *)((ap) -= (sizeof(type)+3)/4, (ap))) -#define va_end(ap) -#define __va_copy(dest, src) ((dest) = (src)) -#endif /* __PCC__ */ - -#if !defined(_ANSI_SOURCE) && \ - (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \ - defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L) -#define va_copy(dest, src) __va_copy(dest, src) -#endif - -#endif /* !_PDP10_STDARG_H_ */ diff --git a/sys/arch/pdp10/include/trap.h b/sys/arch/pdp10/include/trap.h deleted file mode 100644 index e92af2c6391..00000000000 --- a/sys/arch/pdp10/include/trap.h +++ /dev/null @@ -1,43 +0,0 @@ -/* $NetBSD: trap.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ -/* - * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). - * 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. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - */ - -#ifndef _PDP10_TRAP_H_ -#define _PDP10_TRAP_H_ - -#define T_DDB 1 /* DDB called via Debugger() */ - -/* - * The first 17 longwords can be mapped directly on struct reg. - */ -struct trapframe { - int regs[16]; /* all saved registers */ - int pc; /* pc at trap */ - int trap; /* type of trap */ - int code; /* trap-specific info */ -}; -#endif diff --git a/sys/arch/pdp10/include/types.h b/sys/arch/pdp10/include/types.h deleted file mode 100644 index c1bee45bfe2..00000000000 --- a/sys/arch/pdp10/include/types.h +++ /dev/null @@ -1,73 +0,0 @@ -/* $NetBSD: types.h,v 1.5 2006/09/06 04:51:34 gdamore Exp $ */ - -/*- - * Copyright (c) 1990 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. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. 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. - * - * @(#)types.h 7.5 (Berkeley) 3/9/91 - */ - -#ifndef _MACHTYPES_H_ -#define _MACHTYPES_H_ - -#include <sys/cdefs.h> -#include <machine/int_types.h> - -#if defined(_KERNEL) -typedef struct label_t { - int val[22]; -} label_t; -#endif - -/* NB: This should probably be if defined(_KERNEL) */ -#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) -typedef unsigned long paddr_t; -typedef unsigned long psize_t; -typedef unsigned long vaddr_t; -typedef unsigned long vsize_t; -#endif - -typedef int register_t; - -/* MI types defined here instead */ -typedef int pid_t; -#define pid_t int - -typedef volatile int __cpu_simple_lock_t; - -#define __SIMPLELOCK_LOCKED 1 -#define __SIMPLELOCK_UNLOCKED 0 - -/* #define __HAVE_GENERIC_SOFT_INTERRUPTS */ -#define __HAVE_TIMECOUNTER 1 -#define __HAVE_GENERIC_TODR 1 - -#endif /* _MACHTYPES_H_ */ diff --git a/sys/arch/pdp10/include/vmparam.h b/sys/arch/pdp10/include/vmparam.h deleted file mode 100644 index e59abb76c63..00000000000 --- a/sys/arch/pdp10/include/vmparam.h +++ /dev/null @@ -1,109 +0,0 @@ -/* $NetBSD: vmparam.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */ - -/*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. - * - * This code is derived from software contributed to Berkeley by - * William Jolitz. - * - * 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. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. 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. - * - * @(#)vmparam.h 5.9 (Berkeley) 5/12/91 - */ -#ifndef _VMPARAM_H_ -#define _VMPARAM_H_ - -/* - * Machine dependent constants for PDP10. - */ - -/* - * We use 512 word VM pages on the PDP10. - * Override the PAGE_* definitions to be compile-time constants. - * Should really use all this in words instead, fake it as bytes for now. - */ -#define PAGE_SHIFT PGSHIFT -#define PAGE_SIZE (1 << PAGE_SHIFT) -#define PAGE_MASK (PAGE_SIZE - 1) - -/* - * USRTEXT is the start of the user text/data space, while USRSTACK - * is the top (end) of the user stack. - */ -#define USRTEXT NBPG -#define USRSTACK (32*1024*1024) - -/* - * Virtual memory related constants, all in bytes - */ - -#ifndef MAXTSIZ -#define MAXTSIZ (1*1024*1024) /* max text size */ -#endif -#ifndef DFLDSIZ -#define DFLDSIZ (8*1024*1024) /* initial data size limit */ -#endif -#ifndef MAXDSIZ -#define MAXDSIZ (24*1024*1024) /* max data size */ -#endif -#ifndef DFLSSIZ -#define DFLSSIZ (512*1024) /* initial stack size limit */ -#endif -#ifndef MAXSSIZ -#define MAXSSIZ (1024*1024) /* max stack size */ -#endif - -/* - * Size of shared memory map - */ - -#ifndef SHMMAXPGS -#define SHMMAXPGS 1024 -#endif - -#define VM_PHYSSEG_MAX 1 -#define VM_PHYSSEG_NOADD -#define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH /* XXX */ - -#define VM_NFREELIST 2 -#define VM_FREELIST_DEFAULT 0 - -/* - * Mach derived constants - */ - -/* user/kernel map constants */ -#define VM_MIN_ADDRESS ((vaddr_t)0) -#define VM_MAXUSER_ADDRESS ((vaddr_t)USRSTACK) -#define VM_MAX_ADDRESS ((vaddr_t)USRSTACK) -#define VM_MIN_KERNEL_ADDRESS ((vaddr_t)0) -#define VM_MAX_KERNEL_ADDRESS ((vaddr_t)(USRSTACK)) - -#endif diff --git a/sys/arch/pdp10/include/wchar_limits.h b/sys/arch/pdp10/include/wchar_limits.h deleted file mode 100644 index df99b61d848..00000000000 --- a/sys/arch/pdp10/include/wchar_limits.h +++ /dev/null @@ -1,54 +0,0 @@ -/* $NetBSD: wchar_limits.h,v 1.4 2005/12/11 12:18:34 christos Exp $ */ - -/*- - * Copyright (c) 2004 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Klaus Klein. - * - * 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. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the NetBSD - * Foundation, Inc. and its contributors. - * 4. Neither the name of The NetBSD Foundation 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 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. - */ - -#ifndef _PDP10_WCHAR_LIMITS_H_ -#define _PDP10_WCHAR_LIMITS_H_ - -/* - * 7.18.3 Limits of other integer types - */ - -/* limits of wchar_t */ -#define WCHAR_MIN (-0x7ffffffff-1) /* wchar_t */ -#define WCHAR_MAX 0x7ffffffff /* wchar_t */ - -/* limits of wint_t */ -#define WINT_MIN (-0x7ffffffff-1) /* wint_t */ -#define WINT_MAX 0x7ffffffff /* wint_t */ - -#endif /* !_PDP10_WCHAR_LIMITS_H_ */ |
