mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-20 00:26:39 +08:00
sparc32/leon: FPU-FSR only available when FPU present
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7279b82cb1
commit
2666e47602
@ -324,7 +324,7 @@ void __cpuinit cpu_probe(void)
|
||||
psr = get_psr();
|
||||
put_psr(psr | PSR_EF);
|
||||
#ifdef CONFIG_SPARC_LEON
|
||||
fpu_vers = 7;
|
||||
fpu_vers = get_psr() & PSR_EF ? ((get_fsr() >> 17) & 0x7) : 7;
|
||||
#else
|
||||
fpu_vers = ((get_fsr() >> 17) & 0x7);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user