Update of /cvsroot/blob/blob/src/blob
In directory usw-pr-cvs1:/tmp/cvs-serv14069
Modified Files:
linux.c
Log Message:
Add support for linux-2.4.18-pre6 and later by putting the physical address
of the boot parameters in r2. Backward compatible with older kernel versions
cause they will completely ignore r2.
(yes, of course blob is the first boot loader to support this feature :)
Index: linux.c
===================================================================
RCS file: /cvsroot/blob/blob/src/blob/linux.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- linux.c 9 Apr 2002 12:01:28 -0000 1.14
+++ linux.c 25 May 2002 14:45:02 -0000 1.15
@@ -1,7 +1,9 @@
/*
* linux.c: support functions for booting a kernel
*
- * Copyright (C) 2001 Erik Mouw (J.A...@it...)
+ * $Id$
+ *
+ * Copyright (C) 2001 2002 Erik Mouw (J.A...@it...)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -49,7 +51,8 @@
static int boot_linux(int argc, char *argv[])
{
- void (*theKernel)(int zero, int arch) = (void (*)(int, int))KERNEL_RAM_BASE;
+ void (*theKernel)(int zero, int arch, u32 params) =
+ (void (*)(int, int, u32))KERNEL_RAM_BASE;
setup_start_tag();
setup_memory_tags();
@@ -66,7 +69,7 @@
exit_subsystems();
/* start kernel */
- theKernel(0, ARCH_NUMBER);
+ theKernel(0, ARCH_NUMBER, BOOT_PARAMS);
printf("Hey, the kernel returned! This should not happen.\n");
|