lkml.org 
[lkml]   [2005]   [Jun]   [30]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 30 Jun 2005 09:11:01 +0200
FromIngo Molnar <>
SubjectRe: Handle kernel page faults using task gate
* eliad lubovsky <eliadl@013.net> wrote:

> How do I clear the 'busy' bit?
> I set my TSS descriptor with
> __set_tss_desc(cpu, GDT_ENTRY_PAGE_FAULT_TSS, &pagefault_tss);

i suspect you have to clear the busy bit in the pagefault handler 
itself. The CPU marks it as busy upon fault. I guess it would be OK to 
just do the above __set_tss_desc() for _every_ pagefault, that too will 
clear the busy bit, but you are probably better off just clearing that 
bit manually:

    cpu_gdt_table[cpu][GDT_ENTRY_TSS].b &= 0xfffffdff;
	Ingo
-
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-06-30 07:14    [from the cache]
©2003-2008