Port-amiga archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [PATCH] Fixup for Amigas with memory at 0x200000
On Wed Jan 08 2003 at 21:27:20 +0100, Aymeric Vincent wrote:
> +LMMUenable_start:
> +
> +/* enable the MMU */
> +#if defined(M68040) || defined(M68060)
> + RELOC(mmutype, %a0)
> + cmpl #MMU_68040,%a0@
> + jne Lenable030
> + pflusha
> + movl #0xc000,%d0
> + .word 0x4e7b, 0x0003 | movec %d0,%tc
> + jmp Lunshadow:l
> +#endif /* M68040 || M68060 */
> +/* ENABLE, SRP_ENABLE, 8K pages, 8bit A-level, 11bit B-level */
> +Ltc: .long 0x82d08b00
> +Lenable030:
> + lea Ltc,%a0
> + pmove %a0@,%tc
> jmp Lunshadow:l
>
> +LMMUenable_end:
Btw isn't there a bug here if neither M68040 or M68060 is defined?
If either is defined, what you execute (on a '030) is
RELOC(mmutype, %a0)
cmpl #MMU_68040,%a0@
jne Lenable030
lea Ltc,%a0
...
If neither is defined, what you execute is
.long 0x82d08b00
lea Ltc,%a0
...
Which seems wrong to me.
--
Ilpo Ruotsalainen - <lonewolf%iki.fi@localhost> - http://www.iki.fi/lonewolf/
Home |
Main Index |
Thread Index |
Old Index