summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
Commit message (Collapse)AuthorAgeFilesLines
...
* Quick hack-o-rama to allow the Xorg Radeon driver to start up. Itgrehan2005-05-211-0/+13
| | | | | tries to mmap memory outside of the available BARs, so allow the range checks to be relaxed with a sysctl.
* Remove incorrect configuration setting that limited the Kauai ATA controllergrehan2005-05-141-1/+1
| | | | to be master-only. The slave ATAPI drive on the Mac-Mini is now recognised.
* - move to SCHED_4BSD per jeffr's comments on SCHED_ULE's stategrehan2005-05-031-5/+4
| | | | | | - enable MSDOSFS - ehci is stable on the powerbook - modules have been working for a long time.
* Catch up with latest ATA newbus commits.grehan2005-05-012-4/+4
|
* Change cpu_set_kse_upcall to more generic style, so we can reuse itdavidxu2005-04-232-10/+26
| | | | | | | in other codes. Add cpu_set_user_tls, use it to tweak user register and setup user TLS. I ever wanted to merge it into cpu_set_kse_upcall, but since cpu_set_kse_upcall is also used by M:N threads which may not need this feature, so I wrote a separated cpu_set_user_tls.
* Don't enter the debugger if KDB_UNATTENDED is set or ifps2005-04-202-4/+0
| | | | | | debug.debugger_on_panic=0. MFC after: 2 weeks
* Add empty header (except of the multiple-inclusion protection) tomarcel2005-04-201-0/+10
| | | | get hwpmc(4) to compile on this platform.
* Get order right when initializing task file bus resources. ATA drives aregrehan2005-04-202-4/+4
| | | | | now recognised when booting from the drive, as opposed to net-booting which the previous botched commit was tested with.
* Break out the definition of bus_space_{tag,handle}_t and a few other typesimp2005-04-182-12/+47
| | | | | | | | | | into _bus.h to help with name space polution from including all of bus.h. In a few days, I'll commit changes to the MI code to take advantage of thse sepration (after I've made sure that these changes don't break anything in the main tree, I've tested in my trees, but you never know...). Suggested by: bde (in 2002 or 2003 I think) Reviewed in principle by: jhb
* Catch up with ATA mkIII definitions for registers that have differentgrehan2005-04-182-2/+4
| | | | functions for read vs. write.
* Use PCPU_LAZY_INC() for cnt.v_{intr,trap,syscalls} rather than atomicjhb2005-04-122-4/+4
| | | | operations in some places and simple non-per CPU math in others.
* Unbreak the powerpc build by fixing some ATA constants that were renamed.ssouhlal2005-04-121-3/+3
| | | | Approved by: grehan (mentor)
* Change an instance of md_savecrit to md_saved_msr that I missed.jhb2005-04-082-2/+2
|
* Divorce critical sections from spinlocks. Critical sections as denoted byjhb2005-04-047-135/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Introduce channel-level setmode newbus method.grehan2005-04-013-0/+38
| | | | Thanks to sos for the code re-org that allowed this.
* Catch up with ATA-mkIIIgrehan2005-03-313-53/+4
|
* Add USB Communication Device Class Ethernet driver. Originally written forsobomax2005-03-221-0/+1
| | | | | | | | | | FreeBSD based on aue(4) it was picked by OpenBSD, then from OpenBSD ported to NetBSD and finally NetBSD version merged with original one goes into FreeBSD. Obtained from: http://www.gank.org/freebsd/cdce/ NetBSD OpenBSD
* Optimize putc routine to write 2 ints instead of 8 chars to uncachedgrehan2005-03-191-14/+41
| | | | | | | framebuffer memory. Speeds up system time of large ascii file cat by 4x. Inspired by: Linux scrolling so damned fast.
* Add a comment to note that pseudo-device bpf is required for DHCP.murray2005-03-181-0/+1
| | | | | | | | | This is mentioned in the Handbook but it is not as obvious to new users why bpf is needed compared to the other largely self-explanatory items in GENERIC. PR: conf/40855 MFC after: 1 week
* Split configure into 3 steps ala sparc64grehan2005-03-181-1/+20
| | | | Obtained from: iedowse, sparc64
* Prepend underscore to bus_dmamap_{unload|sync} in line withgrehan2005-03-151-2/+2
| | | | recent busdma changes.
* Include <sys/signalvar.h> for trapsignal prototype.grehan2005-03-152-0/+2
|
* Long overdue sync-up with ATA codegrehan2005-03-151-1/+3
|
* Refactor the bus_dma header files so that the interface is described inscottl2005-03-142-182/+34
| | | | | | | | | | sys/bus_dma.h instead of being copied in every single arch. This slightly reorders a flag that was specific to AXP and thus changes the ABI there. The interface still relies on bus_space definitions found in <machine/bus.h> so it cannot be included on its own yet, but that will be fixed at a later date. Add an MD <machine/bus_dma.h> for ever arch for consistency and to allow for future MD augmentation of the API. sparc64 makes heavy use of this right now due to its different bus_dma implemenation.
* Replaced previous hw.physmem extraction with des's mods togrehan2005-03-073-150/+6
| | | | | | getenv_ulong() - much simpler. Pointed out by: des
* physmem is a much better indicator for 'real' memory on PPC than Maxmemgrehan2005-03-072-6/+6
| | | | | | since there are often significant holes in the memory map due to the kernel, loader and OFW data structures not being included: Maxmem is the highest available, so can be misleading.
* Allow user to undersize memory with hw.physmem loader variable.grehan2005-03-073-3/+186
| | | | Obtained from: i386/machdep.c:getmemsize()
* netchild's mega-patch to isolate compiler dependencies into a centraljoerg2005-03-029-27/+46
| | | | | | | | | | | | | | | | place. This moves the dependency on GCC's and other compiler's features into the central sys/cdefs.h file, while the individual source files can then refer to #ifdef __COMPILER_FEATURE_FOO where they by now used to refer to #if __GNUC__ > 3.1415 && __BARC__ <= 42. By now, GCC and ICC (the Intel compiler) have been actively tested on IA32 platforms by netchild. Extension to other compilers is supposed to be possible, of course. Submitted by: netchild Reviewed by: various developers on arch@, some time ago
* Catch up with "physical memory" sysctl change.grehan2005-03-012-0/+4
| | | | (MFi386: rev 1.608)
* Catch the case where the idle loop is entered with interrupts disabled,grehan2005-02-282-2/+18
| | | | causing a hard hang.
* - switch pcpu to a struct declaration ala amd64. It may be more efficient togrehan2005-02-282-6/+4
| | | | | | cache-align this struct, but that's a topic for a far-in-the-future commit. - eliminate commented-out reference to a non-existent pcpu field.
* Correctly set kernelname for kern.bootfile sysctlgrehan2005-02-282-0/+20
| | | | | Noticed by: gad Code stolen from: sparc64
* Add PVO_FAKE flag to pvo entries for PG_FICTITIOUS mappings, togrehan2005-02-253-42/+75
| | | | | | | avoid trying to reverse-map a device physical address to the vm_page array and walking into non-existent vm weeds. found by: Xorg server exiting
* Mods for Xorg server:grehan2005-02-252-6/+113
| | | | | | | | - store assigned PCI addresses at cninit time for later mmap range check - implement set_border to scrub X remnants when switching back to VTYs - implement mmap, only allowing addresses within the range of the console adapter.
* Use a common multi-inclusion protection, and add such aru2005-02-191-4/+4
| | | | protection to alpha/include/exec.h.
* Finish the job of sorting all includes and fix the build by includingnjl2005-02-062-46/+54
| | | | | | malloc.h before proc.h on sparc64. Noticed by das@ Compiled on: alpha, amd64, i386, pc98, sparc64
* Sort includes a little so that bus.h comes before cpu.h (for device_t).njl2005-02-042-8/+8
|
* Add an implementation of cpu_est_clockrate(9). This function estimates thenjl2005-02-042-0/+18
| | | | current clock frequency for the given CPU id in units of Hz.
* - recognize 7447A/7448 CPUs (used in miniMacs)grehan2005-02-041-0/+11
| | | | | | | - enable 745x branch caches. Already enabled by OpenFirmware on Macs, but reduces NetBSD diffs and usable by embedded folk. Obtained from: NetBSD
* - add wall_cmos_clock and adjkerntz variables, required by msdosfsgrehan2005-02-042-0/+42
| | | | | - support adjkerntz sysctl to silence NTP, though it's a null implementation at the moment.
* Convert bus_space_barrier() into a null inline function rather than angrehan2005-02-041-2/+9
| | | | empty macro to avoid many compile warnings in the USB code.
* - add definitions for MPC7447A/7448 (i.e. miniMac)grehan2005-02-041-1/+3
| | | | | | - expand MPC745X_P macro to include these Obtained from: NetBSD
* HID0 updates:grehan2005-02-041-3/+6
| | | | | | - updated relevant models for High BAT enable bit - fixed bug in BHTCLR/XAEN constants - added LRSTK and FOLD bits
* - change all u_int_XX to uint_XXgrehan2005-02-011-39/+39
| | | | - cast param for atomic_subtract_long, since Netgraph uses it.
* Fix (accidental?) lock order reversal in pmap_remove. Found whengrehan2005-01-213-3/+3
| | | | a process that has mmap'd device mem exits.
* Add bus_dmamap_load_mbuf_sg() to powerpc.scottl2005-01-152-0/+32
|
* - Remove some OBE comments regarding cpu_exit(). cpu_exit() is no longerjhb2005-01-142-14/+0
| | | | | | | | the last action of kern_exit(). Instead, it is a MD callout to cleanup per-process state during exit. - Add notes of concern to Alpha and ia64 about the possible need to drop fp state in cpu_thread_exit() rather than in cpu_exit() since it is per-thread state rather than per-process.
* - allow a device hint to disable probing a slot on a Uninorth PCI bus.grehan2005-01-111-5/+12
| | | | | | | | | | | | | | | | | | e.g. at the loader: set hint.pcib.1.skipslot=26 This allows undocumented and problematic hardware on some systems to be ignored, for instance, the USB keyboard/mouse that shows up on a 12" albook that doesn't exist nor do anything other than eat up the syscons keyboard. Another one is the unused USB cell in the old 366MHz iBook that locks up the machine when probed. In a way this is temporary, since there are better fixes for the above problems, but will be useful in the meantime by allowing a keyboard to be used to help debug said fixes :) - while here remove some trailing white space
* /* -> /*- for license, minor formatting changesimp2005-01-0797-109/+109
|
* Return correct value in the lock routine.grehan2005-01-071-2/+2
|
OpenPOWER on IntegriCloud