A couple of fixes for 2.4.
Signed-off-by: Keir Fraser <keir@xensource.com>
pmd_t *kpmd, *pmd;
pte_t *kpte, *pte, *pte_base;
- end = (unsigned long)__va(max_low_pfn * PAGE_SIZE);
- ram_end = (unsigned long)__va(xen_start_info.nr_pages * PAGE_SIZE);
- if ( ram_end > end )
- ram_end = end;
+ ram_end = end = (unsigned long)__va(max_low_pfn * PAGE_SIZE);
+ if ( xen_start_info.nr_pages < max_low_pfn )
+ ram_end = (unsigned long)__va(xen_start_info.nr_pages * PAGE_SIZE);
pgd_base = init_mm.pgd;
i = __pgd_offset(PAGE_OFFSET);
static int __init xencons_setup(char *str)
{
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
- if (str[0] == '=')
- str++;
-#endif
if ( !strcmp(str, "tty") )
xc_mode = XC_TTY;
else if ( !strcmp(str, "ttyS") )
xc_mode = XC_OFF;
return 1;
}
-__setup("xencons", xencons_setup);
+__setup("xencons=", xencons_setup);
/* The kernel and user-land drivers share a common transmit buffer. */
#define WBUF_SIZE 4096