summaryrefslogtreecommitdiffstats
path: root/sys/arm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/include/critical.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arm/include/critical.h b/sys/arm/include/critical.h
index 6d3d46d..0f05c9f 100644
--- a/sys/arm/include/critical.h
+++ b/sys/arm/include/critical.h
@@ -40,15 +40,15 @@
#define MACHINE_CRITICAL_H
void cpu_critical_fork_exit(void);
static __inline void
-cpu_critical_enter(void)
+cpu_critical_enter(struct thread *td)
{
- curthread->td_md.md_savecrit = disable_interrupts(I32_bit | F32_bit);
+ cd->td_md.md_savecrit = disable_interrupts(I32_bit | F32_bit);
}
static __inline void
-cpu_critical_exit(void)
+cpu_critical_exit(struct thread *td)
{
- restore_interrupts(curthread->td_md.md_savecrit);
+ restore_interrupts(td->td_md.md_savecrit);
}
#endif
OpenPOWER on IntegriCloud