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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [include/] [asm-armnommu/] [arch-rpc/] [system.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/*
2
 * linux/include/asm-arm/arch-rpc/system.h
3
 *
4
 * Copyright (c) 1996 Russell King
5
 */
6
#ifndef __ASM_ARCH_SYSTEM_H
7
#define __ASM_ARCH_SYSTEM_H
8
 
9
#include <asm/proc-fns.h>
10
 
11
#define arch_hard_reset() {                                             \
12
        extern void ecard_reset (int card);                             \
13
        outb (0, IOMD_ROMCR0);                                           \
14
        ecard_reset (-1);                                               \
15
        cli();                                                          \
16
        __asm__ __volatile__("msr  spsr, r1;"                           \
17
                             "mcr  p15, 0, %0, c1, c0, 0;"              \
18
                             "movs pc, #0"                              \
19
                         :                                              \
20
                         : "r" (processor.u.armv3v4.reset()));          \
21
        }
22
 
23
#endif

powered by: WebSVN 2.1.0

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