OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Apr 24, 2024 2:37 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Switching to protected mode?
PostPosted: Sun Mar 25, 2001 12:00 am 
Where would be the best place to switch to PMODE?
The kernel itself? If you do switch to pmode in kernel
I am confused because the kernel persumably would have been written to run PMODE.
Is this right or am I just a fool?
Would I be right in thinking that NASM produces PMODE
files?

Also could some one lease describe what is the difference
between a bootloader and boot strap???

Forgive me if these questions sound stupid but everyone has to start somewhere.
Chris.


Top
  
 
 Post subject: RE:Switching to protected mode?
PostPosted: Sun Mar 25, 2001 12:00 am 
>On 2001-03-25 07:29:37, Chris Tomlinson wrote:
>Where would be the best place to switch to PMODE?
>The kernel itself?

Maybe the second-stage bootloader. GRUB will
switch to pmode before jumping to the kernel; so
will Alexei Frounze's loader. There are some
problems mixing 16- and 32-bit code in one
executable file.

>Would I be right in thinking that NASM produces PMODE
>files?

NASM will make 16-bit real mode code or 32-bit
pmode code.

>Also could some one lease describe what is the difference
>between a bootloader and boot strap???

I don't see an obvious difference between these
two terms.

--
geezer@ | pmode tutorial, homebrew OS:
execpc.com | http://www.execpc.com/~geezer/os


Top
  
 
 Post subject: RE:Switching to protected mode?
PostPosted: Wed Jan 09, 2002 12:00 am 
>On 2001-03-25 07:29:37, Chris Tomlinson wrote:

>Also could some one lease describe what is the difference
>between a bootloader and boot strap???

They are the same thing. The full, original term
was 'bootstrap loader', which comes from the old
expression of 'pulling yourself up by your
bootstraps' - that is to say, to start off with
no visible means of support. A bootstrap loader
does something normally impossible - starts
running software when no software is there to be
run - because it cheats a bit - the software that
is running is a hardwired part of the ROM BIOS.

Older systems had various other hacks to let the
system load a program when the hardware started -
for example, some PDP-8s (IRRC) started up a
paper tape reader automatically, and many early
computers had toggles switches with which you'd
enter the bootstrap software manually, and the
processor only started after you hit a Go button.
One of the reasons ferrite-core memories were
such a success in the 1960s was because they were
persistent - as long as nothing had caused it
to clear itself, the system code would still be
ready to run when the computer was turned on.


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], deblokc, Google [Bot] and 106 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group