cosmetic changes
This commit is contained in:
parent
19cfc735e2
commit
cdba322d9b
1 changed files with 2 additions and 4 deletions
|
@ -54,8 +54,7 @@ inline static uint32_t irq_nested_disable(void) {
|
|||
uint32_t flags;
|
||||
asm volatile("pushf; cli; popl %0": "=r"(flags) : : "memory");
|
||||
if (flags & (1 << 9))
|
||||
return 1;
|
||||
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -72,9 +71,8 @@ inline static void irq_enable(void) {
|
|||
* @param flags Flags to set. Could be the old ones you got from irq_nested_disable.
|
||||
*/
|
||||
inline static void irq_nested_enable(uint32_t flags) {
|
||||
if (flags) {
|
||||
if (flags)
|
||||
irq_enable();
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Add table
Reference in a new issue