From bc8221a59c083811ee2d8c49c0342ea59caa6d51 Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Fri, 2 Sep 2016 05:40:54 -0400 Subject: comment about sched() saving/restoring cpu->intena --- spinlock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spinlock.c') diff --git a/spinlock.c b/spinlock.c index a5f0b21..bf863ef 100644 --- a/spinlock.c +++ b/spinlock.c @@ -102,8 +102,9 @@ pushcli(void) eflags = readeflags(); cli(); - if(cpu->ncli++ == 0) + if(cpu->ncli == 0) cpu->intena = eflags & FL_IF; + cpu->ncli += 1; } void -- cgit v1.2.3