Thread (1 message) 1 message, 1 author, 2007-12-13

Re: [PATCH 19/19] unify set_tss_desc

From: Glauber de Oliveira Costa <hidden>
Date: 2007-12-13 14:52:23
Also in: lkml

Andi Kleen wrote:
quoted
+static inline void pack_tss(tss_desc *tss, unsigned long addr,
+			   unsigned size, unsigned entry)
+{
+#ifdef CONFIG_X86_64
+		set_tssldt_descriptor(tss,
+			     addr, entry, size);
+#else
+		pack_descriptor(tss, (unsigned long)addr,
+				size,
+				0x80 | entry, 0);
It would be better if you just unified that first instead of ifdef'ing.
I guess i386 could get a set_tssldt_descriptor() like wrapper
around pack_descriptor(). 
Good point.

Thanks, Andi.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help