linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] microblaze: Move restart allowed out of block
@ 2012-09-17  9:18 Michal Simek
  2012-09-17  9:18 ` [PATCH 2/2] microblaze: Remove compilation failure Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2012-09-17  9:18 UTC (permalink / raw)
  To: viro; +Cc: linux-arch, Michal Simek

Better not to break block which do work together.

Signed-off-by: Michal Simek <monstr@monstr.eu>
---
 arch/microblaze/kernel/entry.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/microblaze/kernel/entry.S b/arch/microblaze/kernel/entry.S
index 82ed20d..48223a1 100644
--- a/arch/microblaze/kernel/entry.S
+++ b/arch/microblaze/kernel/entry.S
@@ -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 */
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 2/2] microblaze: Remove compilation failure
  2012-09-17  9:18 [PATCH 1/2] microblaze: Move restart allowed out of block Michal Simek
@ 2012-09-17  9:18 ` Michal Simek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2012-09-17  9:18 UTC (permalink / raw)
  To: viro; +Cc: linux-arch, Michal Simek

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 <monstr@monstr.eu>
---
 arch/microblaze/kernel/entry.S |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/microblaze/kernel/entry.S b/arch/microblaze/kernel/entry.S
index 48223a1..76ae019 100644
--- a/arch/microblaze/kernel/entry.S
+++ b/arch/microblaze/kernel/entry.S
@@ -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 */
 
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-17  9:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-17  9:18 [PATCH 1/2] microblaze: Move restart allowed out of block Michal Simek
2012-09-17  9:18 ` [PATCH 2/2] microblaze: Remove compilation failure Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).