how linux reboot works

From: gopan (gop_kumar_at_hotmail.com)
Date: 03/19/04


Date: 19 Mar 2004 04:57:29 -0800

Hi,
          In linux, to reboot (warm) the machine, first we switch to
real mode and jump to 0xf000:0xfff0, in real mode this gives the
physical address 0xffff0, but the BIOS is mapped to 0xfffffff0, then
how this work?

I know that when the processor is switched on, address lines A20-A31
are artifitially boosted so that BIOS can be accessed, but this
artifitial boosting lasts only till the CS is changed right? then in
the above case how exactly is the BIOS code accessed ?

 regards,
  
 Gop



Relevant Pages

  • Re: BIOS
    ... > I guess that coding assembly in Linux is different because ... > What is I only use the BIOS functions? ... the machine acts like "real mode" but is also in "protected mode" at ... Unfortunately, unlike the BIOS, no "standard" was ever agreed...device ...
    (alt.lang.asm)
  • Re: [PATCH 1/2] OLPC: Add support for calling into Open Firmware
    ... When the kernel calls into the BIOS, it has to do a grotesque dance that involves jumping through a chain of several segments of different flavors, thus gradually shutting down the multi-tiered address translation mechanism. ... Then, if the BIOS is actually operating in protected mode, it has to perform the inverse process, do the requested work, then go back into real mode to return to the kernel. ... f) Switching from protected mode to real mode (or in some cases, V86 mode instead, which requires an additional Task State Segment dance to set the IO permission mask) ...
    (Linux-Kernel)
  • Re: maximum hard drive size in Latitude cpi
    ... >>> to bios are a well known problem ... >>in real mode (I don't know why ... ... >>how big the disk is, then carries that info over to the multitasking o/s ...
    (comp.sys.laptops)
  • Re: Option ROM - Real Mode - PCI BAR
    ... I have a disk emulator called MEMDISK, which stashes the virtual disk in ... The problem here is that some software may expect the BIOS and option ... ROMs to contain "real mode only" code, and might use the GDT and/or ... if your option ROM attempts to use protected mode then the OS is ...
    (comp.lang.asm.x86)
  • Re: maximum hard drive size in Latitude cpi
    ... If you don't grok "bios is not used in disk i/o" you ... What I daresay is happening is that the win o/s starts up with the cpu ... in real mode (I don't know why ... ...
    (comp.sys.laptops)