Declare as volatile the memory location referenced by a pointer rather than

the pointer's value.
This commit is contained in:
Alan Cox 2005-03-06 20:57:08 +00:00
parent 70e83c0d6e
commit fe4fbe5515

View File

@ -200,7 +200,7 @@ ipi_tlb_range_demap(struct pmap *pm, vm_offset_t start, vm_offset_t end)
static __inline void
ipi_wait(void *cookie)
{
u_int *volatile mask;
volatile u_int *mask;
if ((mask = cookie) != NULL) {
atomic_clear_int(mask, PCPU_GET(cpumask));