* [PATCH] microblaze: nommu: Don't clobber R11 on syscalls
@ 2009-12-09 23:13 steve
2009-12-10 7:31 ` Michal Simek
0 siblings, 1 reply; 2+ messages in thread
From: steve @ 2009-12-09 23:13 UTC (permalink / raw)
To: microblaze-uclinux; +Cc: monstr, linux-kernel, Steven J. Magnani
The noMMU syscall trap has a bug that causes R11 to be zero on return to
userland. Remove the extra "save" of R11 responsible for the bug.
Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
---
diff -uprN a/arch/microblaze/kernel/entry-nommu.S b/arch/microblaze/kernel/entry-nommu.S
--- a/arch/microblaze/kernel/entry-nommu.S 2009-12-09 17:05:11.000000000 -0600
+++ b/arch/microblaze/kernel/entry-nommu.S 2009-12-09 17:07:31.000000000 -0600
@@ -208,7 +208,6 @@ ENTRY(_user_exception)
lwi r1, r1, TS_THREAD_INFO /* get the thread info */
/* calculate kernel stack pointer */
addik r1, r1, THREAD_SIZE - PT_SIZE
- swi r11, r0, PER_CPU(R11_SAVE) /* temporarily save r11 */
lwi r11, r0, PER_CPU(KM) /* load mode indicator */
2:
swi r11, r1, PT_MODE /* store the mode */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] microblaze: nommu: Don't clobber R11 on syscalls
2009-12-09 23:13 [PATCH] microblaze: nommu: Don't clobber R11 on syscalls steve
@ 2009-12-10 7:31 ` Michal Simek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2009-12-10 7:31 UTC (permalink / raw)
To: steve; +Cc: microblaze-uclinux, linux-kernel
Hi Steve,
steve@digidescorp.com wrote:
> The noMMU syscall trap has a bug that causes R11 to be zero on return to
> userland. Remove the extra "save" of R11 responsible for the bug.
Can you please look if is even possible to remove that one line below?
( I mean line 212 - lwi r11, r0, PER_CPU(KM) */
Interrupt rutine don't have it too. I am pretty sure that we can remove
that line too.
Thanks for testing,
Michal
>
> Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
> ---
> diff -uprN a/arch/microblaze/kernel/entry-nommu.S b/arch/microblaze/kernel/entry-nommu.S
> --- a/arch/microblaze/kernel/entry-nommu.S 2009-12-09 17:05:11.000000000 -0600
> +++ b/arch/microblaze/kernel/entry-nommu.S 2009-12-09 17:07:31.000000000 -0600
> @@ -208,7 +208,6 @@ ENTRY(_user_exception)
> lwi r1, r1, TS_THREAD_INFO /* get the thread info */
> /* calculate kernel stack pointer */
> addik r1, r1, THREAD_SIZE - PT_SIZE
> - swi r11, r0, PER_CPU(R11_SAVE) /* temporarily save r11 */
> lwi r11, r0, PER_CPU(KM) /* load mode indicator */
> 2:
> swi r11, r1, PT_MODE /* store the mode */
>
--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-10 7:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-09 23:13 [PATCH] microblaze: nommu: Don't clobber R11 on syscalls steve
2009-12-10 7:31 ` Michal Simek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox