2008-12-11 22:30:14 +03:00
|
|
|
# $NetBSD: files.powerpc,v 1.71 2008/12/11 19:30:14 pooka Exp $
|
2001-11-20 17:34:18 +03:00
|
|
|
|
2001-11-28 13:21:10 +03:00
|
|
|
defflag opt_altivec.h ALTIVEC K_ALTIVEC
|
|
|
|
defflag opt_openpic.h OPENPIC OPENPIC_SERIAL_MODE
|
2003-08-12 09:15:41 +04:00
|
|
|
defparam opt_ppcparam.h L2CR_CONFIG L3CR_CONFIG INTSTK CLOCKBASE
|
2008-02-06 01:31:48 +03:00
|
|
|
defflag opt_ppcarch.h PPC_OEA PPC_OEA601 PPC_OEA64 PPC_OEA64_BRIDGE PPC_MPC8XX PPC_IBM4XX PPC_IBM403
|
2002-08-18 21:17:59 +04:00
|
|
|
defflag opt_pmap.h PMAPDEBUG PMAPCHECK PMAPCOUNTERS
|
2004-03-17 17:14:02 +03:00
|
|
|
defparam opt_pmap.h PTEGCOUNT PMAP_MEMLIMIT
|
1998-02-23 04:54:26 +03:00
|
|
|
|
1996-09-30 20:34:14 +04:00
|
|
|
file arch/powerpc/powerpc/copystr.c
|
2008-11-19 21:35:57 +03:00
|
|
|
file arch/powerpc/powerpc/core_machdep.c coredump
|
1996-09-30 20:34:14 +04:00
|
|
|
file arch/powerpc/powerpc/fubyte.c
|
|
|
|
file arch/powerpc/powerpc/fuswintr.c
|
1998-05-28 11:56:42 +04:00
|
|
|
file arch/powerpc/powerpc/ipkdb_glue.c ipkdb
|
2001-06-20 06:40:14 +04:00
|
|
|
file arch/powerpc/powerpc/kgdb_machdep.c kgdb
|
2008-01-07 03:26:32 +03:00
|
|
|
file arch/powerpc/powerpc/kobj_machdep.c modular
|
2007-02-10 00:55:00 +03:00
|
|
|
file arch/powerpc/powerpc/lock_stubs.S
|
1996-09-30 20:34:14 +04:00
|
|
|
file arch/powerpc/powerpc/mem.c
|
2001-02-04 20:34:11 +03:00
|
|
|
file arch/powerpc/powerpc/openpic.c openpic
|
2008-02-06 01:31:48 +03:00
|
|
|
file arch/powerpc/powerpc/pmap_subr.c ppc_oea | ppc_oea64 | ppc_oea64_bridge | ppc_oea601
|
2001-02-24 07:30:42 +03:00
|
|
|
file arch/powerpc/powerpc/powerpc_machdep.c
|
1996-09-30 20:34:14 +04:00
|
|
|
file arch/powerpc/powerpc/process_machdep.c
|
2003-02-02 23:43:17 +03:00
|
|
|
file arch/powerpc/powerpc/setfault.S
|
1999-11-17 17:56:10 +03:00
|
|
|
file arch/powerpc/powerpc/sig_machdep.c
|
|
|
|
file arch/powerpc/powerpc/sigcode.S
|
1996-09-30 20:34:14 +04:00
|
|
|
file arch/powerpc/powerpc/subyte.c
|
|
|
|
file arch/powerpc/powerpc/suword.c
|
|
|
|
file arch/powerpc/powerpc/suswintr.c
|
|
|
|
file arch/powerpc/powerpc/sys_machdep.c
|
2002-07-05 22:45:15 +04:00
|
|
|
file arch/powerpc/powerpc/syscall.c
|
1998-05-28 11:56:42 +04:00
|
|
|
file arch/powerpc/powerpc/vm_machdep.c
|
2001-11-20 15:56:17 +03:00
|
|
|
file arch/powerpc/powerpc/setjmp.S ddb | kgdb
|
|
|
|
file arch/powerpc/powerpc/db_memrw.c ddb | kgdb
|
|
|
|
file arch/powerpc/powerpc/db_disasm.c ddb
|
2002-01-06 03:35:10 +03:00
|
|
|
file arch/powerpc/powerpc/db_interface.c ddb | kgdb
|
2001-11-20 15:56:17 +03:00
|
|
|
file arch/powerpc/powerpc/db_trace.c ddb
|
1998-09-13 13:15:51 +04:00
|
|
|
|
2001-06-13 10:01:44 +04:00
|
|
|
# IBM 4xx Family files (40x)
|
|
|
|
file arch/powerpc/ibm4xx/pmap.c ppc_ibm4xx
|
|
|
|
file arch/powerpc/ibm4xx/trap.c ppc_ibm4xx
|
2002-03-14 20:27:59 +03:00
|
|
|
file arch/powerpc/ibm4xx/clock.c ppc_ibm4xx
|
2001-06-13 10:01:44 +04:00
|
|
|
file arch/powerpc/ibm4xx/copyinstr.c ppc_ibm4xx
|
|
|
|
file arch/powerpc/ibm4xx/copyoutstr.c ppc_ibm4xx
|
|
|
|
|
2006-08-06 01:26:48 +04:00
|
|
|
# MPC (Motorola PowerPC) 6xx Family files (60x,74x,75x,74xx), IBM 970 family (bridge mode??)
|
2001-06-06 21:36:01 +04:00
|
|
|
#
|
2007-10-17 23:52:51 +04:00
|
|
|
defparam opt_oea.h EXTMAP_RANGES=20
|
2006-08-06 01:26:48 +04:00
|
|
|
file arch/powerpc/oea/altivec.c (ppc_oea |ppc_oea64 | ppc_oea64_bridge) & altivec
|
2008-02-06 01:31:48 +03:00
|
|
|
file arch/powerpc/oea/cpu_subr.c ppc_oea | ppc_oea64 | ppc_oea64_bridge | ppc_oea601
|
|
|
|
file arch/powerpc/oea/oea_machdep.c ppc_oea | ppc_oea64 | ppc_oea64_bridge | ppc_oea601
|
|
|
|
file arch/powerpc/oea/pmap.c ppc_oea | ppc_oea601
|
Rewrite a big chunk of the pmap and locore code for powerpc to better
deal with the 64bit bridge mode. pmap changes by Matt Thomas, rest by myself.
Change pmap.c to work similar to exec_elf.c to allow us to compile in
multiple pmaps to a single kernel. This allows the pmap for bridge64 to
co-exist with the 32bit pmap.
Yank __HAVE_PMAP_PHYSSEG from all the oea code.
Add a new global, "oeacpufeat", which is used early in locore to determine
certain cpu features. This allows us to conditionalize code early in the boot
for certain CPUs that have special needs.
Yank most of the ifdef PPC_OEA_BRIDGE64 code from almost every file it was
found in. Some of it seemed incorrect, and my 7044 booted just fine
without it. It would appear that the bridge cpus treat BAT instructions
as nops, so they seem to be safe.
In ofppc, check the oeacpufeat, and if we are on a 64bit proc, clear
MSR[SF], and ASR[V].
With all of these changes, a kernel with both PPC_OEA and PPC_OEA_BRIDGE64
will boot on the POWERIII-2 cpu. However, it will not yet boot on a 32bit
cpu, because of CACHELINESIZE. Work remains to be done there to fix that.
2008-02-05 21:10:46 +03:00
|
|
|
file arch/powerpc/oea/pmap64.c ppc_oea64
|
|
|
|
file arch/powerpc/oea/pmap64_bridge.c ppc_oea64_bridge
|
2008-12-11 22:30:14 +03:00
|
|
|
file arch/powerpc/oea/pmap_kernel.c ppc_oea | ppc_oea64 | ppc_oea64_bridge | ppc_oea601
|
2008-02-06 01:31:48 +03:00
|
|
|
file arch/powerpc/powerpc/fpu.c ppc_oea | ppc_oea64 | ppc_oea64_bridge | ppc_oea601
|
|
|
|
file arch/powerpc/powerpc/trap.c ppc_oea | ppc_oea64 | ppc_oea64_bridge | ppc_oea601
|
2001-06-06 21:36:01 +04:00
|
|
|
|
1998-09-13 13:15:51 +04:00
|
|
|
# Binary compatibility with previous NetBSD releases (COMPAT_XX)
|
2001-11-20 15:56:17 +03:00
|
|
|
file arch/powerpc/powerpc/compat_13_machdep.c compat_13
|
2003-09-25 22:42:18 +04:00
|
|
|
file arch/powerpc/powerpc/compat_16_machdep.c compat_16
|
2002-10-30 09:26:42 +03:00
|
|
|
|
2002-10-30 09:41:45 +03:00
|
|
|
# MACH binary compatibility (COMPAT_MACH)
|
|
|
|
include "compat/mach/files.mach"
|
2002-11-04 02:17:18 +03:00
|
|
|
include "compat/mach/arch/powerpc/files.mach_powerpc"
|
2002-10-30 09:41:45 +03:00
|
|
|
file arch/powerpc/powerpc/mach_machdep.c compat_mach
|
|
|
|
file arch/powerpc/powerpc/mach_sigcode.S compat_mach
|
|
|
|
file arch/powerpc/powerpc/mach_syscall.c compat_mach
|
|
|
|
file arch/powerpc/powerpc/macho_machdep.c exec_macho
|
|
|
|
|
2002-11-13 02:40:19 +03:00
|
|
|
# Darwin binary compatibility (COMPAT_DARWIN)
|
|
|
|
include "compat/darwin/files.darwin"
|
2002-11-17 03:59:13 +03:00
|
|
|
include "compat/freebsd/files.freebsd"
|
2002-11-26 01:25:12 +03:00
|
|
|
file arch/powerpc/powerpc/darwin_machdep.c compat_darwin
|
2004-07-04 02:17:18 +04:00
|
|
|
file arch/powerpc/powerpc/darwin_commpage_machdep.S compat_darwin
|
2002-11-13 02:40:19 +03:00
|
|
|
|
2003-08-04 01:38:08 +04:00
|
|
|
include "compat/netbsd32/files.netbsd32"
|
|
|
|
file arch/powerpc/powerpc/netbsd32_sigcode.S compat_netbsd32
|
|
|
|
|
2002-10-30 09:26:42 +03:00
|
|
|
# OSS audio driver compatibility
|
|
|
|
include "compat/ossaudio/files.ossaudio"
|
|
|
|
|
|
|
|
# Linux binary compatibility (COMPAT_LINUX)
|
|
|
|
include "compat/linux/files.linux"
|
|
|
|
include "compat/linux/arch/powerpc/files.linux_powerpc"
|
2003-02-03 20:09:53 +03:00
|
|
|
file arch/powerpc/powerpc/linux_sigcode.S compat_linux
|
|
|
|
file arch/powerpc/powerpc/linux_trap.c compat_linux
|
|
|
|
file arch/powerpc/powerpc/linux_syscall.c compat_linux
|