summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
Commit message (Collapse)AuthorAgeFilesLines
* Add standards visibility conditionals. Change any uses of sigset_t tomike2002-10-131-5/+14
| | | | struct __sigset to avoid depending on objects from <sys/signal.h>.
* Add conditionals to allow va_list to be defined in other headers.mike2002-10-061-0/+4
|
* o Add conditionals to allow va_list to be defined in other headers.mike2002-10-061-3/+11
| | | | | o Standardize on _MACHINE_STDARG_H_ to allow multiple header includes. o Restrict the definition of va_copy() to C99 environments.
* Roll back to previous version, no need for NO_GEOM when GEOM isgrehan2002-10-061-2/+0
| | | | standard.
* NB: This commit does *NOT* make GEOM the default in FreeBSDphk2002-10-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NB: But it will enable it in all kernels not having options "NO_GEOM" Put the GEOM related options into the intended order. Add "options NO_GEOM" to all kernel configs apart from NOTES. In some order of controlled fashion, the NO_GEOM options will be removed, architecture by architecture in the coming days. There are currently three known issues which may force people to need the NO_GEOM option: boot0cfg/fdisk: Tries to update the MBR while it is being used to control slices. GEOM does not allow this as a direct operation. SCSI floppy drives: Appearantly the scsi-da driver return "EBUSY" if no media is inserted. This is wrong, it should return ENXIO. PC98: It is unclear if GEOM correctly recognizes all variants of PC98 disklabels. (Help Wanted! I have neither docs nor HW) These issues are all being worked. Sponsored by: DARPA & NAI Labs.
* Fix namespace issues by using visibility conditionals frommike2002-10-051-1/+3
| | | | <sys/cdefs.h>.
* Define _MACHINE.jmallett2002-10-051-1/+1
|
* style(9) <machine/setjmp.h> headers so they look mostly the same.mike2002-10-041-7/+9
|
* Clean up ddb warnings/errors and enable in GENERICgrehan2002-10-048-57/+59
| | | | | Approved by: benno Motivated by: gallatin
* - fix zero-sized stack alloc from previous commit. a default is nowgrehan2002-10-043-30/+294
| | | | | | | selected ala sparc64 - KSEIII routines implemented (taken from i386/sparc64) Approved by: Benno
* Some kernel threads try to do significant work, and the default KSTACK_PAGESscottl2002-10-023-12/+78
| | | | | | | | | | | | | doesn't give them enough stack to do much before blowing away the pcb. This adds MI and MD code to allow the allocation of an alternate kstack who's size can be speficied when calling kthread_create. Passing the value 0 prevents the alternate kstack from being created. Note that the ia64 MD code is missing for now, and PowerPC was only partially written due to the pmap.c being incomplete there. Though this patch does not modify anything to make use of the alternate kstack, acpi and usb are good candidates. Reviewed by: jake, peter, jhb
* PIC_GOTOFF is OBE.peter2002-09-231-3/+0
|
* Be careful not to define GCC-specific optimizations in the non-GCCmike2002-09-231-2/+11
| | | | case.
* It's Apple GMAC, not HMAC.benno2002-09-221-1/+1
| | | | Approved by: jake (for sparc64)
* Implement db_print_backtrace() if DDB is compiled into the kernel. Thisjhb2002-09-191-0/+4
| | | | | | | | | | | | | | | | | | | | MD function is just a wrapper around db_stack_trace_cmd() that prints out a backtrace of curthread. Currently, this function is only implemented on i386 and alpha (and the alpha version isn't quite tested yet, will do that in a bit). Other changes: - For i386, fix a bug in the raw frame address case. The eip we extract from the passed in frame address does not match the frame we received. Thus, instead of printing a bogus frame with the wrong eip, go ahead and advance frame down to the same frame as the eip we are using. - For alpha, attempt to add a way of doing a raw trace for alpha. Instead of passing a frame address in 'addr', pass in a pointer to a structure containing PC and KSP and use those to start the backtrace. The alpha db_print_backtrace() uses asm to read in the current PC and KSP values into such a request. Tested on: i386 Requested by: many
* Updated to somewhat match sparc64/conf/GENERICgrehan2002-09-191-18/+94
| | | | Approved by: benno
* Support files and a h/w tree description for the PSIM ppc simulatorgrehan2002-09-196-0/+1018
| | | | Approved by: benno
* Driver for the macio south bridge, and ATA cell contained within.grehan2002-09-193-0/+817
| | | | Approved by: benno
* softc and register defs for the UniNorth chipgrehan2002-09-191-1/+19
| | | | Approved by: benno
* - probe the UniNorth chip in addition to the PCI bridgesgrehan2002-09-191-3/+114
| | | | | | | - enable GEM ethernet cell if present - allow sparse address mapping for devices Approved by: benno
* Removed osigframe. No need for COMPAT_43 signal bin-compat in PPC.grehan2002-09-191-6/+0
| | | | Approved by: benno
* psim device supportgrehan2002-09-191-0/+1
| | | | Approved by: benno
* <machine/types.> -> <sys/types.h>grehan2002-09-191-1/+1
| | | | Approved by: benno
* Fix clearing of recoverable exception MSR bit when disablinggrehan2002-09-191-1/+1
| | | | | | interrupts Approved by: benno
* Additional machdep sysctl constants needed for userland utilsgrehan2002-09-191-2/+6
| | | | Approved by: benno
* Added sparse address support, required by the macio ATA devicegrehan2002-09-191-4/+9
| | | | Approved by: benno
* Fixed branch labelsgrehan2002-09-191-5/+5
| | | | Approved by: benno
* - bring vm_mapbuf/unmapbuf in line with other archsgrehan2002-09-192-84/+50
| | | | | | - update for recent KSE changes Approved by: benno
* - make sure recoverable interrupts are re-enabled in the trap handlergrehan2002-09-192-14/+6
| | | | | | - turn on ast() loop to enable signal delivery Approved by: benno
* - worked around 32-bit big-endian syscall return value problemgrehan2002-09-192-18/+40
| | | | | | | - syscall register spills weren't copied in correctly - removed VM_PROT_READ from the fault type on write protect faults Approved by: benno
* Add sync before isync for G4 cpusgrehan2002-09-191-1/+1
| | | | | Obtained from: NetBSD Approved by: benno
* - use symbol for user-context offsetgrehan2002-09-191-2/+7
| | | | | | - fix szsigcode size declaration Approved by: benno
* - use BAT registers to map device space and physical memorygrehan2002-09-193-84/+402
| | | | | | | | | | - remove test in pmap_activate that prevented vmspace sharing (v/rfork) - always sync icache in pmap_enter until problems are sorted - fix incorrect use of regions in pmap_kenter - bring in pmap_release from NetBSD - fix overwrite of bootstrap flag in pmap_pvo_enter Approved by: benno
* - psim device supportgrehan2002-09-191-17/+38
| | | | | | - comment out re-enabling of interrupts until problems are sorted Approved by: benno
* Clear on-demand BAT entries to properly restore OpenFirmware'sgrehan2002-09-192-0/+12
| | | | | | address space Approved by: benno
* psim device supportgrehan2002-09-192-0/+10
| | | | Approved by: benno
* - implemented sendsig/sigreturngrehan2002-09-192-676/+338
| | | | | | | | | - sysctl for cacheline size, required by libc/rtld - init'd more exception vectors - fixed problem with register overwrite in exec_setregs - removed redundant NetBSD code Approved by: benno
* - moved intrcnt/intrnames to locore.s to fix sysctl -a panicgrehan2002-09-195-12/+36
| | | | Approved by: benno
* - rationalised includesgrehan2002-09-191-11/+13
| | | | | | - added sigframe offset Approved by: benno
* - removed unnecessary includesgrehan2002-09-191-28/+7
| | | | | | | - converted inline asm to C for int enable - shifted clearing of 'cold' to end of routine Approved by: benno
* Implement C99's va_copy() macro.mike2002-09-181-0/+3
|
* Initiate deorbit burn for the i386-only a.out related support. Moves arepeter2002-09-172-9/+0
| | | | | | | | | | | | | | | under way to move the remnants of the a.out toolchain to ports. As the comment in src/Makefile said, this stuff is deprecated and one should not expect this to remain beyond 4.0-REL. It has already lasted WAY beyond that. Notable exceptions: gcc - I have not touched the a.out generation stuff there. ldd/ldconfig - still have some code to interface with a.out rtld. old as/ld/etc - I have not removed these yet, pending their move to ports. some includes - necessary for ldd/ldconfig for now. Tested on: i386 (extensively), alpha
* Allocate KSEs and KSEGRPs separatly and remove them from the proc structure.julian2002-09-152-4/+4
| | | | | | | | | next step is to allow > 1 to be allocated per process. This would give multi-processor threads. (when the rest of the infrastructure is in place) While doing this I noticed libkvm and sys/kern/kern_proc.c:fill_kinfo_proc are diverging more than they should.. corrective action needed soon.
* Use "options " rather than "options<tab>".kuriyama2002-09-091-9/+9
|
* Zap the implementations of the i386-aout specific cpu_coredump function.peter2002-09-072-30/+0
| | | | Most of the non-i386 platforms had rather broken implementations anyway.
* Now that _BSD_CLK_TCK_ and _BSD_CLOCKS_PER_SEC_ are the same on allmike2002-09-031-53/+0
| | | | | architectures, move the definition directly into <time.h> and finish the removal of <machine/ansi.h>.
* Added fields for VM_MIN_ADDRESS, PS_STRINGS and stack protections tojake2002-09-011-6/+20
| | | | | | sysentvec. Initialized all fields of all sysentvecs, which will allow them to be used instead of constants in more places. Provided stack fixup routines for emulations that previously used the default.
* Take a shot at fixing up a whole stack of style and other embarresingpeter2002-08-312-10/+6
| | | | | unforced errors that Bruce identified. I have not yet addressed all of his concerns.
* Change hw.physmem and hw.usermem to unsigned long like they used to bepeter2002-08-303-11/+19
| | | | | | | | | | | | | in the original hardwired sysctl implementation. The buf size calculator still overflows an integer on machines with large KVA (eg: ia64) where the number of pages does not fit into an int. Use 'long' there. Change Maxmem and physmem and related variables to 'long', mostly for completeness. Machines are not likely to overflow 'int' pages in the near term, but then again, 640K ought to be enough for anybody. This comes for free on 32 bit machines, so why not?
* Renamed poorly named setregs to exec_setregs. Moved its prototype tojake2002-08-293-3/+4
| | | | imgact.h with the other exec support functions.
OpenPOWER on IntegriCloud