microblaze: Move restart allowed out of block
Subsystems (2)
Michal Simek
maintainerPATCH 1/2 microblaze: Move restart allowed out of block
Better not to break block which do work together.
Signed-off-by Michal Simek <[email protected]>
--- arch/microblaze/kernel/entry.S | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/microblaze/kernel/entry.S +1 -1
@@ -371,8 +371,8 @@ C_ENTRY(_user_exception): /* Figure out which function to use for this system call. */ /* Note Microblaze barrel shift is optional, so don't rely on it */ add r12, r12, r12; /* convert num -> ptr */ - addi r30, r0, 1 /* restarts allowed */ add r12, r12, r12; + addi r30, r0, 1 /* restarts allowed */ #ifdef DEBUG /* Trac syscalls and stored them to syscall_debug_table */
Signature · 1 line
1.7.0.4
Michal Simek
maintainerPATCH 2/2 microblaze: Remove compilation failure
Remove typo fault in addik asm instruction.
Error log:arch/microblaze/kernel/built-in.o: In function `sys_rt_sigreturn_wrapper':
(.text+0x50e0): undefined reference to `r0'
Caused by:
"microblaze: fix the horror with restarts of sigreturn()" (sha1: 4441e2fc9d18124d395010d60435e07c70ae4271)
Signed-off-by Michal Simek <[email protected]>
--- arch/microblaze/kernel/entry.S | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/microblaze/kernel/entry.S +2 -2
@@ -429,7 +429,7 @@ C_ENTRY(ret_from_trap): bri 1b /* Maybe handle a signal */ -5: +5: andi r11, r19, _TIF_SIGPENDING | _TIF_NOTIFY_RESUME; beqi r11, 4f; /* Signals to handle, handle them */
@@ -505,7 +505,7 @@ C_ENTRY(sys_execve): addik r8, r1, 0; /* add user context as 4th arg */ C_ENTRY(sys_rt_sigreturn_wrapper): - addik r30, r0, r0 /* no restarts */ + addik r30, r0, 0 /* no restarts */ brid sys_rt_sigreturn /* Do real work */ addik r5, r1, 0; /* add user context as 1st arg */
Signature · 1 line
1.7.0.4