diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-10-06 16:42:52 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-10-06 16:42:52 +0000 |
commit | 4eeed0051be4e7544f59e2da555093145f4214d6 (patch) | |
tree | 483b7bfad92a4de8ef3d6a406c7cba5c475c5ff9 /cpukit/score | |
parent | Regenerate. (diff) | |
download | rtems-4eeed0051be4e7544f59e2da555093145f4214d6.tar.bz2 |
2011-10-06 Gedare Bloom <giddyup44@yahoo.com>
PR 1918/cpukit
* cpu.c: Initialize context with cleared g4 register.
Diffstat (limited to 'cpukit/score')
-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 */ /* |