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] - Diff between revs 1765 and 1782

Only display areas with differences | Details | Blame | View Log

Rev 1765 Rev 1782
/*
/*
 * linux/include/asm-arm/arch-a5k/system.h
 * linux/include/asm-arm/arch-a5k/system.h
 *
 *
 * Copyright (c) 1996 Russell King
 * Copyright (c) 1996 Russell King
 */
 */
#ifndef __ASM_ARCH_SYSTEM_H
#ifndef __ASM_ARCH_SYSTEM_H
#define __ASM_ARCH_SYSTEM_H
#define __ASM_ARCH_SYSTEM_H
 
 
extern __inline__ void arch_hard_reset (void)
extern __inline__ void arch_hard_reset (void)
{
{
        extern void ecard_reset (int card);
        extern void ecard_reset (int card);
 
 
        /*
        /*
         * Reset all expansion cards.
         * Reset all expansion cards.
         */
         */
        ecard_reset (-1);
        ecard_reset (-1);
 
 
        /*
        /*
         * copy branch instruction to reset location and call it
         * copy branch instruction to reset location and call it
         */
         */
        *(unsigned long *)0 = *(unsigned long *)0x03800000;
        *(unsigned long *)0 = *(unsigned long *)0x03800000;
        ((void(*)(void))0)();
        ((void(*)(void))0)();
 
 
        /*
        /*
         * If that didn't work, loop endlessly
         * If that didn't work, loop endlessly
         */
         */
        while (1);
        while (1);
}
}
 
 
#endif
#endif
 
 

powered by: WebSVN 2.1.0

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