summaryrefslogtreecommitdiffstats
path: root/sys/arch/macppc/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Don't put an extern variable (ppc_kvm_stolen) into vmparam.h, other instancesderaadt2021-03-151-5/+1
| | | | of this file are only doing cpp #define
* spellingjsg2021-03-111-3/+3
|
* Userland timecounter for macppcgkoehler2020-07-171-2/+2
| | | | | | | Tested by cwen@ and myself. Thanks to pirofti@ for creating the userland timecounter feature. ok kettenis@ pirofti@ deraadt@ cheloha@
* Add support for timeconting in userland.pirofti2020-07-061-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | This diff exposes parts of clock_gettime(2) and gettimeofday(2) to userland via libc eliberating processes from the need for a context switch everytime they want to count the passage of time. If a timecounter clock can be exposed to userland than it needs to set its tc_user member to a non-zero value. Tested with one or multiple counters per architecture. The timing data is shared through a pointer found in the new ELF auxiliary vector AUX_openbsd_timekeep containing timehands information that is frequently updated by the kernel. Timing differences between the last kernel update and the current time are adjusted in userland by the tc_get_timecount() function inside the MD usertc.c file. This permits a much more responsive environment, quite visible in browsers, office programs and gaming (apparently one is are able to fly in Minecraft now). Tested by robert@, sthen@, naddy@, kmos@, phessler@, and many others! OK from at least kettenis@, cheloha@, naddy@, sthen@
* Remove obsolete <machine/stdarg.h> header. Nowadays the varargvisa2020-06-301-3/+0
| | | | | | | | functionality is provided by <sys/stdarg.h> using compiler builtins. Tested in a ports bulk build on amd64 by naddy@ OK naddy@ mpi@
* Retire <machine/varargs.h>.visa2020-05-271-3/+0
| | | | | | Nothing uses the header anymore. OK deraadt@ mpi@
* Remove clause #3 from mrg@NetBSD license.mpi2019-12-051-3/+1
| | | | | | | In May 29 2008, Matthew R. Green removed it in NetBSD: github.com/IIJ-NetBSD/netbsd-src/commit/7ea20401d535da9996394136ef ok deraadt@
* flense more trailing whitespacephessler2019-01-221-5/+5
|
* remove trailing whitespace in the Laptop Package part of the license text.phessler2019-01-221-4/+4
| | | | no words or punctation were modified.
* add a BUS_DMA_64BIT flag to bus_dma on all our archs.dlg2017-05-081-1/+2
| | | | | | | | | this is so drivers can advertise that they can handle 64 dma addresses to the platform. it may choose to handle dmamaps differently based on this flag. tweaks and ok tom@ ok kettenis@
* Initial support for MSI-X. Only supported on amd64 for now. I have diffs tokettenis2016-05-041-1/+2
| | | | | | | | | | actually use this in em(4) and xhci(4), but I'm not committing those yet because we almost certainly need to save and restore the MSI-X registers during suspend/resume. However, this allows mpi@ to play with multiple-vector support in networking hardware. Requested by mpi@ ok mlarkin@, mikeb@
* implement bus_space_read_raw_X and bus_space_write_raw_Xdlg2016-05-031-1/+29
| | | | | | | with feedback from kettenis@ fixes building a kernel with xge, which might actually work on these machines now.
* One ddb interface is enough for ppc.mpi2016-03-051-2/+1
|
* Remove the definition of USRTEXT. It has no relevance outside of the non-PIEmiod2015-11-011-2/+1
| | | | | a.out world. ok deraadt@ kettenis@
* Remove some trailing whitespace.krw2015-09-301-4/+4
|
* Use consistant whitespace/comments for #define'ing LABELSECTOR,krw2015-09-301-4/+4
| | | | | LABELOFFSET and MAXPARTITIONS. Easier on the eye when scanning through all these files. No functional change.
* Remove {LOAD,COUNT}_TEXTA from libsa loadfile, it only made sense for a.outmiod2015-07-171-3/+3
| | | | kernels and we no longer have any.
* move the ppc mplock implementation from macppc to powerpc.dlg2015-06-261-51/+2
| | | | ok mpi@
* One function pointer per pic function is enough.mpi2015-04-021-3/+1
|
* Make it possisble to disable block address translation mechanism onmpi2015-03-311-3/+0
| | | | | | | | | processors that support it. Due to the way trap code is patched it is currently not possible to enabled/disable BAT at runtime. ok miod@, kettenis@
* increase min address to page size for all remaining min == 0 systems.tedu2015-02-101-2/+2
| | | | not necessary, but consistent with other platforms. ok deraadt
* Need to define APM_USER_HIBERNATE_REQ here too.miod2015-02-071-1/+2
|
* Implement bus_dmamem_alloc_range(9) for macppc/socppc.kettenis2015-01-241-1/+10
|
* revert unintentional commit unrelated to LKMtedu2014-10-091-2/+2
|
* remove LKM devicestedu2014-10-091-2/+2
|
* Remove unused mainbus intr hook abstraction.tobiasu2014-07-021-31/+2
| | | | Theo approves, ok mpi@
* Remove unused system_type and friends. Remnants from universal powerpc supporttobiasu2014-07-021-12/+1
| | | | ok mpi@ deraadt@
* Bump DFLSSIZ to 2MB to match most of the other platforms.brad2014-06-021-2/+2
| | | | ok miod@
* increase MSGBUFSIZEderaadt2014-04-071-2/+2
|
* Remove the almost unused abstraction around "struct firmware" and usempi2014-04-012-94/+3
| | | | | | instead a single function ppc_mem_regions() required by the ppc pmap. ok kettenis@
* It's been a quarter century: we can assume volatile is present with that name.guenther2014-03-291-15/+15
| | | | ok dlg@ mpi@ deraadt@
* Move declaration of struct vm_page_md from <machine/vmparam.h> tomiod2014-01-301-10/+1
| | | | | | <machine/pmap.h> where it belongs, and compensate in <uvm/uvm_extern.h> by including <uvm/uvm_pmap.h> before <uvm/uvm_page.h>. Tested on all MACHINE_ARCH but amd64 and i386 (and hppa64).
* Do not protect struct vm_page_md with defined(_KERNEL), for userland uvmmiod2014-01-241-6/+1
| | | | | grovellers need to know it to be able to get the right size for struct vm_page.
* unifdef -D__HAVE_VM_PAGE_MD - no functional change.miod2014-01-231-2/+1
|
* Add a stub for the new MD hook needed to handle ACPI Power Resources.mpi2013-11-051-1/+2
| | | | ok kettenis@
* Remove a.out leftovers now that libsa loadfile() will only boot ELF binaries.miod2013-10-171-2/+1
|
* Initialize ns_per_tick as soon as we have read the timebase from thempi2013-10-091-1/+2
| | | | | | | device-tree to restore the behaviour present before my last change. This fixes a regression seen on some Powerbooks where one of the two kiic(4) would always timeout when trying to configure the audio chip.
* Initialize the variable guarding the clock interrupt routine aftermpi2013-09-131-1/+3
| | | | | | | | | | | | calling initclocks(). This prevents hardclock() from trying to schedule a softclock interrupt before its cookie has been allocated, leading to a panic. While here grab the ticks/second value from the OpenFirmware at the same time we read the clock frequency, no need to look twice for the same node. Looks ok to kettenis@
* Remove a bunch of unused variables and functions aging from the prempi2013-08-171-3/+1
| | | | | | powerpc -> macppc area. ok kettenis@
* Mimic what's done on sparc64 and parse the OpenFirmware device tree tompi2013-08-071-0/+108
| | | | | | | | enumerate the pci devices. This allow us to not store the interrupt vector in the interrupt line register and to not try to attach pci devices disabled by firmware. With inputs from and ok kettenis@
* add missing license (PD) blockjasper2013-06-012-4/+4
| | | | ok guenther@
* Unify the zs tty driver.sebastia2013-04-211-2/+2
| | | | | | | | | | Most of the hard work by mpi@, who provided the initial diff. Fixes for sparc from myself. Tested on sgi and sparc myself. Compiles and detects zstty on my powerbook, compile tested on sparc64 by me. Real testing with zs device on sparc64 by miod@ who also gave a lot of help and feedback. ok miod@, mpi@
* refactor sys/param.h and machine/param.h. A lot of #ifdef _KERNEL is addedderaadt2013-03-231-6/+7
| | | | | | | to keep definitions our of user space. The MD files now follow a consistant order -- all namespace intrusion is at the tail can be cleaned up independently. locore, bootblocks, and libkvm still see enough visibility to build. Checked on 90% of platforms...
* Avoid namespace pollution from <powerpc/cpu.h>.kettenis2013-03-171-4/+7
| | | | ok mpi@, deraadt@, miod@, millert@
* Fix a comment now that PowerPC 970 are recognized, make it clear thatmpi2012-12-081-2/+2
| | | | changing the frequency to a quarter mode is only supported by 970MP.
* Implement bus_space_mmap(9).mpi2012-12-061-1/+2
| | | | ok kettenis@
* Add the possibility to map DMA memory non-cached, based on the i386/amd64mpi2012-08-301-13/+22
| | | | | | | implementation. For the moment only the BUS_DMA_NOCACHE macro is required to build drm on macppc but it will be used soon. ok kettenis@
* ansijsg2012-08-241-19/+7
|
* create new machine/_float.h which is namespace clean. create a newderaadt2012-06-263-6/+3
| | | | | | | | | MI float.h which pulls in and defines the values that are needed from there, and repair sys/limits.h so that it defines the values it needs as well (depending on POSIX version, XPG version, etc). guenther has a more exact selection of that coming for limits.h. this also fixes a few mistakes for the vax. reviewed by kettenis and guenther.
* Add APM_IOC_HIBERNATEderaadt2012-03-261-1/+2
|