diff options
Diffstat (limited to 'cpukit/score/cpu')
-rw-r--r-- | cpukit/score/cpu/sparc64/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/score/cpu/sparc64/cpu.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/score/cpu/sparc64/ChangeLog b/cpukit/score/cpu/sparc64/ChangeLog index eb0938b720..efe0b10bb0 100644 --- a/cpukit/score/cpu/sparc64/ChangeLog +++ b/cpukit/score/cpu/sparc64/ChangeLog @@ -1,3 +1,8 @@ +2011-10-06 Gedare Bloom <giddyup44@yahoo.com> + + PR 1918/cpukit + * cpu.c: Initialize context with cleared g4 register. + 2011-09-27 Sebastian Huber <sebastian.huber@embedded-brains.de> PR 1914/cpukit diff --git a/cpukit/score/cpu/sparc64/cpu.c b/cpukit/score/cpu/sparc64/cpu.c index 279a7b448d..cb62f9333a 100644 --- a/cpukit/score/cpu/sparc64/cpu.c +++ b/cpukit/score/cpu/sparc64/cpu.c @@ -104,6 +104,9 @@ void _CPU_Context_Initialize( the_context->o6_sp = stack_high - CPU_MINIMUM_STACK_FRAME_SIZE - STACK_BIAS; the_context->i6_fp = 0; + /* ABI uses g4 as segment register, make sure it is zeroed */ + the_context->g4 = 0; + /* PSTATE used to be built here, but is no longer included in context */ /* |