diff options
author | Robert Morris <[email protected]> | 2016-09-02 05:40:54 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2016-09-02 05:40:54 -0400 |
commit | bc8221a59c083811ee2d8c49c0342ea59caa6d51 (patch) | |
tree | b3ba908c45b694dfa60578100b6662e3bfdfba3c /spinlock.c | |
parent | 4b2152cc2d46865f3e4be011698b7a49bca794b8 (diff) | |
download | xv6-labs-bc8221a59c083811ee2d8c49c0342ea59caa6d51.tar.gz xv6-labs-bc8221a59c083811ee2d8c49c0342ea59caa6d51.tar.bz2 xv6-labs-bc8221a59c083811ee2d8c49c0342ea59caa6d51.zip |
comment about sched() saving/restoring cpu->intena
Diffstat (limited to 'spinlock.c')
-rw-r--r-- | spinlock.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |