Mass reformat
This commit is contained in:
parent
3450ab2cb8
commit
f1fd7de79f
10 changed files with 317 additions and 297 deletions
|
|
@ -39,7 +39,9 @@ static inline u64 read_tp() {
|
|||
}
|
||||
|
||||
/** Write thread pointer */
|
||||
static inline void write_tp(u64 x) { asm volatile("mv tp, %0" : : "r"(x)); }
|
||||
static inline void write_tp(u64 x) {
|
||||
asm volatile("mv tp, %0" : : "r"(x));
|
||||
}
|
||||
|
||||
/**
|
||||
* Read the value of the sstatus register.
|
||||
|
|
@ -60,10 +62,14 @@ static inline void w_sstatus(u64 x) {
|
|||
}
|
||||
|
||||
/** Enable device interrupts */
|
||||
static inline void intr_on() { w_sstatus(r_sstatus() | SSTATUS_SIE); }
|
||||
static inline void intr_on() {
|
||||
w_sstatus(r_sstatus() | SSTATUS_SIE);
|
||||
}
|
||||
|
||||
/** Disable device interrupts */
|
||||
static inline void intr_off() { w_sstatus(r_sstatus() & ~SSTATUS_SIE); }
|
||||
static inline void intr_off() {
|
||||
w_sstatus(r_sstatus() & ~SSTATUS_SIE);
|
||||
}
|
||||
|
||||
/** Are device interrupts enabled? */
|
||||
static inline int intr_get() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue