Skip to content

Commit be2490d

Browse files
authored
Merge pull request #2640 from ghaerr/bhsyscall
[kernel] Add BH interrupt check after syscall
2 parents 5b125a2 + 88ad71a commit be2490d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

elks/arch/i86/kernel/irqtab.S

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@ save_regs:
164164
// strace.c must be compiled with tail optimization off to protect top of stack
165165
call trace_end // syscall return value is top of stack
166166
#endif
167-
call do_signal // process signals
167+
168+
cmpw $0,bh_active // Any active bottom halfs?
169+
je 1f // No
170+
call do_bottom_half // Run bottom halves
171+
1: call do_signal // process signals
168172
cli
169173
jmp restore_regs
170174
//

0 commit comments

Comments
 (0)