* Re: [PATCH] m68k/sun3: Fix virtual addresses of clock and interrupt register
[not found] <1442223611-30175-1-git-send-email-kuleshovmail@gmail.com>
@ 2015-09-25 7:21 ` Geert Uytterhoeven
2015-09-25 7:50 ` Alexander Kuleshov
2015-09-25 10:45 ` Tom Bogendoerfer
0 siblings, 2 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2015-09-25 7:21 UTC (permalink / raw)
To: Alexander Kuleshov; +Cc: Sam Creasey, linux-m68k, linux-kernel@vger.kernel.org
Hi Alexander,
On Mon, Sep 14, 2015 at 11:40 AM, Alexander Kuleshov
<kuleshovmail@gmail.com> wrote:
> The MMU base is 32 bits size - 0xfe000000, seems that we missed
> one zero in the definition of the clock and interrupt register
> addresses.
Thanks for your patch!
Have you tested this?
This means enabling/disabling interrupts never worked on Sun 3, which
I find a bit difficult to believe.
There are other 0x0f?????? addresses in arch/m68k/sun3/mmu_emu.c.
> Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
> ---
> arch/m68k/sun3/config.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/m68k/sun3/config.c b/arch/m68k/sun3/config.c
> index a8b942b..c9c388f 100644
> --- a/arch/m68k/sun3/config.c
> +++ b/arch/m68k/sun3/config.c
> @@ -61,8 +61,8 @@ void __init sun3_init(void)
> m68k_cputype = CPU_68020;
> m68k_fputype = FPU_68881; /* mc68881 actually */
> m68k_mmutype = MMU_SUN3;
> - clock_va = (char *) 0xfe06000; /* dark */
> - sun3_intreg = (unsigned char *) 0xfe0a000; /* magic */
> + clock_va = (char *) 0xfe006000; /* dark */
> + sun3_intreg = (unsigned char *) 0xfe00a000; /* magic */
> sun3_disable_interrupts();
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] m68k/sun3: Fix virtual addresses of clock and interrupt register
2015-09-25 7:21 ` [PATCH] m68k/sun3: Fix virtual addresses of clock and interrupt register Geert Uytterhoeven
@ 2015-09-25 7:50 ` Alexander Kuleshov
2015-09-25 10:45 ` Tom Bogendoerfer
1 sibling, 0 replies; 4+ messages in thread
From: Alexander Kuleshov @ 2015-09-25 7:50 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Sam Creasey, linux-m68k, linux-kernel@vger.kernel.org
Hello Geert
On Fri, Sep 25, 2015 at 1:21 PM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> Have you tested this?
>
> This means enabling/disabling interrupts never worked on Sun 3, which
> I find a bit difficult to believe.
> There are other 0x0f?????? addresses in arch/m68k/sun3/mmu_emu.c.
>
Nope, just trying to do it in virtual machine, I'm learning sun3
architecture now
and have some cleanups patches for it. I'll send these patches and provide more
feedback when I'm able to test it.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] m68k/sun3: Fix virtual addresses of clock and interrupt register
2015-09-25 7:21 ` [PATCH] m68k/sun3: Fix virtual addresses of clock and interrupt register Geert Uytterhoeven
2015-09-25 7:50 ` Alexander Kuleshov
@ 2015-09-25 10:45 ` Tom Bogendoerfer
1 sibling, 0 replies; 4+ messages in thread
From: Tom Bogendoerfer @ 2015-09-25 10:45 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Alexander Kuleshov, Sam Creasey, linux-m68k,
linux-kernel@vger.kernel.org
On Fri, Sep 25, 2015 at 09:21:34AM +0200, Geert Uytterhoeven wrote:
> On Mon, Sep 14, 2015 at 11:40 AM, Alexander Kuleshov
> <kuleshovmail@gmail.com> wrote:
> > The MMU base is 32 bits size - 0xfe000000, seems that we missed
> > one zero in the definition of the clock and interrupt register
> > addresses.
>
> Thanks for your patch!
>
> Have you tested this?
>
> This means enabling/disabling interrupts never worked on Sun 3, which
> I find a bit difficult to believe.
> There are other 0x0f?????? addresses in arch/m68k/sun3/mmu_emu.c.
which are the correct one. Sun3 MMU doesn't even handle full 32bit
addresses, it's only capable of 28 bits. That's the reason why normal
m68k linux user space binaries can't work.
So this patch is broken. And I'm sure the unpatched version works.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] m68k/sun3: Fix virtual addresses of clock and interrupt register
@ 2015-09-14 9:40 Alexander Kuleshov
0 siblings, 0 replies; 4+ messages in thread
From: Alexander Kuleshov @ 2015-09-14 9:40 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Sam Creasey, linux-m68k, linux-kernel, Alexander Kuleshov
The MMU base is 32 bits size - 0xfe000000, seems that we missed
one zero in the definition of the clock and interrupt register
addresses.
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
arch/m68k/sun3/config.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/m68k/sun3/config.c b/arch/m68k/sun3/config.c
index a8b942b..c9c388f 100644
--- a/arch/m68k/sun3/config.c
+++ b/arch/m68k/sun3/config.c
@@ -61,8 +61,8 @@ void __init sun3_init(void)
m68k_cputype = CPU_68020;
m68k_fputype = FPU_68881; /* mc68881 actually */
m68k_mmutype = MMU_SUN3;
- clock_va = (char *) 0xfe06000; /* dark */
- sun3_intreg = (unsigned char *) 0xfe0a000; /* magic */
+ clock_va = (char *) 0xfe006000; /* dark */
+ sun3_intreg = (unsigned char *) 0xfe00a000; /* magic */
sun3_disable_interrupts();
prom_init((void *)LINUX_OPPROM_BEGVM);
--
2.5.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-09-25 10:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1442223611-30175-1-git-send-email-kuleshovmail@gmail.com>
2015-09-25 7:21 ` [PATCH] m68k/sun3: Fix virtual addresses of clock and interrupt register Geert Uytterhoeven
2015-09-25 7:50 ` Alexander Kuleshov
2015-09-25 10:45 ` Tom Bogendoerfer
2015-09-14 9:40 Alexander Kuleshov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox