Commit 52c885b4 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Experiment with FPU traps

parent 17b5906f
......@@ -4,6 +4,7 @@
*/
#define CONFIGURE_INIT
#define TASKS 2
#define DEFINE_VARS
#include "system.h"
#include "printk.h"
......
......@@ -6,6 +6,12 @@ rtems_task Task1_EntryPoint(rtems_task_argument argument)
int task_no = (int) argument;
printk("Inside task %d...\n", task_no);
double a = 1.79769313486e+308;
printk("BIG: %f\n", a);
printk("BIGGER: %f\n", a/0.2);
printk("What is 1.0/max? %f\n", (1.0/a));
printk("What is 0.0/0.0? %f\n", (0.0/(1.0/a)));
int j;
double d=task_no;
for(j=0; j<10000; j++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment