summaryrefslogtreecommitdiffstats
path: root/sys/conf/files.powerpc
Commit message (Collapse)AuthorAgeFilesLines
* Connect MPC85XX to the PowerPC build.raj2008-03-031-2/+20
| | | | | | | | | | | | | | | | | The kernel config file is KERNCONF=MPC85XX, so the usual procedure applies: 1. make buildworld TARGET_ARCH=powerpc 2. make buildkernel TARGET_ARCH=powerpc TARGET_CPUTYPE=e500 KERNCONF=MPC85XX This default config uses kernel-level FPU emulation. For the soft-float world approach: 1. make buildworld TARGET_ARCH=powerpc TARGET_CPUTYPE=e500 2. disable FPU_EMU option in sys/powerpc/conf/MPC85XX 3. make buildkernel TARGET_ARCH=powerpc TARGET_CPUTYPE=e500 KERNCONF=MPC85XX Approved by: cognet (mentor) MFp4: e500
* Hook-up the FPU emulator. It's optional upon FPU_EMU.marcel2008-02-231-0/+10
|
* Enable ofwdump on powerpc (finally). Tested on G3 & G4 machines.grehan2008-01-311-0/+1
| | | | | Submitted by: Dan Stekloff <dsteklof at c i s c o dot com> Discussed with: marcel
* Redefine bus_space_tag_t on PowerPC from a 32-bit integral tomarcel2007-12-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | a pointer to struct bus_space. The structure contains function pointers that do the actual bus space access. The reason for this change is that previously all bus space accesses were little endian (i.e. had an explicit byte-swap for multi-byte accesses), because all busses on Macs are little endian. The upcoming support for Book E, and in particular the E500 core, requires support for big-endian busses because all embedded peripherals are in the native byte-order. With this change, there's no distinction between I/O port space and memory mapped I/O. PowerPC doesn't have I/O port space. Busses assign tags based on the byte-order only. For that purpose, two global structures exist (bs_be_tag and bs_le_tag), of which the address can be taken to get a valid tag. Obtained from: Juniper, Semihalf
* Make files under src/sys/powerpc/aim, as well as Open Firmware relatedmarcel2007-12-161-22/+22
| | | | | | | files dependent upon option/cpu AIM. This is in preparation of adding support for Book-E (e500) support. Obtained from: Juniper, Semihalf
* Sort.marcel2007-12-141-52/+42
|
* Update file list after repocopying select files frommarcel2007-12-141-14/+14
| | | | src/sys/powerpc/powerpc to src/sys/powerpc/aim.
* Break out stack(9) from ddb(4):rwatson2007-12-021-0/+1
| | | | | | | | | | | | | | | | | | | | - Introduce per-architecture stack_machdep.c to hold stack_save(9). - Introduce per-architecture machine/stack.h to capture any common definitions required between db_trace.c and stack_machdep.c. - Add new kernel option "options STACK"; we will build in stack(9) if it is defined, or also if "options DDB" is defined to provide compatibility with existing users of stack(9). Add new stack_save_td(9) function, which allows the capture of a stacktrace of another thread rather than the current thread, which the existing stack_save(9) was limited to. It requires that the thread be neither swapped out nor running, which is the responsibility of the consumer to enforce. Update stack(9) man page. Build tested: amd64, arm, i386, ia64, powerpc, sparc64, sun4v Runtime tested: amd64 (rwatson), arm (cognet), i386 (rwatson)
* Align.obrien2007-10-251-7/+7
|
* Commit the change from FAST_IPSEC to IPSEC. The FAST_IPSECgnn2007-07-031-2/+2
| | | | | | | | option is now deprecated, as well as the KAME IPsec code. What was FAST_IPSEC is now IPSEC. Approved by: re Sponsored by: Secure Computing
* sort.nyan2007-04-061-1/+1
|
* Be more conservative and compile libkern/memset.c only on architectureskan2007-04-061-0/+1
| | | | than need it. These are i386, amd64 and powerpc so far.
* Evolve the ctlreq interface added to geom_gpt into a genericmarcel2007-02-071-1/+0
| | | | | | | | | | | partitioning class that supports multiple schemes. Current schemes supported are APM (Apple Partition Map) and GPT. Change all GEOM_APPLE anf GEOM_GPT options into GEOM_PART_APM and GEOM_PART_GPT (resp). The ctlreq interface supports verbs to create and destroy partitioning schemes on a disk; to add, delete and modify partitions; and to commit or undo changes made.
* opt_ah.h ends up copied into a kernelcompile directory in somemjacob2006-12-181-1/+1
| | | | | | | | | | | aches as a read-only file. In a number of cases this has led to compiles failing- usually due to some strange NFS drift which thinks that the opt_ah.h in the compile directory is out of date wrt the source it is copied from. When the copy is executed again, it fails because the target is read-only. Oops. Modify the compile hooks avoid this. Discussed with a while back with: Sam Leffler
* Move MI parts of syscons into MI "files".ru2006-10-231-7/+0
|
* Remove file that snuck in accidentally in Marcel's gdb commit.grehan2006-08-251-1/+0
|
* Add skeletal support for GDB. In particular gdb_cpu_getreg() needsmarcel2006-08-241-0/+2
| | | | implementing to make GDB support usable.
* Add device to access and modify Open Firmware NVRAM settings insobomax2006-08-011-0/+2
| | | | | | | | | PowerPC-based Apple's machines and small utility to do it from userland modelled after the similar utility in Darwin/OSX. Only tested on 1.25GHz G4 Mac Mini. MFC after: 1 month
* Remove zs(4). It has been replaced by scc(4) & uart(4).marcel2006-07-261-2/+0
|
* Replace sio_iobus.c with uart_iobus.c.marcel2006-07-261-1/+1
|
* add glue for ath_halsam2006-06-081-0/+11
| | | | MFC after: 1 month
* Revert previous commit. It's not part of the ppc(4) changes.marcel2006-04-241-1/+0
|
* o Move ISA specific code from ppc.c to ppc_isa.c -- a bus front-marcel2006-04-241-0/+1
| | | | | | | | | | | | | | end for isa(4). o Add a seperate bus frontend for acpi(4) and allow ISA DMA for it when ISA is configured in the kernel. This allows acpi(4) attachments in non-ISA configurations, as is possible for ia64. o Add a seperate bus frontend for pci(4) and detect known single port parallel cards. o Merge PC98 specific changes under pc98/cbus into the MI driver. The changes are minor enough for conditional compilation and in this form invites better abstraction. o Have ppc(4) usabled on all platforms, now that ISA specifics are untangled enough.
* Add the MacIO attachment for scc(4).marcel2006-04-011-0/+1
|
* Allow uart(4) to be built on PowerPC.marcel2006-03-311-0/+1
|
* Retire NETSMBCRYPTO as a kernel option and make its functionalityyar2006-03-051-1/+1
| | | | | | | | | | | | | | | enabled by default in NETSMB and smbfs.ko. With the most of modern SMB providers requiring encryption by default, there is little sense left in keeping the crypto part of NETSMB optional at the build time. This will also return smbfs.ko to its former properties users are rather accustomed to. Discussed with: freebsd-stable, re (scottl) Not objected by: bp, tjr (silence) MFC after: 5 days
* Make config(8) understand ORed dependecies in "files*" andru2005-11-271-2/+1
| | | | improve tracking of known devices. Bump config(8) version.
* Move zs.c from files to files.powerpc as zs(4) by now is only supportedmarius2005-11-221-0/+1
| | | | | | | | | on powerpc (more or less...). That way people updating from FreeBSD 5 to FreeBSD 6 and beyond on sparc64 will get an error from config(8) rather than a mysterious compile error when they have a stale 'device zs' in their kernel config file. MFC after: 2 weeks
* - Add a new method ofw_bus_default_get_devinfo() that allows to retrievemarius2005-11-221-0/+1
| | | | | | | | | | | | | | | | a newly introduced struct ofw_bus_devinfo which can hold the OFW info of a device recallable via the ofw_bus KOBJ interface. Introduce a set of functions ofw_bus_gen_get_*() which use ofw_bus_default_get_devinfo() to provide generic subroutines for implementing the rest of the ofw_bus KOBJ interface in a bus driver. This is inspired by bus_get_resource_list() and bus_generic_rl_*_resource() and allows to reduce code duplication in bus drivers as they only have to provide an ofw_bus_default_get_devinfo() implementation in order to provide the ofw_bus KOBJ interface via ofw_bus_gen_get_*(). - While here add a comment to ofw_bus_if.m describing the intention of the ofw_bus KOBJ interface. Reviewed by: marcel
* Insert a layer of indirection to the pmap code, using a kobj forgrehan2005-11-081-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the interface. This allows run-time selection of MMU code, based on CPU-type detection, or tunable-overrides when testing new code. Pre-requisite for G5 support. conf/files.powerpc - remove pmap.c - add mmu_if.h, mmu_oea.c, pmap_dispatch.c powerpc/include/mmuvar.h - definitions for MMU implementations powerpc/include/pmap.h - remove pmap_pte_spill declaration - add pmap_mmu_install declaration - size the phys_avail array - pmap_bootstrapped is now global-scope powerpc/powerpc/machdep.c - call kobj_machdep_init early in the boot sequence to allow kobj usage prior to SI_SUB_LOCK - install the OEA pmap code. This will be moved to CPU-specific init code in the future. powerpc/powerpc/mmu_if.m - Kobj MMU interface definitions powerpc/powerpc/pmap_dispatch.c - central dispatch for pmap calls - contains the global mmu kobj and the routine to locate the the mmu implementation and init the kobj
* Refactor the NETSMBCRYPTO option so that it does the same on allmarcel2005-06-121-0/+1
| | | | | | | | platforms. ARM is excluded as it doesn't yet have any crypto sources. Approved by: re (dwhite) MFC after: 1 day
* MFP4:jkoshy2005-06-091-0/+1
| | | | | | | | | | | | | | | | - Implement sampling modes and logging support in hwpmc(4). - Separate MI and MD parts of hwpmc(4) and allow sharing of PMC implementations across different architectures. Add support for P4 (EMT64) style PMCs to the amd64 code. - New pmcstat(8) options: -E (exit time counts) -W (counts every context switch), -R (print log file). - pmc(3) API changes, improve our ability to keep ABI compatibility in the future. Add more 'alias' names for commonly used events. - bug fixes & documentation.
* Divorce critical sections from spinlocks. Critical sections as denoted byjhb2005-04-041-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | critical_enter() and critical_exit() are now solely a mechanism for deferring kernel preemptions. They no longer have any affect on interrupts. This means that standalone critical sections are now very cheap as they are simply unlocked integer increments and decrements for the common case. Spin mutexes now use a separate KPI implemented in MD code: spinlock_enter() and spinlock_exit(). This KPI is responsible for providing whatever MD guarantees are needed to ensure that a thread holding a spin lock won't be preempted by any other code that will try to lock the same lock. For now all archs continue to block interrupts in a "spinlock section" as they did formerly in all critical sections. Note that I've also taken this opportunity to push a few things into MD code rather than MI. For example, critical_fork_exit() no longer exists. Instead, MD code ensures that new threads have the correct state when they are created. Also, we no longer try to fixup the idlethreads for APs in MI code. Instead, each arch sets the initial curthread and adjusts the state of the idle thread it borrows in order to perform the initial context switch. This change is largely a big NOP, but the cleaner separation it provides will allow for more efficient alternative locking schemes in other parts of the kernel (bare critical sections rather than per-CPU spin mutexes for per-CPU data for example). Reviewed by: grehan, cognet, arch@, others Tested on: i386, alpha, sparc64, powerpc, arm, possibly more
* Add /dev/mem and /dev/kmem to powerpc.ssouhlal2004-08-161-0/+1
| | | | Approved by: grehan (mentor)
* - Introduce an ofw_bus kobj-interface for retrieving the OFW node and amarius2004-08-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | subset ("compatible", "device_type", "model" and "name") of the standard properties in drivers for devices on Open Firmware supported busses. The standard properties "reg", "interrupts" und "address" are not covered by this interface because they are only of interest in the respective bridge code. There's a remaining standard property "status" which is unclear how to support properly but which also isn't used in FreeBSD at present. This ofw_bus kobj-interface allows to replace the various (ebus_get_node(), ofw_pci_get_node(), etc.) and partially inconsistent (central_get_type() vs. sbus_get_device_type(), etc.) existing IVAR ones with a common one. This in turn allows to simplify and remove code-duplication in drivers for devices that can hang off of more than one OFW supported bus. - Convert the sparc64 Central, EBus, FHC, PCI and SBus bus drivers and the drivers for their children to use the ofw_bus kobj-interface. The IVAR- interfaces of the Central, EBus and FHC are entirely replaced by this. The PCI bus driver used its own kobj-interface and now also uses the ofw_bus one. The IVARs special to the SBus, e.g. for retrieving the burst size, remain. Beware: this causes an ABI-breakage for modules of drivers which used the IVAR-interfaces, i.e. esp(4), hme(4), isp(4) and uart(4), which need to be recompiled. The style-inconsistencies introduced in some of the bus drivers will be fixed by tmm@ in a generic clean-up of the respective drivers later (he requested to add the changes in the "new" style). - Convert the powerpc MacIO bus driver and the drivers for its children to use the ofw_bus kobj-interface. This invloves removing the IVARs related to the "reg" property which were unused and a leftover from the NetBSD origini of the code. There's no ABI-breakage caused by this because none of these driver are currently built as modules. There are other powerpc bus drivers which can be converted to the ofw_bus kobj-interface, e.g. the PCI bus driver, which should be done together with converting powerpc to use the OFW PCI code from sparc64. - Make the SBus and FHC front-end of zs(4) and the sparc64 eeprom(4) take advantage of the ofw_bus kobj-interface and simplify them a bit. Reviewed by: grehan, tmm Approved by: re (scottl) Discussed with: tmm Tested with: Sun AX1105, AXe, Ultra 2, Ultra 60; PPC cross-build on i386
* db_memrw.c has been subsumed into db_interface.c ala sparc64grehan2004-07-121-1/+0
|
* Fix build for non-WITNESS casegrehan2004-07-111-0/+1
| | | | spotted by: Suleiman Souhlal <refugee@segfaulted.com>
* Add an implementation of uiomove_fromphys() for PowerPC. Thisalc2004-03-231-0/+1
| | | | | | implementation uses the direct virtual-to-physical mapping. Discussed with: grehan
* Work-in-progress for the 'Kauai' ATA device in Mac notebooks. Thegrehan2004-02-121-0/+1
| | | | | device seems to be the macio ATA cell with a PCI front-end, and has no relation to PIIX-style ATA/PCI devices.
* Implement UMA_MD_SMALL_ALLOC, since the BAT registers allow directgrehan2004-01-291-0/+1
| | | | | | | addressing of memory. Makes a substantial improvement for apps that stress the limited amount of KVM on PPC (e.g. untarring the ports tree). uma_machdep.c stolen from amd64/ia64.
* Add syscons files, and also generate a syscons font since Applegrehan2004-01-211-0/+19
| | | | SVGA adapters don't have one available in their ROMs.
* - add openpic macio and psim/iobus attachmentsgrehan2004-01-151-4/+6
| | | | - alpha sort powermac files
* Add ffsl(), fls() flsl() to platforms that don't already have them.des2004-01-131-0/+3
|
* Hook grackle system controller/heathrow interrupt controller to PPC build.grehan2003-06-281-0/+2
|
* Standardize handling of locore.[sS] etc. files.ru2003-02-281-0/+1
| | | | Submitted by: jake, bde, ru
* Add apple partition map GEOM modulegrehan2003-02-241-0/+1
|
* Add a driver that attaches to the gpio node of macio and allows you to enterbenno2003-02-061-0/+1
| | | | | | | DDB when the interrupt button (aka the "programmer's switch") is pressed. This isn't unfortunately an NMI, but it's a handy way to get into DDB quickly if needed.
* Add cpu.c. This contains one exported function, cpu_setup(), which handlesbenno2003-02-051-0/+1
| | | | | | setup of and printing information about cpus. Obtained from: NetBSD (parts)
* Build glue for zs_macio.benno2003-02-011-1/+1
|
* NO_GEOM cleanup: remove subr_disklabel.c from powerpc and x86_64.phk2003-01-281-1/+0
|
OpenPOWER on IntegriCloud