Skip to contentSkip to conversation

x86: Update comment regarding __fixup_if

PATCH New Jan Kiszka 1 participant 1 message Apr 26, 2010 x86

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 x86: Update comment regarding __fixup_if

Properly reflect the changes ed2e37c brought.

---
 arch/x86/kernel/ipipe.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
arch/x86/kernel/ipipe.c +6 -5
index 116fee7..9425fbd 100644
@@ -749,11 +749,12 @@ int __ipipe_handle_exception(struct pt_regs *regs, long error_code, int vector)
 
 	if (likely(ipipe_root_domain_p)) {
 		/*
-		 * In case we faulted in the iret path, regs.flags do not
-		 * match the root domain state. The fault handler or the
-		 * low-level return code may evaluate it. Fix this up, either
-		 * by the root state sampled on entry or, if we migrated to
-		 * root, with the current state.
+		 * If root is not the topmost domain or in case we faulted in
+		 * the iret path of x86-32, regs.flags does not match the root
+		 * domain state. The fault handler or the low-level return
+		 * code may evaluate it. So fix this up, either by the root
+		 * state sampled on entry or, if we migrated to root, with the
+		 * current state.
 		 */
 		__fixup_if(root_entry ? raw_irqs_disabled_flags(flags) :
 					raw_irqs_disabled(), regs);