Attention! N has to be divisible by the number of cores!

This commit is contained in:
Stefan Lankes 2011-08-23 07:58:35 -07:00
parent 0a0452b7a1
commit 637399c1e1

View file

@ -116,7 +116,7 @@ int mail_ping(void* arg) {
}
//#define N 1024
#define N 513
#define N 514
volatile static int* A[N];
volatile static int* B[N];
@ -219,8 +219,9 @@ static int svm_test(void *arg)
if (!my_ue) {
uint32_t err = 0;
for(i=0; (i<N) && (err < 10); i++) {
for(j=0; (j<N) && (err < 10); j++) {
svm_invalidate();
for(i=0; (i<N) && (err < 32); i++) {
for(j=0; (j<N) && (err < 32); j++) {
if (C[i][j] != i+j) {
err++;
kprintf("Wrong value at C[%u][%u] = %u, B[%u][%u] = %u\n", i, j, C[i][j], i, j, B[i][j]);