shithub: riscv

Download patch

ref: b4bcc761bce6e818e554d8726ea8fe81bed37396
parent: e3277b466076029e4b951a4a4b14002d4c25b653
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Jul 8 08:40:31 EDT 2023

pc64: no need to _stts() in squidboy()

FPU is already disabled by cpuidentify() -> fpuinit(),
fpuprocrestore() disables FPU when switching to
a process.

--- a/sys/src/9/pc64/squidboy.c
+++ b/sys/src/9/pc64/squidboy.c
@@ -8,8 +8,6 @@
 
 #include "mp.h"
 
-extern void _stts(void);
-
 static void
 squidboy(Apic* apic)
 {
@@ -25,7 +23,6 @@
 	lapicinit(apic);
 	lapiconline();
 	timersinit();
-	_stts();
 	schedinit();
 }