wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2003 |
| 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | * |
| 5 | * See file CREDITS for list of people who contributed to this |
| 6 | * project. |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by |
| 10 | * the Free Software Foundation; either version 2 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 21 | * |
| 22 | */ |
| 23 | |
| 24 | #include <common.h> |
| 25 | #include <command.h> |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 26 | #include <image.h> |
| 27 | #include <zlib.h> |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 28 | #include <bzlib.h> |
TsiChungLiew | 890adcb | 2007-10-25 17:14:00 -0500 | [diff] [blame] | 29 | #include <watchdog.h> |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 30 | #include <environment.h> |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 31 | #include <asm/byteorder.h> |
| 32 | |
Wolfgang Denk | 6405a15 | 2006-03-31 18:32:53 +0200 | [diff] [blame] | 33 | DECLARE_GLOBAL_DATA_PTR; |
| 34 | |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 35 | #define PHYSADDR(x) x |
| 36 | |
wdenk | e65527f | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 37 | #define LINUX_MAX_ENVS 256 |
| 38 | #define LINUX_MAX_ARGS 256 |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 39 | |
TsiChungLiew | 890adcb | 2007-10-25 17:14:00 -0500 | [diff] [blame] | 40 | #define CHUNKSZ (64 * 1024) |
| 41 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 42 | #ifdef CONFIG_SHOW_BOOT_PROGRESS |
| 43 | # include <status_led.h> |
| 44 | # define SHOW_BOOT_PROGRESS(arg) show_boot_progress(arg) |
| 45 | #else |
| 46 | # define SHOW_BOOT_PROGRESS(arg) |
| 47 | #endif |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 48 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 49 | extern image_header_t header; |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 50 | |
Marian Balakowicz | 41d71ed | 2008-01-08 18:14:09 +0100 | [diff] [blame^] | 51 | int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]); |
| 52 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 53 | void do_bootm_linux(cmd_tbl_t * cmdtp, int flag, |
| 54 | int argc, char *argv[], |
| 55 | ulong addr, ulong * len_ptr, int verify) |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 56 | { |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 57 | ulong sp; |
Marian Balakowicz | 41d71ed | 2008-01-08 18:14:09 +0100 | [diff] [blame^] | 58 | ulong len; |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 59 | ulong initrd_start, initrd_end; |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 60 | ulong cmd_start, cmd_end; |
| 61 | ulong initrd_high; |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 62 | ulong data; |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 63 | int initrd_copy_to_ram = 1; |
| 64 | char *cmdline; |
| 65 | char *s; |
| 66 | bd_t *kbd; |
| 67 | void (*kernel) (bd_t *, ulong, ulong, ulong, ulong); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 68 | image_header_t *hdr = &header; |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 69 | |
| 70 | if ((s = getenv("initrd_high")) != NULL) { |
| 71 | /* a value of "no" or a similar string will act like 0, |
| 72 | * turning the "load high" feature off. This is intentional. |
| 73 | */ |
| 74 | initrd_high = simple_strtoul(s, NULL, 16); |
| 75 | if (initrd_high == ~0) |
| 76 | initrd_copy_to_ram = 0; |
| 77 | } else { /* not set, no restrictions to load high */ |
| 78 | initrd_high = ~0; |
| 79 | } |
| 80 | |
| 81 | #ifdef CONFIG_LOGBUFFER |
| 82 | kbd = gd->bd; |
| 83 | /* Prevent initrd from overwriting logbuffer */ |
| 84 | if (initrd_high < (kbd->bi_memsize - LOGBUFF_LEN - LOGBUFF_OVERHEAD)) |
| 85 | initrd_high = kbd->bi_memsize - LOGBUFF_LEN - LOGBUFF_OVERHEAD; |
| 86 | debug("## Logbuffer at 0x%08lX ", kbd->bi_memsize - LOGBUFF_LEN); |
| 87 | #endif |
| 88 | |
| 89 | /* |
| 90 | * Booting a (Linux) kernel image |
| 91 | * |
| 92 | * Allocate space for command line and board info - the |
| 93 | * address should be as high as possible within the reach of |
| 94 | * the kernel (see CFG_BOOTMAPSZ settings), but in unused |
| 95 | * memory, which means far enough below the current stack |
| 96 | * pointer. |
| 97 | */ |
| 98 | asm("movel %%a7, %%d0\n" |
| 99 | "movel %%d0, %0\n": "=d"(sp): :"%d0"); |
Stefan Roese | fe9dae6 | 2007-08-18 14:33:02 +0200 | [diff] [blame] | 100 | |
| 101 | debug("## Current stack ends at 0x%08lX ", sp); |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 102 | |
| 103 | sp -= 2048; /* just to be sure */ |
| 104 | if (sp > CFG_BOOTMAPSZ) |
| 105 | sp = CFG_BOOTMAPSZ; |
| 106 | sp &= ~0xF; |
| 107 | |
| 108 | debug("=> set upper limit to 0x%08lX\n", sp); |
| 109 | |
| 110 | cmdline = (char *)((sp - CFG_BARGSIZE) & ~0xF); |
| 111 | kbd = (bd_t *) (((ulong) cmdline - sizeof(bd_t)) & ~0xF); |
| 112 | |
| 113 | if ((s = getenv("bootargs")) == NULL) |
| 114 | s = ""; |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 115 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 116 | strcpy(cmdline, s); |
| 117 | |
| 118 | cmd_start = (ulong) & cmdline[0]; |
| 119 | cmd_end = cmd_start + strlen(cmdline); |
| 120 | |
| 121 | *kbd = *(gd->bd); |
| 122 | |
| 123 | #ifdef DEBUG |
| 124 | printf("## cmdline at 0x%08lX ... 0x%08lX\n", cmd_start, cmd_end); |
| 125 | |
| 126 | do_bdinfo(NULL, 0, 0, NULL); |
| 127 | #endif |
| 128 | |
| 129 | if ((s = getenv("clocks_in_mhz")) != NULL) { |
| 130 | /* convert all clock information to MHz */ |
| 131 | kbd->bi_intfreq /= 1000000L; |
| 132 | kbd->bi_busfreq /= 1000000L; |
| 133 | } |
| 134 | |
| 135 | kernel = |
Marian Balakowicz | 41d71ed | 2008-01-08 18:14:09 +0100 | [diff] [blame^] | 136 | (void (*)(bd_t *, ulong, ulong, ulong, ulong))image_get_ep (hdr); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 137 | |
| 138 | /* |
| 139 | * Check if there is an initrd image |
| 140 | */ |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 141 | |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 142 | if (argc >= 3) { |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 143 | debug("Not skipping initrd\n"); |
| 144 | SHOW_BOOT_PROGRESS(9); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 145 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 146 | addr = simple_strtoul(argv[2], NULL, 16); |
Marian Balakowicz | 41d71ed | 2008-01-08 18:14:09 +0100 | [diff] [blame^] | 147 | hdr = (image_header_t *)addr; |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 148 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 149 | printf("## Loading RAMDisk Image at %08lx ...\n", addr); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 150 | |
Marian Balakowicz | 41d71ed | 2008-01-08 18:14:09 +0100 | [diff] [blame^] | 151 | if (!image_check_magic (hdr)) { |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 152 | puts("Bad Magic Number\n"); |
| 153 | SHOW_BOOT_PROGRESS(-10); |
| 154 | do_reset(cmdtp, flag, argc, argv); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 155 | } |
| 156 | |
Marian Balakowicz | 41d71ed | 2008-01-08 18:14:09 +0100 | [diff] [blame^] | 157 | if (!image_check_hcrc (hdr)) { |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 158 | puts("Bad Header Checksum\n"); |
| 159 | SHOW_BOOT_PROGRESS(-11); |
| 160 | do_reset(cmdtp, flag, argc, argv); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 161 | } |
| 162 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 163 | SHOW_BOOT_PROGRESS(10); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 164 | |
Marian Balakowicz | 41d71ed | 2008-01-08 18:14:09 +0100 | [diff] [blame^] | 165 | print_image_hdr (hdr); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 166 | |
Marian Balakowicz | 41d71ed | 2008-01-08 18:14:09 +0100 | [diff] [blame^] | 167 | data = image_get_data (hdr); |
| 168 | len = image_get_data_size (hdr); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 169 | |
| 170 | if (verify) { |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 171 | puts(" Verifying Checksum ... "); |
Marian Balakowicz | 41d71ed | 2008-01-08 18:14:09 +0100 | [diff] [blame^] | 172 | if (!image_check_dcrc_wd (hdr, CHUNKSZ)) { |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 173 | puts("Bad Data CRC\n"); |
| 174 | SHOW_BOOT_PROGRESS(-12); |
| 175 | do_reset(cmdtp, flag, argc, argv); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 176 | } |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 177 | puts("OK\n"); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 178 | } |
| 179 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 180 | SHOW_BOOT_PROGRESS(11); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 181 | |
Marian Balakowicz | 41d71ed | 2008-01-08 18:14:09 +0100 | [diff] [blame^] | 182 | if (!image_check_os (hdr, IH_OS_LINUX) || |
| 183 | !image_check_arch (hdr, IH_ARCH_M68K) || |
| 184 | !image_check_type (hdr, IH_TYPE_RAMDISK)) { |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 185 | puts("No Linux ColdFire Ramdisk Image\n"); |
| 186 | SHOW_BOOT_PROGRESS(-13); |
| 187 | do_reset(cmdtp, flag, argc, argv); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 188 | } |
| 189 | |
| 190 | /* |
| 191 | * Now check if we have a multifile image |
| 192 | */ |
Marian Balakowicz | 41d71ed | 2008-01-08 18:14:09 +0100 | [diff] [blame^] | 193 | } else if (image_check_type (hdr, IH_TYPE_MULTI) && (len_ptr[1])) { |
| 194 | u_long tail = image_to_cpu (len_ptr[0]) % 4; |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 195 | int i; |
| 196 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 197 | SHOW_BOOT_PROGRESS(13); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 198 | |
| 199 | /* skip kernel length and terminator */ |
| 200 | data = (ulong) (&len_ptr[2]); |
| 201 | /* skip any additional image length fields */ |
| 202 | for (i = 1; len_ptr[i]; ++i) |
| 203 | data += 4; |
| 204 | /* add kernel length, and align */ |
Marian Balakowicz | 41d71ed | 2008-01-08 18:14:09 +0100 | [diff] [blame^] | 205 | data += image_to_cpu (len_ptr[0]); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 206 | if (tail) { |
| 207 | data += 4 - tail; |
| 208 | } |
| 209 | |
Marian Balakowicz | 41d71ed | 2008-01-08 18:14:09 +0100 | [diff] [blame^] | 210 | len = image_to_cpu (len_ptr[1]); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 211 | |
| 212 | } else { |
| 213 | /* |
| 214 | * no initrd image |
| 215 | */ |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 216 | SHOW_BOOT_PROGRESS(14); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 217 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 218 | len = data = 0; |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 219 | } |
| 220 | |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 221 | if (!data) { |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 222 | debug("No initrd\n"); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 223 | } |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 224 | |
| 225 | if (data) { |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 226 | if (!initrd_copy_to_ram) { /* zero-copy ramdisk support */ |
| 227 | initrd_start = data; |
| 228 | initrd_end = initrd_start + len; |
| 229 | } else { |
| 230 | initrd_start = (ulong) kbd - len; |
| 231 | initrd_start &= ~(4096 - 1); /* align on page */ |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 232 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 233 | if (initrd_high) { |
| 234 | ulong nsp; |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 235 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 236 | /* |
| 237 | * the inital ramdisk does not need to be within |
| 238 | * CFG_BOOTMAPSZ as it is not accessed until after |
| 239 | * the mm system is initialised. |
| 240 | * |
| 241 | * do the stack bottom calculation again and see if |
| 242 | * the initrd will fit just below the monitor stack |
| 243 | * bottom without overwriting the area allocated |
| 244 | * above for command line args and board info. |
| 245 | */ |
| 246 | asm("movel %%a7, %%d0\n" |
| 247 | "movel %%d0, %0\n": "=d"(nsp): :"%d0"); |
Stefan Roese | fe9dae6 | 2007-08-18 14:33:02 +0200 | [diff] [blame] | 248 | |
| 249 | nsp -= 2048; /* just to be sure */ |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 250 | nsp &= ~0xF; |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 251 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 252 | if (nsp > initrd_high) /* limit as specified */ |
| 253 | nsp = initrd_high; |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 254 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 255 | nsp -= len; |
| 256 | nsp &= ~(4096 - 1); /* align on page */ |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 257 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 258 | if (nsp >= sp) |
| 259 | initrd_start = nsp; |
| 260 | } |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 261 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 262 | SHOW_BOOT_PROGRESS(12); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 263 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 264 | debug |
| 265 | ("## initrd at 0x%08lX ... 0x%08lX (len=%ld=0x%lX)\n", |
| 266 | data, data + len - 1, len, len); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 267 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 268 | initrd_end = initrd_start + len; |
| 269 | printf(" Loading Ramdisk to %08lx, end %08lx ... ", |
| 270 | initrd_start, initrd_end); |
| 271 | #if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG) |
| 272 | { |
| 273 | size_t l = len; |
| 274 | void *to = (void *)initrd_start; |
| 275 | void *from = (void *)data; |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 276 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 277 | while (l > 0) { |
| 278 | size_t tail = |
| 279 | (l > CHUNKSZ) ? CHUNKSZ : l; |
| 280 | WATCHDOG_RESET(); |
| 281 | memmove(to, from, tail); |
| 282 | to += tail; |
| 283 | from += tail; |
| 284 | l -= tail; |
| 285 | } |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 286 | } |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 287 | #else /* !(CONFIG_HW_WATCHDOG || CONFIG_WATCHDOG) */ |
| 288 | memmove((void *)initrd_start, (void *)data, len); |
| 289 | #endif /* CONFIG_HW_WATCHDOG || CONFIG_WATCHDOG */ |
| 290 | puts("OK\n"); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 291 | } |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 292 | } else { |
| 293 | initrd_start = 0; |
| 294 | initrd_end = 0; |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 295 | } |
| 296 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 297 | debug("## Transferring control to Linux (at address %08lx) ...\n", |
| 298 | (ulong) kernel); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 299 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 300 | SHOW_BOOT_PROGRESS(15); |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 301 | |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 302 | /* |
| 303 | * Linux Kernel Parameters (passing board info data): |
| 304 | * r3: ptr to board info data |
| 305 | * r4: initrd_start or 0 if no initrd |
| 306 | * r5: initrd_end - unused if r4 is 0 |
| 307 | * r6: Start of command line string |
| 308 | * r7: End of command line string |
| 309 | */ |
| 310 | (*kernel) (kbd, initrd_start, initrd_end, cmd_start, cmd_end); |
| 311 | /* does not return */ |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 312 | } |