* 2.5.62 ioremap fails
@ 2003-02-24 17:21 Rob Murphy
0 siblings, 0 replies; only message in thread
From: Rob Murphy @ 2003-02-24 17:21 UTC (permalink / raw)
To: linux-kernel
I have been trying to allocate memory past the end of the kernel in a system
that has more that 1 Gb of memory and have been unsuccessful. My current
machine has an athlon processor and 1.5Gb of memory.
I created a driver with the following code:
#define MAXHM 0x8000000 // 128 Mb
int __init init_module(void)
{
void *kHighMem;
printk(KERN_ERR"before ioremap\n");
kHighMem = ioremap(__pa(high_memory), MAXHM);
printk(KERN_ERR"ioremap ret: %x\n",kHighMem);
return 0;
}
void __exit leave_mod(void) {
iounmap(kHighMem);
printk(KERN_ERR"iounmap passed\n");
printk(KERN_ERR,"module successfully unloaded.\n");
}
I add the line append="mem=xx" to lilo.
If I set "xx" to around 860 or above then ioremap fails. If I set "xx" to
860 or less then ioremap is successful. Has anyone had any experience
trying to allocate a contiguous memory buffer beyond the end of what the
kernel manages in a system with over 1Gb of memory? Any help would be
appreciated in this matter.
Regards,
Rob Murphy
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-02-24 17:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-24 17:21 2.5.62 ioremap fails Rob Murphy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.