summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/powerpc64/sys (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add retguard prologue/epiloguederaadt2020-10-191-2/+4
| | | | ok mortimer
* SYS___threxit cannot fail, but this integration looks like a gadget.deraadt2020-10-181-1/+2
| | | | | Put a hard-trap instruction after the syscall instruction. ok kettenis mortimer
* Adapt SYS.h to use retguard macros from asm.h, so that generated systemderaadt2020-10-165-19/+47
| | | | | | calls are guarded. Adapt the first few hand-written functions to this model (a few remain) ok kettenis mortimer
* Fix two cases where we shpould compare/store 64-bit values instead ofkettenis2020-07-271-3/+3
| | | | | | 32-bit values. ok gkoehler@, drahn@
* Fix powerpc64's sbrk()gkoehler2020-07-271-3/+5
| | | | | | | Initialize __curbrk = &_end. It's a 64-bit pointer, so use ld/std instead of lwz/stw. ok drahn@
* Add missing comparison instruction. Load %r12 with the indirect branchkettenis2020-06-301-1/+3
| | | | address to load the correct TOC address.
* The 2nd and 3rd argument are pointers, so use the appropriate doublewordkettenis2020-06-281-5/+5
| | | | | | instructions. ok drahn@
* Avoid "bare" register numbers.kettenis2020-06-264-26/+26
|
* PowerPC64 libc powerpc sys filesdrahn2020-06-258-0/+368
Initial attempt to port powerpc code to powerpc64 Expects TOC loading in ENTRY(), ok kettenis@ (some cleanup required)