summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/ofw/rtas.c
Commit message (Collapse)AuthorAgeFilesLines
* As <machine/pmap.h> is included from <vm/pmap.h>, there is no need toskra2016-02-221-1/+0
| | | | | | | include it explicitly when <vm/pmap.h> is already included. Reviewed by: alc, kib Differential Revision: https://reviews.freebsd.org/D5373
* Use setjmp() instead of the identical-except-for-having-a-wrong-prototypenwhitehorn2016-01-101-4/+3
| | | | | setfault() when testing for faults. This should also help the compiler do the right thing with this complicated-to-optimize function.
* Allow use of a pre-instantiated RTAS as well as a self-instantiated one. Thisnwhitehorn2015-01-221-17/+28
| | | | lets the kernel boot on RTAS-based systems by being kexec'ed from Linux.
* Make RTAS calls, which call setfault() to recover from machine checks,nwhitehorn2013-11-271-2/+3
| | | | | | | | preserve any existing fault buffer. RTAS calls are meant to be safe from interrupt context (and are indeed used there to implement the xics PIC drvier). Without this, calling into RTAS in interrupt context would have the effect of clearing any existing onfault state of the interrupted thread, potentially leading to a panic.
* Use a spin lock instead of a mutex to gate RTAS. This is required if RTASnwhitehorn2013-09-091-3/+3
| | | | | | calls are involved in interrupt handling. Approved by: re (kib)
* Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs.ed2011-11-071-1/+1
| | | | This means that their use is restricted to a single C file.
* Add better error handling for RTAS calls. These can potentially causenwhitehorn2011-06-261-1/+18
| | | | | | | machine checks (e.g. invalid PCI configuration cycles), but these can be caught and recovered from. This change also the RTAS PCI driver to work without modification as a replacement for the Grackle driver on Grackle-based Powermacs.
* MFpseries:nwhitehorn2011-06-021-0/+243
Renovate and improve the AIM Open Firmware support: - Add RTAS (Run-Time Abstraction Services) support, found on all IBM systems and some Apple ones - Improve support for 32-bit real mode Open Firmware systems - Pull some more OF bits over from the AIM directory - Fix memory detection on IBM LPARs and systems with more than one /memory node (by andreast@)
OpenPOWER on IntegriCloud