summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc/include
AgeCommit message (Collapse)Author
2001-06-10Hack/workaround for gcc bug. GCC will generate a load/store double instructionDale Rahn
to do data copies, however it will not correctly identify that a load/store double will not correctly copy data where the address is misaligned. This emulates the load/store double operations in the kernel. Fixes gtk+ runtime problems. From NetBSD.
2001-06-10Post pmap_extract() changes cleanup.Dale Rahn
bus_addr_t vs vaddr_t/paddr_t Return correct value for poalloc();
2001-05-26Add one more '0' in comment.Artur Grabowski
2001-05-25Implement PMAP_MAP_POOLPAGE.Artur Grabowski
2001-05-09More sync to NetBSD.Artur Grabowski
- Change pmap_change_wiring to pmap_unwire because it's only called that way. - Remove pmap_pageable because it's seldom implemented and when it is, it's either almost useless or incorrect. The same information is already passed to the pmap anyway by pmap_enter and pmap_unwire.
2001-05-05Get rid of CLSIZE and all related stuff.Artur Grabowski
CLSIZE -> 1 CLBYTES -> PAGE_SIZE OLOFSET -> PAGE_MASK etc. At the same time some archs needed some cleaning in vmparam.h so that goes in at the same time.
2001-03-29Add OpenBSD tag to headers missing them.Dale Rahn
2001-03-29bus_space_*_raw_multi_* is supposed to take u_int8_t parameter, notDale Rahn
access size parameter. Also add field to hold bus size for later usage.
2001-03-29Make several global variables referenced as extern, not common.Dale Rahn
Cleans up symbols in object files.
2001-03-29Update to newer version from Nbsd. Add OpenBSD tag.Dale Rahn
2001-03-21__va_list is specified differently with the powerpc ABI than it is onDale Rahn
other platforms, the list is a pointer, thus va_copy should allocate data (using alloca) for that pointer before copying the contents of the data. This allows several gnu programs to build and run correctly which insist on multiply parsing the vararg/stdarg data passed to a function.
2001-03-14Support shared disks with MacOS. This is only one of the pieces ofDale Rahn
the task. The kernel now support a BSD disklabel located inside a HFS(DPME) partition of type "OpenBSD". It will use this disklabel for OpenBSD. If no OpenBSD DPME partition exists it will fake HFS partitions for apple HFS partitions of the disk. The tool to change the DPME partition type to OpenBSD and booting support in ofwboot are not yet ready.
2001-03-02add #define __STRICT_ALIGNMENTJason Wright
2001-02-22Improve the page mapped check algorithm in the powerpc pmap module,Dale Rahn
before it was looking through two arrays of 8 and a linked list of undetermined size, before deciding that a mapping was not valid. Now it allocates a data structure and caches that data. This improves both pmap_enter and pmap_remove because both check to see if a mapping is valid before taking the appropriate actions. Also in pmap_remove, if the va mapping is found, stop searching for it in the rest of this array, the alternate array and the linked list. only one valid mapping of each va is allowed. This change improved lat_mmap (from lmbench) from 1300 to 720 and fork+exit from 7320 to 2724 microseconds.
2001-02-07Add support for bus_space_write_region_[1248] bus_space_read_region_[1248]Dale Rahn
as needed for some drivers, primarily drivers from NetBSD, where these defines came from.
2001-02-07Some devices use NPBG others want PAGE_SIZE, and the related macros.Dale Rahn
so provide both.
2001-01-24Optimization base on looking at generated asm code.Dale Rahn
also change type of a variable from (void) * to (char *) since it is incremented as if a (char *).
2001-01-24Always do MACHINE_NEW_NONCONTIG, not based on UVM or not.Dale Rahn
2001-01-24Remove block of "#if 0"ed code.Dale Rahn
2001-01-22Define ARCH_ELFSIZE that is the default elf size on this arch.Artur Grabowski
2001-01-15__asm__ and __volatile__Theo de Raadt
2000-11-11Add bus_space_barrier code to powerpc bus.h. This portion of theDale Rahn
bus interface was not previously implemented. This functionality is required for the latest USB changes. The bus_space_barrier does not perform any operation with this change, it expects that the device mappings will be performed with the Guard bit set which then should not require this forced sync.
2000-09-14crank MSGBUFSIZETheo de Raadt
2000-09-06Add header file for adb subsystem.Dale S. Rahn
2000-08-03Fixes to bus dmamem code.Dale S. Rahn
(Fixed by replacing the code with the version from the i386 port.)
2000-07-31Add defines for ULLONG_MAX, LLONG_MAX, and LLONG_MIN in terms ofTodd C. Miller
UQUAD_MAX, QUAD_MAX, and QUAD_MIN respectively.
2000-07-28Dont force htab size to be fixed size, allow system to define size.Dale S. Rahn
2000-07-07Since it is possible for the interrupt controller to be configured lateDale S. Rahn
in the config cycle, and pci devices as well as mac onboard devices do not use interrupts to probe. It is possible to record that the interrupt is to be configured, but not configure it with the interrupt controller until the interrupt controller configures itself. This is lazy binding of interrupts. If there is a conflicting interrupt or other problem it will be noticed when the interrupt controller configures and collects the data rather than when the device configures. Currently on the openpic interrupt controller supports these pre-configured interrupts.
2000-07-07Additional bus defines, required to build ahc driver. ahc not quite workingDale S. Rahn
due to busdma issues on powerpc.
2000-07-06Change splsoftclock() to raise the spl, instead of lowering it.Hakan Olsson
Add spllowersoftclock() for the former behaviour. Update comment. (art@ ok)
2000-06-13Add dewey and SOD information to this header file, for ELF ld.soDale S. Rahn
2000-03-31add support for intrcnt from "C", make CLK_IRQ availableDale S. Rahn
to count clock interrupts.
2000-03-20Make float.h and limits.h agree for DBL_MIN and DBL_MAX.Dale S. Rahn
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-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-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).
1999-12-04DOSPTYP_EXTENDL; sigh@kuzirabekon.econ.nagasaki-u.ac.jpTheo de Raadt
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-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-10-26Fix inline function decls to work with C++.Jason Downs
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-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-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-03-23Add DOSMBR_SIGNATURE_OFF define, needed for last disklabel changeTodd C. Miller
1999-03-12Additional pic related change, not currently used by powerpc port.Dale S. Rahn
1999-01-08move spinlock.h into the real worldDavid Leonard
1999-01-08make uint*_t line up nicely and add a few $OpenBSD$ tags that were missingTodd C. Miller