i used the following statement to reboot the system.
reboot(0x4321fedc);
can any one give an idea , what is happing internally.