2015-08-15 02:13:25 +08:00
|
|
|
Title: Shared Floating Point Support
|
2015-04-11 07:44:37 +08:00
|
|
|
|
|
|
|
Description:
|
|
|
|
|
|
|
|
This test uses the background task and a fiber to independently load and
|
|
|
|
store floating point registers and check for corruption. This tests the
|
|
|
|
ability of contexts to safely share floating point hardware resources, even
|
|
|
|
when switching occurs preemptively.
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
Building and Running Project:
|
|
|
|
|
|
|
|
This nanokernel project outputs to the console. It can be built and executed
|
|
|
|
on QEMU as follows:
|
|
|
|
|
2015-06-06 09:49:48 +08:00
|
|
|
make qemu
|
2015-04-11 07:44:37 +08:00
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
2015-06-01 22:30:09 +08:00
|
|
|
Troubleshooting:
|
|
|
|
|
|
|
|
Problems caused by out-dated project information can be addressed by
|
|
|
|
issuing one of the following commands then rebuilding the project:
|
|
|
|
|
|
|
|
make clean # discard results of previous builds
|
|
|
|
# but keep existing configuration info
|
|
|
|
or
|
|
|
|
make pristine # discard results of previous builds
|
|
|
|
# and restore pre-defined configuration info
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
2015-04-11 07:44:37 +08:00
|
|
|
Sample Output:
|
|
|
|
|
|
|
|
Floating point sharing tests started
|
|
|
|
===================================================================
|
|
|
|
Load and store OK after 100 (high) + 83270 (low) tests
|
|
|
|
Load and store OK after 200 (high) + 164234 (low) tests
|
|
|
|
Load and store OK after 300 (high) + 245956 (low) tests
|
|
|
|
Load and store OK after 400 (high) + 330408 (low) tests
|
|
|
|
Load and store OK after 500 (high) + 411981 (low) tests
|
|
|
|
===================================================================
|
2015-06-05 20:24:47 +08:00
|
|
|
PROJECT EXECUTION SUCCESSFUL
|