RE: Premptive vs non-premptive kernel.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2004-06-25 at 20:28 +0530, Dhiman, Gaurav wrote:

> But please explain bit more about return path of any interrupt and how
> does it exactly checks if the control is returning to user or kernel
> mode. It would be nice if you can specify the file and location in file
> where we can find this interrupt returning code.

Read the source!

arch/i386/kernel/entry.S

See the ret_from_intr path.  There is a comparison like:

	testl $(VM_MASK | 3), %eax

And then a corresponding jump to either resume_kernel or
resume_userspace.

	Robert Love



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux