help with ioremap needed

Jean Meloche (jean@stat.ubc.ca)
Tue, 04 Aug 1998 19:54:06 -0700


Please give me a hint.

I got two machines on which I boot 2.1.114 with mem=32m.
If this matters, one has two PPro and the other one Pentium.

In a module, on the dual PPro,

buf=ioremap(32*1024*1024,32*1024*1024);
obuf[64]=0;
for(i=0;i<3;i++) {
for(j=0;j<32;j++) sprintf(obuf+2*j,"%02x",buf[i*32+j]);
printk(KERN_INFO "%s\n",obuf);
}

results in

kernel: 0200000055aaa55a55aaa55affffffffffffffffffffffffffffffffffffffff
kernel: 00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff
kernel: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff

while on the Pentium machine the same code results in

kernel: 0000000000000000000000000000000000000000000000000000000000000000
kernel: 0000000000000000000000000000000000000000000000000000000000000000
kernel: 0000000000000000000000000000000000000000000000000000000000000000

I can't figure out what's wrong. Shouldn't they both be all 0's?
What am I missing here? On the Pentium I can read and write the
allocated area at will. If I do that on the dual PPro, I freeze
the machine.

Many thanks for any help.

-- 

Jean Meloche

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html