mirror of
https://github.com/corda/corda.git
synced 2025-02-05 10:39:13 +00:00
reserve register 2 for system use on Linux/PowerPC
The SYSV ABI specifies that it be reserved. In practice, it is used for thread-local storage.
This commit is contained in:
parent
25f1a9f1e8
commit
7ad59731c0
@ -2096,6 +2096,10 @@ class MyArchitecture: public Assembler::Architecture {
|
||||
case 0: // r0 has special meaning in addi and other instructions
|
||||
case StackRegister:
|
||||
case ThreadRegister:
|
||||
#ifndef __APPLE__
|
||||
// r2 is reserved for system uses on SYSV
|
||||
case 2:
|
||||
#endif
|
||||
return true;
|
||||
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user