OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [mips/] [arc/] [init.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/*
2
 * This file is subject to the terms and conditions of the GNU General Public
3
 * License.  See the file "COPYING" in the main directory of this archive
4
 * for more details.
5
 *
6
 * PROM library initialisation code.
7
 *
8
 * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
9
 */
10
#include <linux/init.h>
11
#include <linux/kernel.h>
12
 
13
#include <asm/sgialib.h>
14
 
15
#undef DEBUG_PROM_INIT
16
 
17
/* Master romvec interface. */
18
struct linux_romvec *romvec;
19
int prom_argc;
20
LONG *_prom_argv, *_prom_envp;
21
 
22
void __init prom_init(int argc, char **argv, char **envp, int *prom_vec)
23
{
24
        PSYSTEM_PARAMETER_BLOCK pb = PROMBLOCK;
25
        romvec = ROMVECTOR;
26
        prom_argc = argc;
27
        _prom_argv = (LONG *) argv;
28
        _prom_envp = (LONG *) envp;
29
 
30
        if (pb->magic != 0x53435241) {
31
                prom_printf("Aieee, bad prom vector magic %08lx\n", pb->magic);
32
                while(1)
33
                        ;
34
        }
35
 
36
        prom_init_cmdline();
37
        prom_identify_arch();
38
        printk(KERN_INFO "PROMLIB: ARC firmware Version %d Revision %d\n",
39
               pb->ver, pb->rev);
40
        prom_meminit();
41
 
42
#ifdef DEBUG_PROM_INIT
43
        prom_printf("Press a key to reboot\n");
44
        prom_getchar();
45
        ArcEnterInteractiveMode();
46
#endif
47
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.