aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc/ofw/rtas.c
Commit message (Collapse)AuthorAgeFilesLines
* machine/stdarg.h -> sys/stdarg.hBrooks Davis2025-06-111-1/+1
| | | | | | | | | | | | | Switch to using sys/stdarg.h for va_list type and va_* builtins. Make an attempt to insert the include in a sensible place. Where style(9) was followed this is easy, where it was ignored, aim for the first block of sys/*.h headers and don't get too fussy or try to fix other style bugs. Reviewed by: imp Exp-run by: antoine (PR 286274) Pull Request: https://github.com/freebsd/freebsd-src/pull/1595
* sys: Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* [PowerPC64LE] Fix RTAS LE calls in pseries.Brandon Bergren2020-09-231-6/+7
| | | | | | | | | | | Similar to OPAL calls, switch to big endian to do calls to RTAS. (Missed this one when I was doing the bulk commit of PowerPC64LE support.) Sponsored by: Tag1 Consulting, Inc. Notes: svn path=/head/; revision=366063
* powerpc: clean up empty lines in .c and .h filesMateusz Guzik2020-09-011-3/+1
| | | | Notes: svn path=/head/; revision=365073
* sys/powerpc: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326261
* As <machine/pmap.h> is included from <vm/pmap.h>, there is no need toSvatopluk Kraus2016-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 Notes: svn path=/head/; revision=295880
* Use setjmp() instead of the identical-except-for-having-a-wrong-prototypeNathan Whitehorn2016-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. Notes: svn path=/head/; revision=293636
* Allow use of a pre-instantiated RTAS as well as a self-instantiated one. ThisNathan Whitehorn2015-01-221-17/+28
| | | | | | | lets the kernel boot on RTAS-based systems by being kexec'ed from Linux. Notes: svn path=/head/; revision=277539
* Make RTAS calls, which call setfault() to recover from machine checks,Nathan Whitehorn2013-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. Notes: svn path=/head/; revision=258694
* Use a spin lock instead of a mutex to gate RTAS. This is required if RTASNathan Whitehorn2013-09-091-3/+3
| | | | | | | | | calls are involved in interrupt handling. Approved by: re (kib) Notes: svn path=/head/; revision=255416
* Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs.Ed Schouten2011-11-071-1/+1
| | | | | | | This means that their use is restricted to a single C file. Notes: svn path=/head/; revision=227293
* Add better error handling for RTAS calls. These can potentially causeNathan Whitehorn2011-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. Notes: svn path=/head/; revision=223571
* MFpseries:Nathan Whitehorn2011-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@) Notes: svn path=/head/; revision=222613