summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc
AgeCommit message (Collapse)Author
1999-09-03Change the pmap_enter api to pass down an argument that indicatesArtur Grabowski
the access type that caused this mapping. This is to simplify pmaps with mod/ref emulation (none for the moment) and in some cases speed up pmap_is_{referenced,modified}. At the same time, clean up some mappings that had too high protection. XXX - the access type is incorrect in old vm, it's only used by uvm and MD code. The actual use of this in pmap_enter implementations is not in this commit.
1999-08-17New cpu_fork API to take a stack in which you point the child's stackpointerNiklas Hallqvist
to, at the bottom or the top, depending on your architecture's stack growth direction. This is in preparation for Linux' clone(2) emulation. port maintainers, please check that I did the work right.
1999-07-30acd goes awayTheo de Raadt
1999-07-07define vaddr_t, paddr_t, vsize_t and psize_tArtur Grabowski
1999-07-05header file changes for recent powerpc changes.Dale S. Rahn
1999-07-05Several changes here:Dale S. Rahn
(Some of these changes are work in progress and may change more later) locore.S: rearranged to remove most of the direct openfirmware references in the attempt to move all of the openfirmware pieces into ofw_ files. This could allow other firmware type to be supported easier. Also this keeps the openfirmware code grouped in the same files. OF_buf is now statically allocated in the data/bss section instead of allocated during initialization. machdep.c: change the order of vm initialization, Still considering removing the BATs from use. instead of calls directly to ppc_exit and ppc_boot these are now called via a firmware function pointer structure. Add iMac recognition to systems ofw_machdep.c: function pointer structure to allow different firmware to supply specific system functionality, normally startup and reset, including a hook to notify when bsd is about to go virtual, in case firmware calls need to act different after that time. Allow BSD to handle the virtual memory operations for openfirmware. this idea was copied from NetBSD macppc, It is not fully implemented, among other problems, openfirmware does not have a mechanism to add new mappings. ofwreal.S: Major rewrite of the firmware call code, It still copies a portion of the stack, but now does not restore exeception vectors. Modified to be similar in idea to NetBSD macppc with BSD handling the openfirmware VM faults/TLB misses. This still needs to be reviewed, Should be possible to not require any stack copy. opendev.c: OF_bus is not a pointer to the buffer, but is the buffer itself now. openfirm.c: OF_bus is not a pointer to the buffer, but is the buffer itself now. Dont panic if OF_boot fails, OF_boot can be called by panic. instead print and the hang in a spin loop. pmap.c: call the firmware function to get memory regions. Scale the PowerPC hash table size by size of real memory. Properly align the hash table based on the start, not just the size.
1999-07-05move some code under ifdef DDB, it uses a db_ function during the call.Dale S. Rahn
It is a debugging operation anyway.
1999-07-05Fix backtraces from ddb for powerpc, If addr is not specified, it willDale S. Rahn
start using the ddb_regs. If the address is specififed, start from the address.
1999-07-05Use a breakpoint to cause an exception to cause the registers to beDale S. Rahn
saved for debugging purposes.
1999-07-05correctly extract fields for disassembly.Dale S. Rahn
1999-07-05Recognize the 750 (G3) processor.Dale S. Rahn
1999-06-15Use proper defines for vendor id and device id (pci) instead of constants.Dale S. Rahn
1999-06-13Transitional va-ppc.h that works with both egcs and gcc-2.8. It mayDale S. Rahn
be possible to have more optimial egcs support.
1999-06-13Support the Powerstack 4000 pci-isa bridge, it is the windbond part,Dale S. Rahn
pci vendid 0x10ad, device id 0x0565. (these need to be added to the pcidevs properly, (Symphony Labs, ISA Bridge).
1999-05-24Only do basic work in the ethernet interrupt context, and queue packets toJason Wright
be bridged. Do the real work in a scheduled netisr.
1999-05-22Add new vm_swap code for dynamic swap. From netbsd, munged some by me, andTobias Weingartner
others. syscall commit pending.
1999-05-10Use symbolic define for BYTE_ORDER.Marc Espie
(don't forget that cpp is `lazy': #define A B #define B value #if A == value works, since A isn't extended before it's needed, by which time B is known)
1999-04-22Bug fixes from NetBSD, port-powerpc/7240 and port-powerpc/7243Dale S. Rahn
The first fixes a major problem seen _too_ many times to record. If a task that is busy doing disk io is interrupted with a ^C, its would frequently put the system into a mode where it would very shortly crash, It was known that it was a signal delivery that was occurring incorrectly, but had not been diagnosed where. It is no longer possible to crash the machine on whim. (This probably should be recorded as a stability patch for 25). The second was not a bug that had ever been seen to be identified, but looking at the code it was obvious that the onfault variable was not being reset before the function exit. The code differs between NetBSD and OpenBSD somewhat, however only two instances of the code was reported, and three instances exist in the OpenBSD code. (all were fixed).
1999-03-23Add DOSMBR_SIGNATURE_OFF define, needed for last disklabel changeTodd C. Miller
1999-03-22Remove diagnotic that could (was frequently) causing crashes.Dale S. Rahn
this whole pmap could use replacing.
1999-03-22Use standard macros for asm functions instead of the incompleteDale S. Rahn
asm function headers previously used.
1999-03-13If a program crashes due to a "program" exeception, dump additionalDale S. Rahn
information as to why, illegal instruction, floating point, ...
1999-03-12Additional pic related change, not currently used by powerpc port.Dale S. Rahn
1999-01-23Fixes to update to that the powerpc port builds again.Dale S. Rahn
These change were necessary due to the following changes: The change/import of the "generic" isa/pcppi driver. The powerpc port currently has it's own copy of that driver. The two versions need to be merged. The parameter changes to cpu_set_kpc. The powerpc change was not quite correct.
1999-01-11panic prints a newline for you, don't do it in the panic stringTodd C. Miller
1999-01-10Generalize cpu_set_kpc to take any kind of arg; mostly from NetBSDNiklas Hallqvist
1999-01-08move spinlock.h into the real worldDavid Leonard
1999-01-08check for lp->d_secpercyl == 0) in bounds_check_with_label()Todd C. Miller
1999-01-08make uint*_t line up nicely and add a few $OpenBSD$ tags that were missingTodd C. Miller
1999-01-07move uint*_t to machine/types.hTodd C. Miller
1999-01-07global decl for *intr() routines, plus add INET6Theo de Raadt
1998-10-14openfirmware root was moved to attach at mainbus some time back, thisDale S. Rahn
config file was missed when that change was made.
1998-10-12While It would be a really nice thing to have nested interrupts,Dale S. Rahn
getting all of the complexities captured in the code before release is not going to be possible, maybe after release this will be fixed. Regressing to 1.8 (version before allowing nested interrupts).
1998-10-11When copying several lines from one file to another, do not delete the linesDale S. Rahn
from the first file. (the last commit of this file had several lines missing.)
1998-10-10Merged versions of GENERIC and MIX as well as RAMDISK and RAMDISKMIX.Dale S. Rahn
1998-10-09These installation instruction were so out of date that they wereDale S. Rahn
worse than useless.
1998-10-09Update to current state of powerpc port.Dale S. Rahn
1998-10-09Support nested interrupts for the powerpc interrupt controller.Dale S. Rahn
1998-10-09Functions to enable and disable interrupts, instead of spreading asm codeDale S. Rahn
through the drivers. Ok, it would not be too bad to have it an inlined function in a header file, but it is not that bad.
1998-10-09PCI io space starts at 0x80000000 not 16MB added to that address, whenDale S. Rahn
referring to the offset specified in the pci base address config register.
1998-10-09Workaround for wscons support, this is how this was done on alpha,Dale S. Rahn
we really should fix the config args of the wscons code.
1998-10-09requesting tty and net soft interrupts does not mean requesting a clockDale S. Rahn
soft interrupt.
1998-10-03Add a "spoofonly" argument to readdisklabel() which will be used toTodd C. Miller
implement an ioctl to get a spoofed label even for disks that have a label on them.
1998-09-27add wscons support to powerpc port.Dale S. Rahn
This contains several pieces of the port MI: vgafb, on powerpc under openfirmware the vga card comes up in gfx mode. instead of resetting it to text mode, vgafb treats this as a raster display. The mechanism used may not have been the best, it's interface to wscons is as a text display, and it does the character plotting itself. font_8x16.c was stolen from the atari port for use. MD: ppcppi support stolen from alpha pms.c, pckbd.c and the rest of the support files were used nearly directly. powerpc conf.c to support wscon, vga/kbd machdep.c hack to get around a bus_space_set_region,bus_space_copy error. ofw_machdep.c some hack code on the road to supporting wscons as console.
1998-09-25o xfs is in the house (thanks art, for getting me started)Todd T. Fries
o all but vax are major 51
1998-09-21change default console to serial ports. should work with VI computersDale S. Rahn
too, execept console will be com3 :-)
1998-09-20Change openfirmware to not try to configure a device on sd or wdDale S. Rahn
disks if those drivers are in the kernel. This allows the use of ofdisk0 for floppy support. (until fd.c is supported).
1998-09-20Changes to probe for address, and frequency for serial console.Dale S. Rahn
This should enable the same kernel to work on VI machines as well as MCG machines. Only remaining piece is the rtc. For now an extra config file has been added to use serial for MCG machines until all issues are resolved. The various extra config files and ramdisks should go away as soon as merger is finished.
1998-09-17Put this back for now, appearently the VI boards use COM4 for console.Dale S. Rahn
they only have COM3 and COM4, MCG boards have COM1 and COM2 addresses (only). This will need to be turned into a variable that is probed and then passed to the console (com) driver.
1998-09-16Add entries for the following devices in the cdev switch ksyms, uk, and ss.Dale S. Rahn