lkml.org 
[lkml]   [2004]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: task switching at Page Faults
From
Date
Fabiano Ramos <ramos_fabiano@yahoo.com.br> writes:
> kernel", about 2.4, and the authors:
> 1)assure that there is no process switch during
> the execution of an eception handler (aka syscall).
> they emphasize it.

They're wrong. First the system call or exception can
block and then when kernel code returns to user space
it always checks if the time slice hasn't expired.

> 2) say that the execption handler may not generate
> exceptions, except for page faults.

That's also incorrect. e.g. it can generate GPFs
(e.g. when trying to load a segment register supplied
by the user and it is not correct)
and a few other exceptions in extreme cases. Usually
these exceptions are handled without sleeping though.

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.023 / U:0.872 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site