blob: af375ddb1e2c0f19aa8716950888dcd6638c5a57 [file] [log] [blame]
wdenk591dda52002-11-18 00:14:45 +00001/*
Graeme Russ45fc1d82011-04-13 19:43:26 +10002 * (C) Copyright 2008-2011
3 * Graeme Russ, <graeme.russ@gmail.com>
4 *
wdenk591dda52002-11-18 00:14:45 +00005 * (C) Copyright 2002
Graeme Russ45fc1d82011-04-13 19:43:26 +10006 * Daniel Engström, Omicron Ceti AB, <daniel@omicron.se>
wdenk57b2d802003-06-27 21:31:46 +00007 *
wdenk591dda52002-11-18 00:14:45 +00008 * (C) Copyright 2002
Graeme Russ45fc1d82011-04-13 19:43:26 +10009 * Wolfgang Denk, DENX Software Engineering, <wd@denx.de>
wdenk57b2d802003-06-27 21:31:46 +000010 *
wdenk591dda52002-11-18 00:14:45 +000011 * (C) Copyright 2002
12 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
13 * Marius Groeger <mgroeger@sysgo.de>
14 *
15 * See file CREDITS for list of people who contributed to this
16 * project.
17 *
18 * This program is free software; you can redistribute it and/or
19 * modify it under the terms of the GNU General Public License as
20 * published by the Free Software Foundation; either version 2 of
21 * the License, or (at your option) any later version.
22 *
23 * This program is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 * GNU General Public License for more details.
27 *
28 * You should have received a copy of the GNU General Public License
29 * along with this program; if not, write to the Free Software
30 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
31 * MA 02111-1307 USA
32 */
33
34#include <common.h>
35#include <watchdog.h>
36#include <command.h>
Jean-Christophe PLAGNIOL-VILLARD2a7a0312009-05-16 12:14:54 +020037#include <stdio_dev.h>
wdenk591dda52002-11-18 00:14:45 +000038#include <version.h>
39#include <malloc.h>
wdenk591dda52002-11-18 00:14:45 +000040#include <net.h>
41#include <ide.h>
Graeme Russ06dfe372010-04-24 00:05:47 +100042#include <serial.h>
Graeme Russcbfce1d2011-04-13 19:43:28 +100043#include <asm/u-boot-x86.h>
Graeme Russ078395c2009-11-24 20:04:21 +110044#include <elf.h>
wdenk591dda52002-11-18 00:14:45 +000045
Luigi 'Comio' Mantellini01db1552009-10-10 12:42:21 +020046#ifdef CONFIG_BITBANGMII
47#include <miiphy.h>
48#endif
49
Graeme Russ4e0f55f2011-02-12 15:11:50 +110050/*
51 * Pointer to initial global data area
52 *
53 * Here we initialize it.
54 */
55#undef XTRN_DECLARE_GLOBAL_DATA_PTR
56#define XTRN_DECLARE_GLOBAL_DATA_PTR /* empty = allocate here */
57DECLARE_GLOBAL_DATA_PTR = (gd_t *) (CONFIG_SYS_INIT_GD_ADDR);
58
Wolfgang Denk6405a152006-03-31 18:32:53 +020059
Graeme Russ078395c2009-11-24 20:04:21 +110060/* Exports from the Linker Script */
Graeme Russae428db2010-10-07 20:03:31 +110061extern ulong __text_start;
Graeme Russfb4e2be2010-10-07 20:03:32 +110062extern ulong __data_end;
Graeme Russae428db2010-10-07 20:03:31 +110063extern ulong __rel_dyn_start;
64extern ulong __rel_dyn_end;
65extern ulong __bss_start;
Graeme Russ99052852010-10-07 20:03:33 +110066extern ulong __bss_end;
Graeme Russe07da072010-04-24 00:05:44 +100067
wdenk591dda52002-11-18 00:14:45 +000068/************************************************************************
69 * Init Utilities *
70 ************************************************************************
71 * Some of this code should be moved into the core functions,
72 * or dropped completely,
73 * but let's get it working (again) first...
74 */
wdenk591dda52002-11-18 00:14:45 +000075static int init_baudrate (void)
76{
wdenkabda5ca2003-05-31 18:35:21 +000077 char tmp[64]; /* long enough for environment variables */
Wolfgang Denk76af2782010-07-24 21:55:43 +020078 int i = getenv_f("baudrate", tmp, 64);
wdenk591dda52002-11-18 00:14:45 +000079
wdenkabda5ca2003-05-31 18:35:21 +000080 gd->baudrate = (i != 0)
wdenk591dda52002-11-18 00:14:45 +000081 ? (int) simple_strtoul (tmp, NULL, 10)
82 : CONFIG_BAUDRATE;
83
84 return (0);
85}
86
87static int display_banner (void)
88{
89
90 printf ("\n\n%s\n\n", version_string);
Graeme Russ078395c2009-11-24 20:04:21 +110091/*
wdenk591dda52002-11-18 00:14:45 +000092 printf ("U-Boot code: %08lX -> %08lX data: %08lX -> %08lX\n"
93 " BSS: %08lX -> %08lX stack: %08lX -> %08lX\n",
94 i386boot_start, i386boot_romdata_start-1,
95 i386boot_romdata_dest, i386boot_romdata_dest+i386boot_romdata_size-1,
96 i386boot_bss_start, i386boot_bss_start+i386boot_bss_size-1,
wdenk57b2d802003-06-27 21:31:46 +000097 i386boot_bss_start+i386boot_bss_size,
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020098 i386boot_bss_start+i386boot_bss_size+CONFIG_SYS_STACK_SIZE-1);
wdenk57b2d802003-06-27 21:31:46 +000099
Graeme Russ078395c2009-11-24 20:04:21 +1100100*/
wdenk591dda52002-11-18 00:14:45 +0000101
102 return (0);
103}
104
wdenk591dda52002-11-18 00:14:45 +0000105static int display_dram_config (void)
106{
wdenk591dda52002-11-18 00:14:45 +0000107 int i;
108
109 puts ("DRAM Configuration:\n");
110
111 for (i=0; i<CONFIG_NR_DRAM_BANKS; i++) {
112 printf ("Bank #%d: %08lx ", i, gd->bd->bi_dram[i].start);
113 print_size (gd->bd->bi_dram[i].size, "\n");
114 }
wdenk57b2d802003-06-27 21:31:46 +0000115
wdenk591dda52002-11-18 00:14:45 +0000116 return (0);
117}
118
119static void display_flash_config (ulong size)
120{
121 puts ("Flash: ");
122 print_size (size, "\n");
123}
124
wdenk591dda52002-11-18 00:14:45 +0000125/*
126 * Breath some life into the board...
127 *
128 * Initialize an SMC for serial comms, and carry out some hardware
129 * tests.
130 *
131 * The first part of initialization is running from Flash memory;
132 * its main purpose is to initialize the RAM so that we
133 * can relocate the monitor code to RAM.
134 */
135
136/*
137 * All attempts to come up with a "common" initialization sequence
138 * that works for all boards and architectures failed: some of the
139 * requirements are just _too_ different. To get rid of the resulting
140 * mess of board dependend #ifdef'ed code we now make the whole
141 * initialization sequence configurable to the user.
142 *
143 * The requirements for any new initalization function is simple: it
144 * receives a pointer to the "global data" structure as it's only
145 * argument, and returns an integer return code, where 0 means
146 * "continue" and != 0 means "fatal error, hang the system".
147 */
148typedef int (init_fnc_t) (void);
149
Graeme Russ6ec93c32011-02-12 15:12:10 +1100150static int calculate_relocation_address(void);
151static int copy_uboot_to_ram(void);
152static int clear_bss(void);
153static int do_elf_reloc_fixups(void);
154
155init_fnc_t *init_sequence_f[] = {
156 cpu_init_f,
157 board_early_init_f,
158 env_init,
159 init_baudrate,
160 serial_init,
161 console_init_f,
162 dram_init_f,
163 calculate_relocation_address,
164 copy_uboot_to_ram,
165 clear_bss,
166 do_elf_reloc_fixups,
167
168 NULL,
169};
170
171init_fnc_t *init_sequence_r[] = {
Graeme Russ078395c2009-11-24 20:04:21 +1100172 cpu_init_r, /* basic cpu dependent setup */
173 board_early_init_r, /* basic board dependent setup */
wdenk591dda52002-11-18 00:14:45 +0000174 dram_init, /* configure available RAM banks */
wdenk591dda52002-11-18 00:14:45 +0000175 interrupt_init, /* set up exceptions */
wdenk57b2d802003-06-27 21:31:46 +0000176 timer_init,
wdenk591dda52002-11-18 00:14:45 +0000177 display_banner,
178 display_dram_config,
179
180 NULL,
181};
182
Graeme Russ2fe2a972008-09-07 07:08:42 +1000183gd_t *gd;
wdenk591dda52002-11-18 00:14:45 +0000184
Graeme Russ4b259822011-02-12 15:12:06 +1100185static int calculate_relocation_address(void)
Graeme Russ078395c2009-11-24 20:04:21 +1100186{
Graeme Russae428db2010-10-07 20:03:31 +1100187 void *text_start = &__text_start;
Graeme Russ4b259822011-02-12 15:12:06 +1100188 void *bss_end = &__bss_end;
189 void *dest_addr;
190 ulong rel_offset;
191
192 /* Calculate destination RAM Address and relocation offset */
193 dest_addr = (void *)gd->ram_size;
194 dest_addr -= CONFIG_SYS_STACK_SIZE;
195 dest_addr -= (bss_end - text_start);
196 rel_offset = dest_addr - text_start;
197
198 gd->start_addr_sp = gd->ram_size;
199 gd->relocaddr = (ulong)dest_addr;
200 gd->reloc_off = rel_offset;
201
202 return 0;
203}
204
205static int copy_uboot_to_ram(void)
206{
207 ulong *dst_addr = (ulong *)gd->relocaddr;
208 ulong *src_addr = (ulong *)&__text_start;
209 ulong *end_addr = (ulong *)&__data_end;
210
211 while (src_addr < end_addr)
212 *dst_addr++ = *src_addr++;
213
214 return 0;
215}
216
217static int clear_bss(void)
218{
Graeme Russae428db2010-10-07 20:03:31 +1100219 void *bss_start = &__bss_start;
Graeme Russ99052852010-10-07 20:03:33 +1100220 void *bss_end = &__bss_end;
Graeme Russ078395c2009-11-24 20:04:21 +1100221
Graeme Russ4b259822011-02-12 15:12:06 +1100222 ulong *dst_addr = (ulong *)(bss_start + gd->reloc_off);
223 ulong *end_addr = (ulong *)(bss_end + gd->reloc_off);;
Graeme Russ99052852010-10-07 20:03:33 +1100224
Graeme Russ4b259822011-02-12 15:12:06 +1100225 while (dst_addr < end_addr)
226 *dst_addr++ = 0x00000000;
227
228 return 0;
229}
230
231static int do_elf_reloc_fixups(void)
232{
233 Elf32_Rel *re_src = (Elf32_Rel *)(&__rel_dyn_start);
234 Elf32_Rel *re_end = (Elf32_Rel *)(&__rel_dyn_end);
235
236 do {
237 if (re_src->r_offset >= CONFIG_SYS_TEXT_BASE)
238 if (*(Elf32_Addr *)(re_src->r_offset + gd->reloc_off) >= CONFIG_SYS_TEXT_BASE)
239 *(Elf32_Addr *)(re_src->r_offset + gd->reloc_off) += gd->reloc_off;
240 } while (re_src++ < re_end);
Graeme Russ078395c2009-11-24 20:04:21 +1100241
Graeme Russ4b259822011-02-12 15:12:06 +1100242 return 0;
243}
Graeme Russ38183932011-02-12 15:11:54 +1100244
Graeme Russ45fc1d82011-04-13 19:43:26 +1000245/* Load U-Boot into RAM, initialize BSS, perform relocation adjustments */
Graeme Russ4b259822011-02-12 15:12:06 +1100246void board_init_f(ulong boot_flags)
247{
Graeme Russ6ec93c32011-02-12 15:12:10 +1100248 init_fnc_t **init_fnc_ptr;
Graeme Russ99052852010-10-07 20:03:33 +1100249
Graeme Russ45fc1d82011-04-13 19:43:26 +1000250 gd->flags = boot_flags;
251
Graeme Russ6ec93c32011-02-12 15:12:10 +1100252 for (init_fnc_ptr = init_sequence_f; *init_fnc_ptr; ++init_fnc_ptr) {
253 if ((*init_fnc_ptr)() != 0)
254 hang();
255 }
Graeme Russ078395c2009-11-24 20:04:21 +1100256
Graeme Russ4e0f55f2011-02-12 15:11:50 +1100257 gd->flags |= GD_FLG_RELOC;
Graeme Russ5fb91cc2010-10-07 20:03:29 +1100258
Graeme Russe07da072010-04-24 00:05:44 +1000259 /* Enter the relocated U-Boot! */
Graeme Russ4b259822011-02-12 15:12:06 +1100260 relocate_code(gd->start_addr_sp, gd, gd->relocaddr);
Graeme Russ5fb91cc2010-10-07 20:03:29 +1100261
Graeme Russ9c44afc2011-02-12 15:11:58 +1100262 /* NOTREACHED - relocate_code() does not return */
Graeme Russ078395c2009-11-24 20:04:21 +1100263 while(1);
264}
265
Graeme Russe07da072010-04-24 00:05:44 +1000266void board_init_r(gd_t *id, ulong dest_addr)
wdenk591dda52002-11-18 00:14:45 +0000267{
wdenk591dda52002-11-18 00:14:45 +0000268 char *s;
wdenk591dda52002-11-18 00:14:45 +0000269 ulong size;
wdenk591dda52002-11-18 00:14:45 +0000270 static bd_t bd_data;
Graeme Russ4e0f55f2011-02-12 15:11:50 +1100271 static gd_t gd_data;
wdenk591dda52002-11-18 00:14:45 +0000272 init_fnc_t **init_fnc_ptr;
wdenk57b2d802003-06-27 21:31:46 +0000273
wdenk591dda52002-11-18 00:14:45 +0000274 show_boot_progress(0x21);
275
Graeme Russ4e0f55f2011-02-12 15:11:50 +1100276 /* Global data pointer is now writable */
277 gd = &gd_data;
278 memcpy(gd, id, sizeof(gd_t));
279
wdenk3337af42004-07-01 20:28:03 +0000280 /* compiler optimization barrier needed for GCC >= 3.4 */
281 __asm__ __volatile__("": : :"memory");
wdenk57b2d802003-06-27 21:31:46 +0000282
wdenk591dda52002-11-18 00:14:45 +0000283 gd->bd = &bd_data;
284 memset (gd->bd, 0, sizeof (bd_t));
285 show_boot_progress(0x22);
286
wdenkabda5ca2003-05-31 18:35:21 +0000287 gd->baudrate = CONFIG_BAUDRATE;
wdenk57b2d802003-06-27 21:31:46 +0000288
Graeme Russe07da072010-04-24 00:05:44 +1000289 mem_malloc_init((((ulong)dest_addr - CONFIG_SYS_MALLOC_LEN)+3)&~3,
Graeme Russ078395c2009-11-24 20:04:21 +1100290 CONFIG_SYS_MALLOC_LEN);
291
Graeme Russ6ec93c32011-02-12 15:12:10 +1100292 for (init_fnc_ptr = init_sequence_r; *init_fnc_ptr; ++init_fnc_ptr) {
293 if ((*init_fnc_ptr)() != 0)
wdenk591dda52002-11-18 00:14:45 +0000294 hang ();
wdenk591dda52002-11-18 00:14:45 +0000295 }
296 show_boot_progress(0x23);
297
Graeme Russ06dfe372010-04-24 00:05:47 +1000298#ifdef CONFIG_SERIAL_MULTI
299 serial_initialize();
300#endif
wdenk591dda52002-11-18 00:14:45 +0000301 /* configure available FLASH banks */
302 size = flash_init();
303 display_flash_config(size);
304 show_boot_progress(0x24);
305
306 show_boot_progress(0x25);
307
308 /* initialize environment */
309 env_relocate ();
310 show_boot_progress(0x26);
311
312
Graeme Russd520c0e2010-04-24 00:05:36 +1000313#ifdef CONFIG_CMD_NET
wdenk591dda52002-11-18 00:14:45 +0000314 /* IP Address */
315 bd_data.bi_ip_addr = getenv_IPaddr ("ipaddr");
Graeme Russd520c0e2010-04-24 00:05:36 +1000316#endif
wdenk591dda52002-11-18 00:14:45 +0000317
wdenk591dda52002-11-18 00:14:45 +0000318#if defined(CONFIG_PCI)
319 /*
320 * Do pci configuration
321 */
322 pci_init();
323#endif
324
325 show_boot_progress(0x27);
326
327
Jean-Christophe PLAGNIOL-VILLARD2a7a0312009-05-16 12:14:54 +0200328 stdio_init ();
wdenk591dda52002-11-18 00:14:45 +0000329
wdenk874ac262003-07-24 23:38:38 +0000330 jumptable_init ();
wdenk57b2d802003-06-27 21:31:46 +0000331
wdenk591dda52002-11-18 00:14:45 +0000332 /* Initialize the console (after the relocation and devices init) */
333 console_init_r();
wdenk591dda52002-11-18 00:14:45 +0000334
335#ifdef CONFIG_MISC_INIT_R
336 /* miscellaneous platform dependent initialisations */
337 misc_init_r();
338#endif
339
Jon Loeliger12077972007-07-09 18:05:38 -0500340#if defined(CONFIG_CMD_PCMCIA) && !defined(CONFIG_CMD_IDE)
wdenk591dda52002-11-18 00:14:45 +0000341 WATCHDOG_RESET();
342 puts ("PCMCIA:");
343 pcmcia_init();
344#endif
345
Jon Loeliger12077972007-07-09 18:05:38 -0500346#if defined(CONFIG_CMD_KGDB)
wdenk591dda52002-11-18 00:14:45 +0000347 WATCHDOG_RESET();
348 puts("KGDB: ");
349 kgdb_init();
350#endif
351
352 /* enable exceptions */
wdenkabda5ca2003-05-31 18:35:21 +0000353 enable_interrupts();
wdenk591dda52002-11-18 00:14:45 +0000354 show_boot_progress(0x28);
355
wdenk591dda52002-11-18 00:14:45 +0000356#ifdef CONFIG_STATUS_LED
357 status_led_set (STATUS_LED_BOOT, STATUS_LED_BLINKING);
358#endif
359
wdenkabda5ca2003-05-31 18:35:21 +0000360 udelay(20);
wdenk591dda52002-11-18 00:14:45 +0000361
wdenk591dda52002-11-18 00:14:45 +0000362 /* Initialize from environment */
363 if ((s = getenv ("loadaddr")) != NULL) {
364 load_addr = simple_strtoul (s, NULL, 16);
365 }
Jon Loeliger12077972007-07-09 18:05:38 -0500366#if defined(CONFIG_CMD_NET)
wdenk591dda52002-11-18 00:14:45 +0000367 if ((s = getenv ("bootfile")) != NULL) {
368 copy_filename (BootFile, s, sizeof (BootFile));
369 }
Jon Loeliger1670a5b2007-07-10 11:19:50 -0500370#endif
wdenk591dda52002-11-18 00:14:45 +0000371
372 WATCHDOG_RESET();
373
Jon Loeliger12077972007-07-09 18:05:38 -0500374#if defined(CONFIG_CMD_IDE)
wdenk591dda52002-11-18 00:14:45 +0000375 WATCHDOG_RESET();
376 puts("IDE: ");
377 ide_init();
Jon Loeliger1670a5b2007-07-10 11:19:50 -0500378#endif
wdenk591dda52002-11-18 00:14:45 +0000379
Jon Loeliger12077972007-07-09 18:05:38 -0500380#if defined(CONFIG_CMD_SCSI)
wdenk591dda52002-11-18 00:14:45 +0000381 WATCHDOG_RESET();
382 puts("SCSI: ");
383 scsi_init();
384#endif
385
Jon Loeliger12077972007-07-09 18:05:38 -0500386#if defined(CONFIG_CMD_DOC)
wdenk591dda52002-11-18 00:14:45 +0000387 WATCHDOG_RESET();
wdenkabda5ca2003-05-31 18:35:21 +0000388 puts("DOC: ");
wdenk591dda52002-11-18 00:14:45 +0000389 doc_init();
390#endif
391
Luigi 'Comio' Mantellini01db1552009-10-10 12:42:21 +0200392#ifdef CONFIG_BITBANGMII
393 bb_miiphy_init();
394#endif
Jon Loeliger12077972007-07-09 18:05:38 -0500395#if defined(CONFIG_CMD_NET)
Marian Balakowiczaab8c492005-10-28 22:30:33 +0200396#if defined(CONFIG_NET_MULTI)
wdenk591dda52002-11-18 00:14:45 +0000397 WATCHDOG_RESET();
398 puts("Net: ");
Marian Balakowiczaab8c492005-10-28 22:30:33 +0200399#endif
wdenk591dda52002-11-18 00:14:45 +0000400 eth_initialize(gd->bd);
401#endif
402
Jon Loeliger12077972007-07-09 18:05:38 -0500403#if ( defined(CONFIG_CMD_NET)) && (0)
Marian Balakowiczaab8c492005-10-28 22:30:33 +0200404 WATCHDOG_RESET();
405# ifdef DEBUG
406 puts ("Reset Ethernet PHY\n");
407# endif
408 reset_phy();
409#endif
410
wdenk591dda52002-11-18 00:14:45 +0000411#ifdef CONFIG_LAST_STAGE_INIT
412 WATCHDOG_RESET();
413 /*
414 * Some parts can be only initialized if all others (like
415 * Interrupts) are up and running (i.e. the PC-style ISA
416 * keyboard).
417 */
418 last_stage_init();
419#endif
420
421
wdenk591dda52002-11-18 00:14:45 +0000422#ifdef CONFIG_POST
423 post_run (NULL, POST_RAM | post_bootmode_get(0));
wdenk591dda52002-11-18 00:14:45 +0000424#endif
wdenk57b2d802003-06-27 21:31:46 +0000425
426
wdenk591dda52002-11-18 00:14:45 +0000427 show_boot_progress(0x29);
wdenk57b2d802003-06-27 21:31:46 +0000428
wdenk591dda52002-11-18 00:14:45 +0000429 /* main_loop() can return to retry autoboot, if so just run it again. */
430 for (;;) {
wdenkabda5ca2003-05-31 18:35:21 +0000431 main_loop();
wdenk591dda52002-11-18 00:14:45 +0000432 }
433
434 /* NOTREACHED - no way out of command loop except booting */
435}
436
437void hang (void)
438{
439 puts ("### ERROR ### Please RESET the board ###\n");
440 for (;;);
441}
Mike Frysinger0870e472008-04-13 19:42:19 -0400442
Graeme Russ757660f2010-08-22 16:25:58 +1000443unsigned long do_go_exec (ulong (*entry)(int, char * const []), int argc, char * const argv[])
Mike Frysinger0870e472008-04-13 19:42:19 -0400444{
Graeme Russ757660f2010-08-22 16:25:58 +1000445 unsigned long ret = 0;
446 char **argv_tmp;
447
Mike Frysinger0870e472008-04-13 19:42:19 -0400448 /*
Graeme Russ757660f2010-08-22 16:25:58 +1000449 * x86 does not use a dedicated register to pass the pointer to
450 * the global_data, so it is instead passed as argv[-1]. By using
451 * argv[-1], the called 'Application' can use the contents of
452 * argv natively. However, to safely use argv[-1] a new copy of
453 * argv is needed with the extra element
Mike Frysinger0870e472008-04-13 19:42:19 -0400454 */
Graeme Russ757660f2010-08-22 16:25:58 +1000455 argv_tmp = malloc(sizeof(char *) * (argc + 1));
456
457 if (argv_tmp) {
458 argv_tmp[0] = (char *)gd;
459
460 memcpy(&argv_tmp[1], argv, (size_t)(sizeof(char *) * argc));
461
462 ret = (entry) (argc, &argv_tmp[1]);
463 free(argv_tmp);
464 }
Graeme Russ0b9fe9d2010-04-24 00:05:39 +1000465
Graeme Russ757660f2010-08-22 16:25:58 +1000466 return ret;
Mike Frysinger0870e472008-04-13 19:42:19 -0400467}
Graeme Russa8d06b42010-04-24 00:05:48 +1000468
469void setup_pcat_compatibility(void)
470 __attribute__((weak, alias("__setup_pcat_compatibility")));
471
472void __setup_pcat_compatibility(void)
473{
474}