diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-08-01 10:57:46 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-08-22 16:26:19 +0200 |
commit | a6f84b275318dbd89ba0bfd12ff6df631a8ac4bc (patch) | |
tree | 0105282863a5a9b538098ed88a5bd72ab799aa9c /c/src/lib/libcpu/powerpc/new-exceptions/cpu.c | |
parent | powerpc: 64-bit _CPU_Context_Initialize() support (diff) | |
download | rtems-a6f84b275318dbd89ba0bfd12ff6df631a8ac4bc.tar.bz2 |
powerpc: Add 64-bit context/interrupt support
Update #3082.
Diffstat (limited to 'c/src/lib/libcpu/powerpc/new-exceptions/cpu.c')
-rw-r--r-- | c/src/lib/libcpu/powerpc/new-exceptions/cpu.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c b/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c index bee5eb2091..ae5065daa4 100644 --- a/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c +++ b/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c @@ -129,10 +129,6 @@ void _CPU_Context_Initialize( if ( tls_area != NULL ) { void *tls_block = _TLS_TCB_before_TLS_block_initialize( tls_area ); - the_ppc_context->gpr2 = (uint32_t) tls_block + 0x7000; - } else { - register uint32_t gpr2 __asm__("2"); - - the_ppc_context->gpr2 = gpr2; + the_ppc_context->tp = (uintptr_t) tls_block + 0x7000; } } |