Commit 19ae2242 authored by Keith M. Wesolowski's avatar Keith M. Wesolowski Committed by David S. Miller

[sparc] Fix display errors on HIGHMEM and Zilog addresses.

parent 2af01b24
......@@ -209,7 +209,8 @@ unsigned long __init bootmem_init(unsigned long *pages_avail)
if (max_low_pfn > (SRMMU_MAXMEM >> PAGE_SHIFT)) {
highstart_pfn = (SRMMU_MAXMEM >> PAGE_SHIFT);
max_low_pfn = calc_max_low_pfn();
printk(KERN_NOTICE "%ldMB HIGHMEM available.\n", calc_highpages());
printk(KERN_NOTICE "%ldMB HIGHMEM available.\n",
calc_highpages() >> (20 - PAGE_SHIFT));
}
#ifdef CONFIG_BLK_DEV_INITRD
......
......@@ -1522,6 +1522,10 @@ static void __init sunzilog_prepare(void)
up[(chip * 2) + 0].port.membase = (char *) &rp->channelA;
up[(chip * 2) + 1].port.membase = (char *) &rp->channelB;
/* These do nothing but make the boot output sensible */
up[(chip * 2) + 0].port.mapbase = (unsigned long) &rp->channelA;
up[(chip * 2) + 1].port.mapbase = (unsigned long) &rp->channelB;
/* Channel A */
up[(chip * 2) + 0].port.iotype = SERIAL_IO_MEM;
up[(chip * 2) + 0].port.irq = zilog_irq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment