Changeset 06e1e95 in mainline for kernel/arch/mips32


Ignore:
Timestamp:
2006-09-14T17:09:21Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f1d1f5d3
Parents:
e5ecc02
Message:

C99 compliant header guards (hopefully) everywhere in the kernel.
Formatting and indentation changes.
Small improvements in sparc64.

Location:
kernel/arch/mips32
Files:
44 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/include/arg.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_ARG_H__
    36 #define __mips32_ARG_H__
     35#ifndef KERN_mips32_ARG_H_
     36#define KERN_mips32_ARG_H_
    3737
    3838#include <arch/types.h>
  • kernel/arch/mips32/include/asm.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_ASM_H__
    36 #define __mips32_ASM_H__
     35#ifndef KERN_mips32_ASM_H_
     36#define KERN_mips32_ASM_H_
    3737
    3838#include <arch/types.h>
  • kernel/arch/mips32/include/asm/boot.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_BOOT_H_
    36 #define __mips32_BOOT_H_
     35#ifndef KERN_mips32_BOOT_H_
     36#define KERN_mips32_BOOT_H_
    3737
    3838
     
    4444/** @}
    4545 */
    46 
  • kernel/arch/mips32/include/asm/regname.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_REGNAME_H_
    36 #define __mips32_REGNAME_H_
     35#ifndef KERN_mips32_REGNAME_H_
     36#define KERN_mips32_REGNAME_H_
    3737
    3838#define zero    0
     
    9292#define eepc            30
    9393
    94 
    95 #endif /* _REGNAME_H_ */
     94#endif /* KERN_mips32_REGNAME_H_ */
    9695
    9796/** @}
  • kernel/arch/mips32/include/atomic.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_ATOMIC_H__
    36 #define __mips32_ATOMIC_H__
     35#ifndef KERN_mips32_ATOMIC_H_
     36#define KERN_mips32_ATOMIC_H_
    3737
    3838#define atomic_inc(x)   ((void) atomic_add(x, 1))
  • kernel/arch/mips32/include/barrier.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_BARRIER_H__
    36 #define __mips32_BARRIER_H__
     35#ifndef KERN_mips32_BARRIER_H_
     36#define KERN_mips32_BARRIER_H_
    3737
    3838/*
     
    5050/** @}
    5151 */
    52 
  • kernel/arch/mips32/include/boot.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29 #ifndef __mips32_BOOT_H__
    30 #define __mips32_BOOT_H__
     29#ifndef KERN_mips32_BOOT_H_
     30#define KERN_mips32_BOOT_H_
    3131
    3232#define TASKMAP_MAX_RECORDS 32
  • kernel/arch/mips32/include/byteorder.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_BYTEORDER_H__
    36 #define __mips32_BYTEORDER_H__
     35#ifndef KERN_mips32_BYTEORDER_H_
     36#define KERN_mips32_BYTEORDER_H_
    3737
    3838#include <arch/types.h>
  • kernel/arch/mips32/include/cache.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_CACHE_H__
    36 #define __mips32_CACHE_H__
     35#ifndef KERN_mips32_CACHE_H_
     36#define KERN_mips32_CACHE_H_
    3737
    3838#include <typedefs.h>
  • kernel/arch/mips32/include/console.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_CONSOLE_H__
    36 #define __mips32_CONSOLE_H__
    37 
     35#ifndef KERN_mips32_CONSOLE_H_
     36#define KERN_mips32_CONSOLE_H_
    3837
    3938void console_init(void);
  • kernel/arch/mips32/include/context.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_CONTEXT_H__
    36 #define __mips32_CONTEXT_H__
     35#ifndef KERN_mips32_CONTEXT_H_
     36#define KERN_mips32_CONTEXT_H_
    3737
    3838#include <align.h>
  • kernel/arch/mips32/include/cp0.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_CP0_H__
    36 #define __mips32_CP0_H__
     35#ifndef KERN_mips32_CP0_H_
     36#define KERN_mips32_CP0_H_
    3737
    3838#include <arch/types.h>
  • kernel/arch/mips32/include/cpu.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_CPU_H__
    36 #define __mips32_CPU_H__
     35#ifndef KERN_mips32_CPU_H_
     36#define KERN_mips32_CPU_H_
    3737
    3838#include <arch/types.h>
  • kernel/arch/mips32/include/debug.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_DEBUG_H__
    36 #define __mips23_DEBUG_H__
    37 
    38 
     35#ifndef KERN_mips32_DEBUG_H_
     36#define KERN_mips23_DEBUG_H_
    3937
    4038/**     simulator enters the trace mode */
     
    4947#define ___intmode()    asm volatile ( "\t.word\t0x29\n");
    5048
    51 
    5249#endif
    5350
  • kernel/arch/mips32/include/debugger.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef _mips32_DEBUGGER_H_
    36 #define _mips32_DEBUGGER_H_
     35#ifndef KERN_mips32_DEBUGGER_H_
     36#define KERN_mips32_DEBUGGER_H_
    3737
    3838#include <typedefs.h>
  • kernel/arch/mips32/include/drivers/arc.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup mips32
     29/** @addtogroup mips32 
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __mips32_ARC_H__
    36 #define __mips32_ARC_H__
     35#ifndef KERN_mips32_ARC_H_
     36#define KERN_mips32_ARC_H_
    3737
    3838#include <arch/types.h>
     
    5454        CmResourceTypeProductName,
    5555        CmResourceTypeSerialNumber
    56 }cm_resource_type;
     56} cm_resource_type;
    5757
    5858typedef struct {
     
    7575                }memory;
    7676        }u;
    77 }__attribute__ ((packed)) cm_resource_descriptor;
     77} __attribute__ ((packed)) cm_resource_descriptor;
    7878
    7979typedef struct {
     
    8282        unsigned long count;
    8383        cm_resource_descriptor descr[1];
    84 }__attribute__ ((packed)) cm_resource_list;
     84} __attribute__ ((packed)) cm_resource_list;
    8585
    8686typedef enum {
     
    138138        TPUAdapter,
    139139        Anonymous
    140 }arc_component_type;
     140} arc_component_type;
    141141
    142142typedef enum {
     
    148148        Input = 32,
    149149        Output = 64
    150 }arc_component_flags;
     150} arc_component_flags;
    151151
    152152typedef struct  {
     
    183183        FirmwareTemporary,
    184184        FirmwarePermanent
    185 }arc_memorytype_t;
     185} arc_memorytype_t;
    186186
    187187typedef struct  {
     
    189189        uint32_t basepage;  /* *4096 = baseaddr */
    190190        uint32_t basecount;
    191 }arc_memdescriptor_t;
     191} arc_memdescriptor_t;
    192192
    193193typedef struct {
    194194        char vendorid[8];
    195195        char prodid[8];
    196 }arc_sysid_t;
     196} arc_sysid_t;
    197197
    198198typedef struct {
     
    255255        void *privvector;
    256256        uint32_t adaptercount;
    257 }__attribute__ ((packed)) arc_sbp;
     257} __attribute__ ((packed)) arc_sbp;
    258258
    259259extern int arc_init(void);
     
    266266 /** @}
    267267 */
    268 
  • kernel/arch/mips32/include/drivers/msim.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup mips32
     29/** @addtogroup mips32 
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef _MSIM_H_
    36 #define _MSIM_H_
     35#ifndef KERN_mips32_MSIM_H_
     36#define KERN_mips32_MSIM_H_
    3737
    3838#include <console/chardev.h>
    3939
    40 #define MSIM_VIDEORAM            0xB0000000
     40#define MSIM_VIDEORAM                   0xB0000000
    4141/** Address of 'keyboard' device. */
    4242#define MSIM_KBD_ADDRESS                0xB0000000
     
    4949#endif
    5050
    51  /** @}
     51/** @}
    5252 */
    53 
  • kernel/arch/mips32/include/drivers/serial.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup mips32
     29/** @addtogroup mips32 
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __DRV_SERIAL_H__
    36 #define __DRV_SERIAL_H__
     35#ifndef KERN_mips32_SERIAL_H_
     36#define KERN_mips32_SERIAL_H_
    3737
    3838#include <console/chardev.h>
     
    6868#endif
    6969
    70  /** @}
     70/** @}
    7171 */
    72 
  • kernel/arch/mips32/include/elf.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_ELF_H__
    36 #define __mips32_ELF_H__
     35#ifndef KERN_mips32_ELF_H_
     36#define KERN_mips32_ELF_H_
    3737
    3838#define ELF_MACHINE             EM_MIPS
  • kernel/arch/mips32/include/exception.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_EXCEPTION_H__
    36 #define __mips32_EXCEPTION_H__
     35#ifndef KERN_mips32_EXCEPTION_H_
     36#define KERN_mips32_EXCEPTION_H_
    3737
    38 #ifndef __mips32_TYPES_H__
     38#ifndef KERN_mips32_TYPES_H_
    3939#  include <arch/types.h>
    4040#endif
  • kernel/arch/mips32/include/faddr.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_FADDR_H__
    36 #define __mips32_FADDR_H__
     35#ifndef KERN_mips32_FADDR_H_
     36#define KERN_mips32_FADDR_H_
    3737
    3838#include <arch/types.h>
  • kernel/arch/mips32/include/fpu_context.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_FPU_CONTEXT_H__
    36 #define __mips32_FPU_CONTEXT_H__
     35#ifndef KERN_mips32_FPU_CONTEXT_H_
     36#define KERN_mips32_FPU_CONTEXT_H_
    3737
    3838#include <arch/types.h>
  • kernel/arch/mips32/include/interrupt.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_INTERRUPT_H__
    36 #define __mips32_INTERRUPT_H__
     35#ifndef KERN_mips32_INTERRUPT_H_
     36#define KERN_mips32_INTERRUPT_H_
    3737
    3838#include <arch/exception.h>
  • kernel/arch/mips32/include/memstr.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_MEMSTR_H__
    36 #define __mips32_MEMSTR_H__
     35#ifndef KERN_mips32_MEMSTR_H_
     36#define KERN_mips32_MEMSTR_H_
    3737
    3838#define memcpy(dst, src, cnt)  __builtin_memcpy((dst), (src), (cnt))
  • kernel/arch/mips32/include/mm/as.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_AS_H__
    36 #define __mips32_AS_H__
     35#ifndef KERN_mips32_AS_H_
     36#define KERN_mips32_AS_H_
    3737
    3838#define KERNEL_ADDRESS_SPACE_SHADOWED_ARCH      0
  • kernel/arch/mips32/include/mm/asid.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_ASID_H__
    36 #define __mips32_ASID_H__
     35#ifndef KERN_mips32_ASID_H_
     36#define KERN_mips32_ASID_H_
    3737
    3838#include <arch/types.h>
     
    4646/** @}
    4747 */
    48 
  • kernel/arch/mips32/include/mm/frame.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_FRAME_H__
    36 #define __mips32_FRAME_H__
     35#ifndef KERN_mips32_FRAME_H_
     36#define KERN_mips32_FRAME_H_
    3737
    3838#define FRAME_WIDTH             14      /* 16K */
  • kernel/arch/mips32/include/mm/memory_init.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_MEMORY_INIT_H__
    36 #define __mips32_MEMORY_INIT_H__
     35#ifndef KERN_mips32_MEMORY_INIT_H_
     36#define KERN_mips32_MEMORY_INIT_H_
    3737
    3838#include <config.h>
  • kernel/arch/mips32/include/mm/page.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_PAGE_H__
    36 #define __mips32_PAGE_H__
     35#ifndef KERN_mips32_PAGE_H_
     36#define KERN_mips32_PAGE_H_
    3737
    3838#include <arch/mm/frame.h>
  • kernel/arch/mips32/include/mm/tlb.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_TLB_H__
    36 #define __mips32_TLB_H__
     35#ifndef KERN_mips32_TLB_H_
     36#define KERN_mips32_TLB_H_
    3737
    3838#include <arch/exception.h>
  • kernel/arch/mips32/include/proc/task.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup mips32proc
     29/** @addtogroup mips32proc
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __mips32_TASK_H__
    36 #define __mips32_TASK_H__
     35#ifndef KERN_mips32_TASK_H_
     36#define KERN_mips32_TASK_H_
    3737
    3838typedef struct {
     
    4444#endif
    4545
    46  /** @}
     46/** @}
    4747 */
    48 
  • kernel/arch/mips32/include/stack.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_STACK_H__
    36 #define __mips32_STACK_H__
     35#ifndef KERN_mips32_STACK_H_
     36#define KERN_mips32_STACK_H_
    3737
    3838#define STACK_ITEM_SIZE         4
  • kernel/arch/mips32/include/types.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __mips32_TYPES_H__
    36 #define __mips32_TYPES_H__
     35#ifndef KERN_mips32_TYPES_H_
     36#define KERN_mips32_TYPES_H_
    3737
    3838#define NULL    0
  • kernel/arch/mips32/src/cache.c

    re5ecc02 r06e1e95  
    4545/** @}
    4646 */
    47 
  • kernel/arch/mips32/src/console.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup mips32
     29/** @addtogroup mips32 
    3030 * @{
    3131 */
     
    6565}
    6666
    67  /** @}
     67/** @}
    6868 */
    69 
  • kernel/arch/mips32/src/ddi/ddi.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup mips32ddi
     29/** @addtogroup mips32ddi
    3030 * @{
    3131 */
     
    5656}
    5757
    58  /** @}
     58/** @}
    5959 */
    60 
  • kernel/arch/mips32/src/debugger.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup mips32debug
     29/** @addtogroup mips32debug
    3030 * @{
    3131 */
     
    384384}
    385385
    386  /** @}
    387  */
    388 
     386/** @}
     387 */
  • kernel/arch/mips32/src/drivers/arc.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup mips32
     29/** @addtogroup mips32 
    3030 * @{
    3131 */
     
    408408}
    409409
    410 
    411  /** @}
    412  */
    413 
     410/** @}
     411 */
  • kernel/arch/mips32/src/drivers/msim.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup mips32
     29/** @addtogroup mips32 
    3030 * @{
    3131 */
     
    127127}
    128128
    129  /** @}
     129/** @}
    130130 */
    131 
  • kernel/arch/mips32/src/drivers/serial.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup mips32
     29/** @addtogroup mips32 
    3030 * @{
    3131 */
     
    144144}
    145145
    146  /** @}
     146/** @}
    147147 */
    148 
  • kernel/arch/mips32/src/interrupt.c

    re5ecc02 r06e1e95  
    144144/** @}
    145145 */
    146 
  • kernel/arch/mips32/src/mips32.c

    re5ecc02 r06e1e95  
    3232/** @file
    3333 */
    34 
    3534
    3635#include <arch.h>
     
    180179}
    181180
    182 
    183181/** @}
    184182 */
  • kernel/arch/mips32/src/mm/as.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup mips32mm
     29/** @addtogroup mips32mm
    3030 * @{
    3131 */
     
    7373}
    7474
    75 
    76  /** @}
     75/** @}
    7776 */
    78 
  • kernel/arch/mips32/src/mm/page.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup mips32mm       
     29/** @addtogroup mips32mm       
    3030 * @{
    3131 */
     
    5151}
    5252
    53  /** @}
     53/** @}
    5454 */
    55 
Note: See TracChangeset for help on using the changeset viewer.