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

Subversion Repositories or1k_soc_on_altera_embedded_dev_kit

[/] [or1k_soc_on_altera_embedded_dev_kit/] [trunk/] [linux-2.6/] [linux-2.6.24/] [arch/] [powerpc/] [boot/] [reg.h] - Blame information for rev 3

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 xianfeng
#ifndef _PPC_BOOT_REG_H
2
#define _PPC_BOOT_REG_H
3
/*
4
 * Copyright 2007 Davud Gibson, IBM Corporation.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version
9
 * 2 of the License, or (at your option) any later version.
10
 */
11
 
12
static inline u32 mfpvr(void)
13
{
14
        u32 pvr;
15
        asm volatile ("mfpvr    %0" : "=r"(pvr));
16
        return pvr;
17
}
18
 
19
register void *__stack_pointer asm("r1");
20
#define get_sp()        (__stack_pointer)
21
 
22
#endif  /* _PPC_BOOT_REG_H */

powered by: WebSVN 2.1.0

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