forked from Imagelibrary/rtems
New header guards.
This commit is contained in:
@@ -25,8 +25,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef _LIBCPU_MPC5XX_EXCEPTION_RAW_EXCEPTION_H
|
||||
#define _LIBCPU_MPC5XX_EXCEPTION_RAW_EXCEPTION_H
|
||||
#ifndef _LIBCPU_RAW_EXCEPTION_H
|
||||
#define _LIBCPU_RAW_EXCEPTION_H
|
||||
|
||||
#include <libcpu/vectors.h>
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef _M5xx_CONSOLE_H_
|
||||
#define _M5xx_CONSOLE_H_
|
||||
#ifndef _MPC5XX_CONSOLE_H
|
||||
#define _MPC5XX_CONSOLE_H
|
||||
|
||||
#include <rtems/libio.h>
|
||||
#include <rtems/termiostypes.h>
|
||||
@@ -34,4 +34,4 @@ int m5xx_uart_setAttributes(int, const struct termios* t);
|
||||
#define SCI1_MINOR 0
|
||||
#define SCI2_MINOR 1
|
||||
|
||||
#endif /* _M5xx_CONSOLE_H_ */
|
||||
#endif /* _MPC5XX_CONSOLE_H */
|
||||
|
||||
@@ -55,8 +55,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef _MPC5xx_h
|
||||
#define _MPC5xx_h
|
||||
#ifndef _MPC5XX_H
|
||||
#define _MPC5XX_H
|
||||
|
||||
#include <libcpu/spr.h>
|
||||
|
||||
@@ -617,4 +617,4 @@ extern volatile imb_t imb; /* defined in linkcmds */
|
||||
|
||||
#endif /* ASM */
|
||||
|
||||
#endif /* _MPC5xx_h */
|
||||
#endif /* _MPC5XX_H */
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef LIBCPU_POWERPC_MBX8XX_IRQ_IRQ_H
|
||||
#define LIBCPU_POWERPC_MBX8XX_IRQ_IRQ_H
|
||||
#ifndef _LIBCPU_IRQ_H
|
||||
#define _LIBCPU_IRQ_H
|
||||
|
||||
|
||||
#define CPU_ASM_IRQ_VECTOR_BASE 0x0
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
#ifndef LIBCPU_POWERPC_MBX5XX_VECTORS_H
|
||||
#define LIBCPU_POWERPC_MBX5XX_VECTORS_H
|
||||
#ifndef _LIBCPU_VECTORS_H
|
||||
#define _LIBCPU_VECTORS_H
|
||||
|
||||
|
||||
/*
|
||||
@@ -153,4 +153,4 @@ extern rtems_exception_handler_t* exception_handler_table[NUM_EXCEPTIONS];
|
||||
|
||||
#endif /* ASM */
|
||||
|
||||
#endif /* LIBCPU_POWERPC_MPC5XX_VECTORS_H */
|
||||
#endif /* _LIBCPU_VECTORS_H */
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef _LIB_LIBCPU_C_CLOCK_H
|
||||
#define _LIB_LIBCPU_C_CLOCK_H
|
||||
#ifndef _LIBCPU_C_CLOCK_H
|
||||
#define _LIBCPU_C_CLOCK_H
|
||||
|
||||
#include <rtems.h>
|
||||
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef _LIBCPU_MCP750_EXCEPTION_RAW_EXCEPTION_H
|
||||
#define _LIBCPU_MCP750_EXCEPTION_RAW_EXCEPTION_H
|
||||
#ifndef _LIBCPU_RAW_EXCEPTION_H
|
||||
#define _LIBCPU_RAW_EXCEPTION_H
|
||||
|
||||
/*
|
||||
* Exception Vectors as defined in the MCP750 manual
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef LIBCPU_MCP750_MMU_BAT_H
|
||||
#define LIBCPU_MCP750_MMU_BAT_H
|
||||
#ifndef _LIBCPU_BAT_H
|
||||
#define _LIBCPU_BAT_H
|
||||
|
||||
#include <libcpu/mmu.h>
|
||||
#include <libcpu/pgtable.h>
|
||||
@@ -37,4 +37,4 @@ extern void asm_setdbat2(unsigned int uperPart, unsigned int lowerPart);
|
||||
extern void asm_setdbat3(unsigned int uperPart, unsigned int lowerPart);
|
||||
extern void asm_setdbat4(unsigned int uperPart, unsigned int lowerPart);
|
||||
|
||||
#endif /* LIBCPU_MCP750_MMU_BAT_H */
|
||||
#endif /* _LIBCPU_BAT_H */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef PPC_TRIVIAL_PTE_MAPPING_H
|
||||
#define PPC_TRIVIAL_PTE_MAPPING_H
|
||||
#ifndef _LIBCPU_PTE121_H
|
||||
#define _LIBCPU_PTE121_H
|
||||
/* $Id$ */
|
||||
|
||||
/* Rudimentary page/hash table support for Powerpc
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef _LIBCPU_MPC8XX_EXCEPTION_RAW_EXCEPTION_H
|
||||
#define _LIBCPU_MPC8XX_EXCEPTION_RAW_EXCEPTION_H
|
||||
#ifndef _LIBCPU_RAW_EXCEPTION_H
|
||||
#define _LIBCPU_RAW_EXCEPTION_H
|
||||
|
||||
/*
|
||||
* Exception Vectors as defined in the MCP750 manual
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef _M8260_CONSOLE_H_
|
||||
#define _M8260_CONSOLE_H_
|
||||
#ifndef _MPC8260_CONSOLE_H
|
||||
#define _MPC8260_CONSOLE_H
|
||||
|
||||
#include <rtems/libio.h>
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*/
|
||||
|
||||
#ifndef __M8xx_CPM_h
|
||||
#define __M8xx_CPM_h
|
||||
#ifndef _MPC8260_CPM_H
|
||||
#define _MPC8260_CPM_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*/
|
||||
|
||||
#ifndef __M8260_MMU_h
|
||||
#define __M8260_MMU_h
|
||||
#ifndef _MPC8260_MMU_H
|
||||
#define _MPC8260_MMU_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -44,8 +44,8 @@
|
||||
**************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef __MPC8260_h
|
||||
#define __MPC8260_h
|
||||
#ifndef _MPC8260_H
|
||||
#define _MPC8260_H
|
||||
|
||||
#ifndef ASM
|
||||
/*
|
||||
@@ -1507,4 +1507,4 @@ typedef struct m8260_ {
|
||||
extern volatile m8260_t m8260;
|
||||
#endif /* ASM */
|
||||
|
||||
#endif /* __MPC8260_h */
|
||||
#endif /* _MPC8260_H */
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef _LIBCPU_MPC8XX_EXCEPTION_RAW_EXCEPTION_H
|
||||
#define _LIBCPU_MPC8XX_EXCEPTION_RAW_EXCEPTION_H
|
||||
#ifndef _LIBCPU_RAW_EXCEPTION_H
|
||||
#define _LIBCPU_RAW_EXCEPTION_H
|
||||
|
||||
/*
|
||||
* Exception Vectors as defined in the MCP750 manual
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef _M8xx_CONSOLE_H_
|
||||
#define _M8xx_CONSOLE_H_
|
||||
#ifndef _MPC8XX_CONSOLE_H
|
||||
#define _MPC8XX_CONSOLE_H
|
||||
|
||||
#include <rtems/libio.h>
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*/
|
||||
|
||||
#ifndef __M8xx_CPM_h
|
||||
#define __M8xx_CPM_h
|
||||
#ifndef _MPC8XX_CPM_H
|
||||
#define _MPC8XX_CPM_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*/
|
||||
|
||||
#ifndef __M8xx_MMU_h
|
||||
#define __M8xx_MMU_h
|
||||
#ifndef _MPC8XX_MMU_H
|
||||
#define _MPC8XX_MMU_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -46,8 +46,8 @@
|
||||
**************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef __MPC8xx_h
|
||||
#define __MPC8xx_h
|
||||
#ifndef _MPC8XX_H
|
||||
#define _MPC8XX_H
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
@@ -1480,4 +1480,4 @@ extern volatile m8xx_t m8xx;
|
||||
|
||||
#endif /* ASM */
|
||||
|
||||
#endif /* __MPC8xx_h */
|
||||
#endif /* _MPC8XX_H */
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _INCLUDE_ICTRL_h
|
||||
#define _INCLUDE_ICTRL_h
|
||||
#ifndef _ICTRL_H
|
||||
#define _ICTRL_H
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/system.h>
|
||||
@@ -91,5 +91,5 @@ ictrl_init(void);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* ! _INCLUDE_ICTRL_h */
|
||||
#endif /* _ICTRL_H */
|
||||
/* end of include file */
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef _PPC_BYTEORDER_H
|
||||
#define _PPC_BYTEORDER_H
|
||||
#ifndef _LIBCPU_BYTEORDER_H
|
||||
#define _LIBCPU_BYTEORDER_H
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
||||
@@ -92,4 +92,4 @@ static __inline__ __const__ unsigned int ___arch__swab32(unsigned int value)
|
||||
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#endif /* _PPC_BYTEORDER_H */
|
||||
#endif /* _LIBCPU_BYTEORDER_H */
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef _libcpu_cpuIdent_h
|
||||
#define _libcpu_cpuIdent_h
|
||||
#ifndef _LIBCPU_CPUIDENT_H
|
||||
#define _LIBCPU_CPUIDENT_H
|
||||
|
||||
#ifndef ASM
|
||||
typedef enum
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
#ifndef _LIBCPU_IO_H_
|
||||
#define _LIBCPU_IO_H_
|
||||
#ifndef _LIBCPU_IO_H
|
||||
#define _LIBCPU_IO_H
|
||||
|
||||
|
||||
#define PREP_ISA_IO_BASE 0x80000000
|
||||
@@ -137,4 +137,4 @@ extern inline void out_be32(volatile unsigned *addr, int val)
|
||||
}
|
||||
|
||||
#endif /* ASM */
|
||||
#endif /* _LIBCPU_IO_H_ */
|
||||
#endif /* _LIBCPU_IO_H */
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef _PPC_MMU_H_
|
||||
#define _PPC_MMU_H_
|
||||
#ifndef _LIBCPU_MMU_H
|
||||
#define _LIBCPU_MMU_H
|
||||
|
||||
#ifndef ASM
|
||||
/* Hardware Page Table Entry */
|
||||
@@ -303,4 +303,4 @@ extern void _tlbia(void); /* invalidate all TLB entries */
|
||||
* a processor working register during a tablewalk.
|
||||
*/
|
||||
#define M_TW 799
|
||||
#endif /* _PPC_MMU_H_ */
|
||||
#endif /* _LIBCPU_MMU_H */
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef _PPC_PAGE_H
|
||||
#define _PPC_PAGE_H
|
||||
#ifndef _LIBCPU_PAGE_H
|
||||
#define _LIBCPU_PAGE_H
|
||||
|
||||
/* PAGE_SHIFT determines the page size */
|
||||
#define PAGE_SHIFT 12
|
||||
@@ -65,4 +65,4 @@ typedef unsigned long pgprot_t;
|
||||
|
||||
extern unsigned long get_zero_page_fast(void);
|
||||
#endif /* ASM */
|
||||
#endif /* _PPC_PAGE_H */
|
||||
#endif /* _LIBCPU_PAGE_H */
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef _PPC_PGTABLE_H
|
||||
#define _PPC_PGTABLE_H
|
||||
#ifndef _LIBCPU_PGTABLE_H
|
||||
#define _LIBCPU_PGTABLE_H
|
||||
|
||||
/*
|
||||
* The PowerPC MMU uses a hash table containing PTEs, together with
|
||||
@@ -143,4 +143,4 @@
|
||||
#define __S101 PAGE_READONLY
|
||||
#define __S110 PAGE_SHARED
|
||||
#define __S111 PAGE_SHARED
|
||||
#endif /* _PPC_PGTABLE_H */
|
||||
#endif /* _LIBCPU_PGTABLE_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _PPC_SPR_H
|
||||
#define _PPC_SPR_H
|
||||
#ifndef _LIBCPU_SPR_H
|
||||
#define _LIBCPU_SPR_H
|
||||
|
||||
#include <rtems/powerpc/registers.h>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef CPU_STACK_UTIL_H
|
||||
#define CPU_STACK_UTIL_H
|
||||
#ifndef _LIBCPU_STACKTRACE_H
|
||||
#define _LIBCPU_STACKTRACE_H
|
||||
|
||||
void CPU_stack_take_snapshot(void **stack, int size, void *pc, void *lr, void *r1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user