summaryrefslogtreecommitdiff
path: root/sys/src/9/teg2/softfpu.c
diff options
context:
space:
mode:
authorjpathy <jpathy@mail.nanosouffle.net>2013-06-10 18:07:16 +0530
committerjpathy <jpathy@mail.nanosouffle.net>2013-06-10 18:07:16 +0530
commitde463408482b3d1e5c361866ac7500c07c5f4e96 (patch)
tree9c549e05c063bc3b3ad86a8089db2993feadcca9 /sys/src/9/teg2/softfpu.c
parent686f9fa1db8c6f12d86f186cd141485eadaae15e (diff)
ARM: kernel changes make teg2 procfork() call fpuprocfork() and acid fixes for vfp instruction
Diffstat (limited to 'sys/src/9/teg2/softfpu.c')
-rw-r--r--sys/src/9/teg2/softfpu.c31
1 files changed, 20 insertions, 11 deletions
diff --git a/sys/src/9/teg2/softfpu.c b/sys/src/9/teg2/softfpu.c
index 0966bc18a..fc27b92c8 100644
--- a/sys/src/9/teg2/softfpu.c
+++ b/sys/src/9/teg2/softfpu.c
@@ -42,25 +42,34 @@ fpunoted(void)
}
void
-fpuprocsave(Proc*)
+fpuprocrestore(Proc*)
{
/*
- * Called from sched() and sleep() via the machine-dependent
- * procsave() routine.
- * About to go in to the scheduler.
- * If the process wasn't using the FPU
- * there's nothing to do.
+ * The process has been rescheduled and is about to run.
+ * Nothing to do here right now. If the process tries to use
+ * the FPU again it will cause a Device Not Available
+ * exception and the state will then be restored.
*/
}
void
-fpuprocrestore(Proc*)
+fpuprocfork(Proc*)
{
/*
- * The process has been rescheduled and is about to run.
- * Nothing to do here right now. If the process tries to use
- * the FPU again it will cause a Device Not Available
- * exception and the state will then be restored.
+ * The current process has been forked, save and copy neccesary
+ * state to child. Nothing to do here, child proc starts with FPinit.
+ */
+}
+
+void
+fpuprocsave(Proc*)
+{
+ /*
+ * Called from sched() and sleep() via the machine-dependent
+ * procsave() routine.
+ * About to go in to the scheduler.
+ * If the process wasn't using the FPU
+ * there's nothing to do.
*/
}