Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mac68k/mac68k Fix DJMEMCMAX option for Quadra/Centr...



details:   https://anonhg.NetBSD.org/src/rev/046786d293fb
branches:  trunk
changeset: 953602:046786d293fb
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Mar 14 03:25:01 2021 +0000

description:
Fix DJMEMCMAX option for Quadra/Centris 650/800.

- Use jeq instead of jra for conditional branch.
- Use cmpl instead of cmp (= cmpw) for int variables.

Now, my Quadra 800 recognizes full 520MB memory!

diffstat:

 sys/arch/mac68k/mac68k/locore.s |  22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diffs (36 lines):

diff -r d4802bd397a3 -r 046786d293fb sys/arch/mac68k/mac68k/locore.s
--- a/sys/arch/mac68k/mac68k/locore.s   Sun Mar 14 03:14:42 2021 +0000
+++ b/sys/arch/mac68k/mac68k/locore.s   Sun Mar 14 03:25:01 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.173 2020/07/21 06:10:26 rin Exp $ */
+/*     $NetBSD: locore.s,v 1.174 2021/03/14 03:25:01 rin Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -275,16 +275,16 @@
 
 #if defined(DJMEMCMAX)
        movl    %a3,%sp@-
-       cmp     #MACH_MACC610,_C_LABEL(machineid)
-       jra     Ldjmemc610
-       cmp     #MACH_MACQ610,_C_LABEL(machineid)
-       jra     Ldjmemc610
-       cmp     #MACH_MACC650,_C_LABEL(machineid)
-       jra     Ldjmemccfg
-       cmp     #MACH_MACQ650,_C_LABEL(machineid)
-       jra     Ldjmemccfg
-       cmp     #MACH_MACQ800,_C_LABEL(machineid)
-       jra     Ldjmemccfg
+       cmpl    #MACH_MACC610,_C_LABEL(machineid)
+       jeq     Ldjmemc610
+       cmpl    #MACH_MACQ610,_C_LABEL(machineid)
+       jeq     Ldjmemc610
+       cmpl    #MACH_MACC650,_C_LABEL(machineid)
+       jeq     Ldjmemccfg
+       cmpl    #MACH_MACQ650,_C_LABEL(machineid)
+       jeq     Ldjmemccfg
+       cmpl    #MACH_MACQ800,_C_LABEL(machineid)
+       jeq     Ldjmemccfg
 
        jra     Lnodjmemc
        



Home | Main Index | Thread Index | Old Index