summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc
AgeCommit message (Collapse)Author
2000-02-22enlarge msgbuf, somewhat line netbsd didTheo de Raadt
2000-02-22Use an _BSD_FOO_T_ type declaration for off_t in machine/ansi.h to allowTodd C. Miller
off_t to be visible in stdio.h even in strict ansi mode. This is needed for ftello()/fseeko() and it allows us to remove the horrible fpos_t hack.
2000-02-03Remove overly verbose printf during driver config.Dale S. Rahn
2000-02-03Define missed when the intial bus_dma code was checked in.Dale S. Rahn
Full dma code not yet integrated.
2000-01-24required files for ELF share library support. this version isDale S. Rahn
somewhat skeletal.
2000-01-24Previous fix to allow '-' in filenames did not work as desired,Dale S. Rahn
causes a trailing ' ' to be on filenames and was not recognized if at beginning of string. Fixed so those instances work also.
2000-01-23Slight changes to root drive detection for powerpc (mac).Dale S. Rahn
2000-01-23remove vga/vgafb for now. mac is currently running on openfirmwareDale S. Rahn
console and now that configuration works better, this causes problems.
2000-01-22Remove vga and wscons, not used yet due to openfirmware console.Dale S. Rahn
2000-01-22Fix pci probing for the powerpc port, it was previously only probing aDale S. Rahn
portion of the pci devices, 1,2,4,8,... instead of 1,2,3,4,5,6,7,8,... Updated to use indirect PCI configuration, so that pci-pci buses could be probed. And that devices > 11 on the pci bus could be detected.
2000-01-22Allow the address specified in the bus_space_map to either beDale S. Rahn
the absolute address requested, or the offset address, this is done by oring the requested address with the bus base address. Devices on the mac-io bus are bus base relative, but the pci devices are absolute addresses.
2000-01-22do not interpret a '-' character in a file or bootpath as the beginning ofDale S. Rahn
options, the dash character is only special if a space preceeds it. fixes booting from "/pci/mac-io/ide/disk/bsd".
2000-01-16Closer to support for UVM on powerpc, tries to execute user programs, butDale S. Rahn
then fails with illegal instruction. (init or shell).
2000-01-14Remove change that was checked in by accident with last commit.Dale S. Rahn
2000-01-14UVM changes mainly. As of this checkin UVM is still not working for powerpcDale S. Rahn
it has a copyin bug after device configuration. However to get these diffs out of my tree. All of the UVM code is currently inside ifdef UVM the kernel works fine without option UVM. Config files have been left without UVM for now. Prelimiary changes for busdma, (what UVM was wanted for).
2000-01-14RAMDISK kernels should not be configured as GENERIC, remove unnecessaryDale S. Rahn
pieces associated, shrinking the kernel is good. Add ppb to both of these, the PCI-PCI bridge would be a good thing for machine that have one.
2000-01-14fix ipv6 typo.Dale S. Rahn
2000-01-09add INET6 into conf/GENERIC.Jun-ichiro itojun Hagino
add pseudo-devices for IPv6 into arch/*/conf/GENERIC. nuke arch/*/conf/GENERIC.v6.
1999-12-08add GENERIC.v6 (IPv6 test configuration). to be integrated into GENREIC.Jun-ichiro itojun Hagino
1999-12-04DOSPTYP_EXTENDL; sigh@kuzirabekon.econ.nagasaki-u.ac.jpTheo de Raadt
1999-11-28Add recognition support for powerbook, it is reported to work withDale S. Rahn
ethernet and disk now.
1999-11-28Make the default system type to be APPL for these kernels. probablyDale S. Rahn
will cause them to fail in an interesting way if they are booted on non apple machine, but temporarily remove the requirement to put the model names in a table. Workaround until the model/compatibility recognition is done better.
1999-11-28Lower NKMEMCLUSTERS from 128MB to 16MB. Currently the vm size for powerpcDale S. Rahn
is set to 256MB and this prevented OpenBSD from booting on machine with more than ~128MB, 196MB machines would fail to boot very early.
1999-11-25Properly fix the last checkin, the pseudo device rd is now a mi device andDale S. Rahn
is not to be specified in files.<arch> but if the arch has rd_attach_hook and rd_open_hook, the file that these are in need to be included in that files.<arch> file.
1999-11-25Add back rd_ md hooks that was incorrectly removed with the recent rd changes.Dale S. Rahn
1999-11-23Use the _vtbl code to allow the registers to be seperated by 0x10,Dale S. Rahn
this is how the registers are arranged for obio.
1999-11-22add empty mmioctl() implementation for new /dev/mem interface for allMatthieu Herrb
architectures.
1999-11-09Add OpenBSD tags.Dale S. Rahn
changes to boot on Apple iMac G3 (333). ethernet address changes Locore.c OpenBSD tag hack to delay decrementer exception until after bootload, apple OFW enables interrupts during "system calls" add OF_call_method, to make ofw call by name. Apple OFW can return unexpected values from getchar calls. alloc.c OpenBSD tag boot.c OpenBSD tag updated (but still unused load symbol code). Code cleanup for egcs. cache.c OpenBSD tag use dcbst, not dcbf icbi has both arguments as registers, not constant and register. net.c OpenBSD tag netif_of.c OpenBSD tag add "local-mac-address" to methods of fetching mac address, it can be stored in that variable or in mac-address. support dma buffers, add additional return value for OF_read for network timeout purposes. ofdev.c OpenBSD tag support dma buffers, ofdev.h OpenBSD tag add dmabuf remove MAC default kernel def. ofwmagic.S OpenBSD tag openfirm.h OpenBSD tag boot.mac/Makefile Build debug, - not used for version 3 apple openfirmware, ie imacs.
1999-11-09Remove old unused config files.Dale S. Rahn
IPX added to GENERIC, only because last released kernels were built that way.
1999-11-09Additional changes due to the fallout of the p4e -> ppc changes.Dale S. Rahn
1999-11-09Merge error in previous version caused compilation failure.Dale S. Rahn
Commit properly started and terminated.
1999-11-09autoconf.hDale S. Rahn
add mac hooks to the powerpc config structure, probably a hack, and certainly needs to be cleaned up. bus.h p4e_ -> ppc_X add write_multi and prototypes for bus_space_X_raw_multi functions. intr.h add structure for interrupt handler. pio.h remove the unnecessary and slowing "sync" instruction from each pio access. remove unnecessary newline characters from the generated asm. eieio after writes, but before reads. types.h formatting change vmparam.h change powerpc kernel virtual memory sizing from a fixed segment to a variable, initialized with a segment size, this is so that the pmap allocator can steal virtual memory, if vm is not yet set up. Necessary for mapping devices before the kernel vm structures are initialized.
1999-11-09autoconf.c:Dale S. Rahn
calculate delay time for delay() before it is acutally used. add support for md_diskconf come closer to supporting crashdumps, eventually this code should be un if 0 ed and supported. add the wd device as a supported device, fix some comments. clock.c: support calculation of delay loop earlier, do the spin loop correcly, unsigned math on the lower half, not signed math. conf.c: addd support for wd driver, block major 0, char major 11. machdep.c: bus_space_map becomes a real function, not just inlined function. Support devices that are not mapped with bats (most still currently are mapped with bats,...). BAT mapping does not allow proper mapping of cachable devices. mapiodev HACK, NEEDS TO BE REMOVED. added for quicker import of BROKEN mac drivers. the drivers NEED to be rewritten in a busified manner. it would FIX all of the endian swabbing done by each driver. (Is that emphasized enough?) bus_space_(read|write)_raw_multi as functions, should these be turned into inline functions and put in bus.h? ofw_machdep.c: removed extranious variable. openfirm.c: telling openfirmware to "boot" will put the system in somewhat of a strange state, try reset-all, but that typically fails, therefore, try OF_exit before spinning. pmap.c: support stealing memory from kernel address space so that mappings can be created before vm is initalized. vm_machdep.c: maybe the meaning of removing this will later become obvious. ???
1999-11-08Support for imac drivers, Additional configurations for mac kernels.Dale S. Rahn
Some mac drivers mentioned in the config files may not be be currently supported.
1999-11-08Changes for imac support. support for VI computers and MCG PowerstackDale S. Rahn
will need to be merged back in. Both are currently untested. mac interrupt support is currently a big hack and needs to be redesigned as part of the system, several of the mac drivers need busified also.
1999-11-08Initial import of NetBSD macppc code to allow OpenBSD/powerpc to runDale S. Rahn
on the imac computer, Additional hardware and driver support will follow. Initially wdc_obio support the imac (333Mhz) atapi cdrom and the ATA harddrive. also Bmac ethernet is supported at least at 10Mb.
1999-11-08move MI definition of rd into it's MI place also fixingMichael Shalayeff
attributes, allowing kernels to exist w/ rd as the only disk device. tested on a few archs; niels@ & millert@ ok
1999-10-28clean up a global pointer/array reference for OF_buf.Dale S. Rahn
fix typo someone made.
1999-10-26Fix inline function decls to work with C++.Jason Downs
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