Hi,

I just can't understand what is happening.

The above code on my driver initialization gives the following results.

        start_time = rtdm_clock_read();
        rtdm_task_busy_sleep(43000);
        temp_time = rtdm_clock_read();
           rtdm_printk(KERN_INFO "%u - %u = %u\n",(unsigned int) temp_time, 
(unsigned 
int) start_time, (unsigned int) (temp_time-start_time));

           rtdm_printk(KERN_INFO "%u - %u = %u\n",(unsigned int) 
(temp_time&0xffffffff), (unsigned int) start_time&0xffffffff, (unsigned int) 
((temp_time-start_time)&0xffffffff));


As I expected, both printk gave the same (wrong?) result:
3175950208 - 2800623168 = 375327040

I was waiting something near to 43000, shouldn't I?

Please, can someone explain me what is going on...

Thanks,

Rodrigo.

        

        
                
_______________________________________________________ 
Yahoo! doce lar. Faça do Yahoo! sua homepage. 
http://br.yahoo.com/homepageset.html 



_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to