Unbreak DPCPU_SUM() by dereferencing the pointer returned by DPCPU_ID_PTR().

MFC after:	3 days
This commit is contained in:
Lawrence Stewart 2010-07-17 03:39:50 +00:00
parent 49d91a7fbe
commit 96f2f82a69

View File

@ -116,7 +116,7 @@ extern uintptr_t dpcpu_off[];
\
sum = 0; \
CPU_FOREACH(_i) { \
sum += DPCPU_ID_PTR(_i, n); \
sum += *DPCPU_ID_PTR(_i, n); \
} \
sum; \
})