diff options
author | Michal Simek <monstr@monstr.eu> | 2010-08-06 10:42:30 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2010-10-21 15:51:29 +1000 |
commit | 7d4320956f0f8aa2c36c23f209acc3e4c3ae52d6 (patch) | |
tree | 2a61281485ca14ede2e64665d06875b56bcb4a8a /arch/microblaze/kernel/entry.S | |
parent | 791d0a169b912220d58e0ce4564d7bf1e68146a8 (diff) | |
download | blackbird-op-linux-7d4320956f0f8aa2c36c23f209acc3e4c3ae52d6.tar.gz blackbird-op-linux-7d4320956f0f8aa2c36c23f209acc3e4c3ae52d6.zip |
microblaze: Clear return value in pt_regs
Signal code uses r3 value which saved in restore_sigcontext to
rt_sigframe but it require to be zeroed. If is not zero rt_sigframe
contains wrong values.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/kernel/entry.S')
-rw-r--r-- | arch/microblaze/kernel/entry.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/microblaze/kernel/entry.S b/arch/microblaze/kernel/entry.S index ab4f1e159308..8539c6c0e741 100644 --- a/arch/microblaze/kernel/entry.S +++ b/arch/microblaze/kernel/entry.S @@ -295,6 +295,8 @@ C_ENTRY(_user_exception): /* addik r1, r1, -STATE_SAVE_SIZE; */ addik r1, r1, THREAD_SIZE + CONFIG_KERNEL_BASE_ADDR - CONFIG_KERNEL_START - STATE_SAVE_SIZE; SAVE_REGS + swi r0, r1, PTO + PT_R3 + swi r0, r1, PTO + PT_R4 lwi r11, r0, TOPHYS(PER_CPU(ENTRY_SP)); swi r11, r1, PTO+PT_R1; /* Store user SP. */ |