* Cleanup, no functional change.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33951 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-11-08 17:31:39 +00:00
parent 9a72152e73
commit 01ce3f26d2
2 changed files with 44 additions and 49 deletions
+5 -5
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2005, Axel Dörfler, [email protected]. All rights reserved.
* Copyright 2005-2009, Axel Dörfler, [email protected].
* Distributed under the terms of the MIT License.
*/
#ifndef _KERNEL_ARCH_x86_INT_H
@@ -25,14 +25,14 @@ arch_int_disable_interrupts_inline(void)
asm volatile("pushfl;\n"
"popl %0;\n"
"cli" : "=g" (flags));
return flags & 0x200 ? 1 : 0;
return (flags & 0x200) != 0;
}
static inline void
arch_int_restore_interrupts_inline(int oldstate)
arch_int_restore_interrupts_inline(int oldState)
{
int flags = oldstate ? 0x200 : 0;
int flags = oldState ? 0x200 : 0;
asm volatile("pushfl;\n"
"popl %0;\n"
@@ -51,7 +51,7 @@ arch_int_are_interrupts_enabled_inline(void)
asm volatile("pushfl;\n"
"popl %0;\n" : "=g" (flags));
return flags & 0x200 ? 1 : 0;
return (flags & 0x200) != 0;
}