I'm with a problem using LTIB 20080811, kernel 2.6.25 with compiler 4.2-125. I wrote a program that make simple calculations.
The source code follows below:
static float misc_calculations();
int main(int argc, const char * argv)
float reference = misc_calculations();
printf("Reference: %f\n", reference);
float value = misc_calculations();
if (value != reference)
printf("Value: %f\n", value);
static float misc_calculations()
const float float_a = .2;
const float float_b = .152;
float result = 0.0;
result = float_a – float_b;
When I execute two instances, the behavior is very strange.
This problem occurs when I run two process. Only one process, it's executed OK, but when you execute a top program, the errors also appear.
In kernel, I checked the definition CONFIG_FPU. I created the definition, but the result is still the same. For me, the problem is concurrency between process and the kernel is not saving the context.
I used another options as -msoft-float, -mcfv4e and -mcpu=5485.
Anyone ever had this problem?
Leandro dos Santos