This patch is against 2.1.5 *only*. I do not "believe in" putting
out development patches for release kernels. 2.0.x works quite well
enough without this, thank you.
This incorporates any good bits of the other Cyrix patches I found
useful. Recognition of Cyrix processors is added. If Cyrix recognition
is not selected in the kernel config the code will recognise the
chip as a Cyrix of some description but may get no further if the
BIOS doesn't enable CPUID. If Cyrix recognition is selected checks
are done to fully identify the chip. The /proc/cpuinfo description
is correct for 5x86 and 6x86 chips but not all flavours of Cx486
are fully described - there seems no way to build a compact description
table for them, sorry.
If the chip is a 6x86 the variable size paging mechanism is used
to map kernel space. Note that testing suggests that there is
strangeness related to VSPM (at least with my chip) - this would
toast previous patches with different sized memory banks (12MB, 24MB
etc. of memory for instance). This code contains workarounds (and
comments!) mixing VSPM and traditional paging if necessary. This
reduces the performance advantage slightly for people with memory
sizes that are not a power of two but most people get the full
benefit of VSPM.
Like the Pentium optimisations, VSPM usage is disabled for SMP
kernels. It seems only a slight reorganisation would be needed to
enable it (move the check for non-boot processor from _around_
the call to paging_init() to _within_ paging_init() after VSPM
is set up?). Can you use 6x86s on an SMP board?
Oh yeah, if Cyrix recognition is enabled the code also turns on
SUSP_HALT and DTE_EN as well as CPUID in case the BIOS didn't know
to or didn't bother to.
Anyway, the patch, Boss! The patch is coming!
begin 644 cx.patch.gz
M'XL("!XZ:S(``V-X+G!A=&-H`,5;>W/:R++_&SY%+UEO3'@*,,9XG:QCDQS?
M8R>4<3:[-TE10AI`:R&I]+#AG.2[W^Z>&2%>CKU;E4OM8B1U]_3T\S>CR85G
MBWD7SGTKF0DO-F/']VIGOC=V)DDHJE/A!OF3?_[)7Y\-8.RXH@NU.]^M1;9Y
M4#O[?5!S'2^9UQX:OGR7#T4<.N+.\280XI\(B<"H&M5&M9&WG?$8*@E40G4'
MUK2O5"IKMW+&T5&[9M1K]2-HU+L'G6Z]F=/R2J72+O)&'8QF]^"P:[3SO_T&
ME>9AYZ#<AA+_-=KPVV]Y@#53.I'MU:Y[I^=7/3`]>_?3:F"-G!C&?DA"9GXH
M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[G3*1@/]?&B4#7E^0,K<Y"!PSE)O3E]?]JB4
MK72W8JKQL=(*.6DMHFU`6:+>#Z8JTRE1^2]'LO:0AP<?F!TO$O03N;E)X;Z/
MZQ3JPG!,*Q;T=-9/\F:I5-9\I1*U<=XQ9;GXC<RSVR'^T'%4EF[_=^_Z7>^2
M:M+3(YU#7<?1,O@(8.B[V(!7&S0IQ.:/15'!BF?I>BXK+\L).SDY%'DI*&*>
7G39!F2:M-H>WA;K*\_\#X?$CA-$V``"/
`
end
-- .----------------------------------------------------------------------. | Mike Jagdis | Internet: mailto:mike@roan.co.uk | | Roan Technology Ltd. | | | 54A Peach Street, Wokingham | Telephone: +44 118 989 0403 | | RG40 1XG, ENGLAND | Fax: +44 118 989 1195 | `----------------------------------------------------------------------'