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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-armnommu/] [arch-a5k/] [system.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
/*
2
 * linux/include/asm-arm/arch-a5k/system.h
3
 *
4
 * Copyright (c) 1996 Russell King
5
 */
6
#ifndef __ASM_ARCH_SYSTEM_H
7
#define __ASM_ARCH_SYSTEM_H
8
 
9
extern __inline__ void arch_hard_reset (void)
10
{
11
        extern void ecard_reset (int card);
12
 
13
        /*
14
         * Reset all expansion cards.
15
         */
16
        ecard_reset (-1);
17
 
18
        /*
19
         * copy branch instruction to reset location and call it
20
         */
21
        *(unsigned long *)0 = *(unsigned long *)0x03800000;
22
        ((void(*)(void))0)();
23
 
24
        /*
25
         * If that didn't work, loop endlessly
26
         */
27
        while (1);
28
}
29
 
30
#endif

powered by: WebSVN 2.1.0

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