diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-01-27 15:34:00 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-01-27 15:34:00 +0000 |
commit | 11466d531552c18807f1cc97f9472dad7f12992d (patch) | |
tree | 0b52928b3de9edf5ca28e95aaa55791a5be04db0 /gnu/Makefile | |
parent | db37bb7d79d37d659536a1dac53f5bab5c1ff67a (diff) |
Switch the amd64 PCI_CONF_LOCK from being a simplelock and splhigh to a
mutex with ipl set to IPL_HIGH. While i'm here, unify the code with
i386, by giving the same lock to the i386 code.
This lock is mostly for MP, but could actually prevent a race where a
process is doing pci_conf_{read,write}, and then an interrupt fire and
also does pci_conf_{read,write}. Since this is a two stage process, the
interrupt could race with the one, causing the value to the written to
the wrong place, or the wrong value to be written.
Tested by many. "go ahead" kettenis@.
Diffstat (limited to 'gnu/Makefile')
0 files changed, 0 insertions, 0 deletions