At 08:45 25.07.2003 +0530, S Mohan wrote:
Eric:
init 6 invokes reboot with the arguements, is it? or giving reboot -d -f -i does the job without keyboard controller?
I had a look at the reboot (halt) code..
-i forces the network interfaces down by issuing an ifdown call -f forces a hard shutdown but does not really anything significant in the code -d inhibits writing of a wtmp record
none of these have anything to do with the actual reboot system call, so no luck.
looking at the code the follwing is apparent
reboot is called with the magic 0x01234567 which according to the docs should result in
LINUX_REBOOT_CMD_RESTART
(RB_AUTOBOOT, 0x1234567). The message `Restarting
system.' is printed, and a default restart is per-
formed immediately. If not preceded by a sync(2),
data will be lost.digging deeper into the kernel this finally goes to process.c which tries to reset.
this is from process.c......
if(!reboot_thru_bios) {
/* rebooting needs to touch the page at absolute addr 0 */
*((unsigned short *)__va(0x472)) = reboot_mode;
for (;;) {
int i;
for (i=0; i<100; i++) {
kb_wait();
udelay(50);
outb(0xfe,0x64); /* pulse reset low */
udelay(50);
}
/* That didn't work - force a triple fault.. */
__asm__ __volatile__("lidt %0": :"m" (no_idt));
__asm__ __volatile__("int3");
}
}machine_real_restart(jump_to_bios, sizeof(jump_to_bios));
the call to kb_wait() seems to indicate that in the case of a hard reboot (!reboot_thru_bios) the keyboard plays a role.
If anyone has a deeper insight what exactly this system call will do please holler.
Thanks
Erich
THINK P�ntenstrasse 39 8143 Stallikon mailto:[EMAIL PROTECTED] PGP Fingerprint: BC9A 25BC 3954 3BC8 C024 8D8A B7D4 FF9D 05B8 0A16
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel
