diff options
author | Richard Braun <rbraun@sceen.net> | 2013-05-15 22:34:54 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2013-05-15 22:34:54 +0200 |
commit | cf572e25ec9bf2d56c1fef5eeced991dff72db5d (patch) | |
tree | b09509d8fc69cd90c2a37052e3f9c40780d7c211 /kern/spinlock.h | |
parent | 5abf84415cb501603ac059f91f37b3d030b24454 (diff) |
x86/cpu: pass flags by address to cpu_intr_save
Not a necessary change, but done for consistency.
Diffstat (limited to 'kern/spinlock.h')
-rw-r--r-- | kern/spinlock.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/spinlock.h b/kern/spinlock.h index 01329f1d..4c983471 100644 --- a/kern/spinlock.h +++ b/kern/spinlock.h @@ -83,7 +83,7 @@ spinlock_trylock_intr_save(struct spinlock *lock, unsigned long *flags) int busy; thread_preempt_disable(); - *flags = cpu_intr_save(); + cpu_intr_save(flags); busy = spinlock_tryacquire(lock); if (busy) { @@ -98,7 +98,7 @@ static inline void spinlock_lock_intr_save(struct spinlock *lock, unsigned long *flags) { thread_preempt_disable(); - *flags = cpu_intr_save(); + cpu_intr_save(flags); spinlock_acquire(lock); } |