Thread: Virtual memory in user space (Operting Systems)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #15
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Quote Originally Posted by Elysia View Post
    Wouldn't a similar approach for a disk driver be possible?
    I don't think so.

    Quote Originally Posted by wiki Kernel
    In most cases, the boot loader starts executing the kernel in supervisor mode.[8]
    Quote Originally Posted by wiki "Supervisor mode"
    In computer terms supervisor mode is a hardware-mediated flag which can be changed by code running in system-level software. System-level tasks or threads will have this flag set while they are running, whereas user-space applications will not. This flag determines whether it would be possible to execute machine code operations such as modifying registers for various descriptor tables, or performing operations such as disabling interrupts. The idea of having two different modes to operate in comes from “with more control comes more responsibility” — a program in supervisor mode is trusted never to fail, since a failure may cause the whole computer system to crash.

    Supervisor mode is “An execution mode on some processors which enables execution of all instructions, including privileged instructions. It may also give access to a different address space, to memory management hardware and to other peripherals. This is the mode in which the operating system usually runs.”
    Like I said before, a hard disk doesn't have to have an OS on it, but if it does it ought to run its driver in kernel space, otherwise the very device that contains the OS is not part of the kernel and that makes no sense. Learning how your computer boots may help you answer some of your own questions.
    Last edited by whiteflags; 05-04-2011 at 04:31 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. NUMA Virtual Adress Space / Physical Adress Space
    By NUMA Orly in forum Windows Programming
    Replies: 0
    Last Post: 03-14-2011, 03:19 AM
  2. Max Out Virtual Memory Space
    By newbe in forum Windows Programming
    Replies: 0
    Last Post: 05-06-2010, 10:46 AM
  3. user space control for device driver
    By itisravi in forum Linux Programming
    Replies: 5
    Last Post: 03-02-2010, 02:17 PM
  4. Replies: 2
    Last Post: 09-28-2006, 01:06 PM
  5. space problem with user input
    By codebrawler in forum C++ Programming
    Replies: 5
    Last Post: 01-08-2006, 02:01 PM