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!
This commit is contained in:
rin 2021-03-14 03:25:01 +00:00
parent 482f9a49eb
commit eb13d3e4ac
1 changed files with 11 additions and 11 deletions

View File

@ -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 @@ Lstart3:
#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