summaryrefslogtreecommitdiff
path: root/sys/arch/loongson/stand/boot/devopen.c
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2016-01-05 05:27:55 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2016-01-05 05:27:55 +0000
commit55315d01f17d7e0b2ab2de4746fc933d16906ef1 (patch)
tree04804be73d905d738a676c4f6b67329ce8f96b7b /sys/arch/loongson/stand/boot/devopen.c
parent8b1c4bc659bfea20af1c24aa7f25c10ab14b8163 (diff)
Some implementations of HitSyncDCache() call pmap_extract() for va->pa
conversion. Because pmap_extract() acquires the PTE mutex, a "locking against myself" panic is triggered if the cache routine gets called in a context where the mutex is already held. In the pmap, all calls to HitSyncDCache() are for a whole page. Add a new cache routine, HitSyncDCachePage(), which gets both the va and the pa of a page. This removes the need of the va->pa conversion. The new routine has the same signature as SyncDCachePage(), allowing reuse of the same routine for cache implementations that do not need differences between "Hit" and non-"Hit" routines. With the diff, POWER Indigo2 R8000 boots multiuser again. Tested on sgi GENERIC-IP27.MP and octeon GENERIC.MP, too. Diff from miod@, ok kettenis@
Diffstat (limited to 'sys/arch/loongson/stand/boot/devopen.c')
0 files changed, 0 insertions, 0 deletions