Changeset 06e1e95 in mainline for kernel/arch/ia64


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/ia64
Files:
1 deleted
35 edited

Legend:

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

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64   
     29/** @addtogroup ia64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_ARG_H__
    36 #define __ia64_ARG_H__
     35#ifndef KERN_ia64_ARG_H_
     36#define KERN_ia64_ARG_H_
    3737
    3838#include <stdarg.h>
     
    4040#endif
    4141
    42  /** @}
     42/** @}
    4343 */
    44 
  • kernel/arch/ia64/include/asm.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64   
     29/** @addtogroup ia64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_ASM_H__
    36 #define __ia64_ASM_H__
     35#ifndef KERN_ia64_ASM_H_
     36#define KERN_ia64_ASM_H_
    3737
    3838#include <config.h>
     
    282282#endif
    283283
    284  /** @}
    285  */
    286 
     284/** @}
     285 */
  • kernel/arch/ia64/include/atomic.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64   
     29/** @addtogroup ia64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_ATOMIC_H__
    36 #define __ia64_ATOMIC_H__
     35#ifndef KERN_ia64_ATOMIC_H_
     36#define KERN_ia64_ATOMIC_H_
    3737
    3838/** Atomic addition.
     
    6363#endif
    6464
    65  /** @}
     65/** @}
    6666 */
    67 
  • kernel/arch/ia64/include/barrier.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64   
     29/** @addtogroup ia64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_BARRIER_H__
    36 #define __ia64_BARRIER_H__
     35#ifndef KERN_ia64_BARRIER_H_
     36#define KERN_ia64_BARRIER_H_
    3737
    3838/*
     
    5151#endif
    5252
    53  /** @}
     53/** @}
    5454 */
    55 
  • kernel/arch/ia64/include/byteorder.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64   
     29/** @addtogroup ia64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_BYTEORDER_H__
    36 #define __ia64_BYTEORDER_H__
     35#ifndef KERN_ia64_BYTEORDER_H_
     36#define KERN_ia64_BYTEORDER_H_
    3737
    3838/* IA-64 is little-endian */
     
    4242#endif
    4343
    44  /** @}
     44/** @}
    4545 */
    46 
  • kernel/arch/ia64/include/context.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64   
     29/** @addtogroup ia64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_CONTEXT_H__
    36 #define __ia64_CONTEXT_H__
     35#ifndef KERN_ia64_CONTEXT_H_
     36#define KERN_ia64_CONTEXT_H_
    3737
    3838#include <arch/types.h>
     
    133133#endif
    134134
    135  /** @}
     135/** @}
    136136 */
    137 
  • kernel/arch/ia64/include/cpu.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __ia64_CPU_H__
    36 #define __ia64_CPU_H__
     35#ifndef KERN_ia64_CPU_H_
     36#define KERN_ia64_CPU_H_
    3737
    3838#include <arch/types.h>
  • kernel/arch/ia64/include/debug.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64debug ia64
     29/** @addtogroup ia64debug ia64
    3030 * @ingroup debug
    3131 * @{
     
    3434 */
    3535
    36 #ifndef __ia64_DEBUG_H__
    37 #define __ia64_DEBUG_H__
     36#ifndef KERN_ia64_DEBUG_H_
     37#define KERN_ia64_DEBUG_H_
    3838
    3939#endif
    4040
    41  /** @}
     41/** @}
    4242 */
    43 
  • kernel/arch/ia64/include/drivers/it.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64   
     29/** @addtogroup ia64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_IT_H__
    36 #define __ia64_IT_H__
     35#ifndef KERN_ia64_IT_H_
     36#define KERN_ia64_IT_H_
    3737
    3838/*
     
    4949#endif
    5050
    51  /** @}
     51/** @}
    5252 */
    53 
  • kernel/arch/ia64/include/elf.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64   
     29/** @addtogroup ia64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_ELF_H__
    36 #define __ia64_ELF_H__
     35#ifndef KERN_ia64_ELF_H_
     36#define KERN_ia64_ELF_H_
    3737
    3838#define ELF_MACHINE             EM_IA_64
     
    4242#endif
    4343
    44  /** @}
     44/** @}
    4545 */
    46 
  • kernel/arch/ia64/include/fpu_context.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64   
     29/** @addtogroup ia64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_FPU_CONTEXT_H__
    36 #define __ia64_FPU_CONTEXT_H__
     35#ifndef KERN_ia64_FPU_CONTEXT_H_
     36#define KERN_ia64_FPU_CONTEXT_H_
    3737
    3838#define ARCH_HAS_FPU 1
     
    4747};
    4848
    49 
    5049#endif
    5150
    52  /** @}
     51/** @}
    5352 */
    54 
  • kernel/arch/ia64/include/interrupt.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64interrupt
     29/** @addtogroup ia64interrupt
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_INTERRUPT_H__
    36 #define __ia64_INTERRUPT_H__
     35#ifndef KERN_ia64_INTERRUPT_H_
     36#define KERN_ia64_INTERRUPT_H_
    3737
    3838#include <typedefs.h>
     
    124124        return istate->cr_iip;
    125125}
    126 #include <panic.h>
     126
    127127static inline int istate_from_uspace(istate_t *istate)
    128128{
     
    140140extern void disabled_fp_register(uint64_t vector, istate_t *istate);
    141141
    142 
    143 
    144142#endif
    145143
    146  /** @}
     144/** @}
    147145 */
    148 
  • kernel/arch/ia64/include/memstr.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64   
     29/** @addtogroup ia64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_MEMSTR_H__
    36 #define __ia64_MEMSTR_H__
     35#ifndef KERN_ia64_MEMSTR_H_
     36#define KERN_ia64_MEMSTR_H_
    3737
    3838#define memcpy(dst, src, cnt)  __builtin_memcpy((dst), (src), (cnt))
     
    4545#endif
    4646
    47  /** @}
     47/** @}
    4848 */
    49 
  • kernel/arch/ia64/include/mm/as.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64mm
     29/** @addtogroup ia64mm 
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_AS_H__
    36 #define __ia64_AS_H__
     35#ifndef KERN_ia64_AS_H_
     36#define KERN_ia64_AS_H_
    3737
    3838#define KERNEL_ADDRESS_SPACE_SHADOWED_ARCH      0
     
    4949#endif
    5050
    51  /** @}
     51/** @}
    5252 */
    53 
  • kernel/arch/ia64/include/mm/asid.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64mm
     29/** @addtogroup ia64mm 
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_ASID_H__
    36 #define __ia64_ASID_H__
     35#ifndef KERN_ia64_ASID_H_
     36#define KERN_ia64_ASID_H_
    3737
    3838#ifndef __ASM__
     
    6363#endif
    6464
    65  /** @}
     65/** @}
    6666 */
    67 
  • kernel/arch/ia64/include/mm/frame.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64mm
     29/** @addtogroup ia64mm 
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_FRAME_H__
    36 #define __ia64_FRAME_H__
     35#ifndef KERN_ia64_FRAME_H_
     36#define KERN_ia64_FRAME_H_
    3737
    3838#define FRAME_WIDTH   14        /* 16K */
     
    5151#endif
    5252
    53  /** @}
     53/** @}
    5454 */
    55 
  • kernel/arch/ia64/include/mm/memory_init.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64mm
     29/** @addtogroup ia64mm 
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_MEMORY_INIT_H__
    36 #define __ia64_MEMORY_INIT_H__
     35#ifndef KERN_ia64_MEMORY_INIT_H_
     36#define KERN_ia64_MEMORY_INIT_H_
    3737
    3838#include <config.h>
     
    4242#endif
    4343
    44  /** @}
     44/** @}
    4545 */
    46 
  • kernel/arch/ia64/include/mm/page.h

    re5ecc02 r06e1e95  
    3434 */
    3535
    36 #ifndef __ia64_PAGE_H__
    37 #define __ia64_PAGE_H__
     36#ifndef KERN_ia64_PAGE_H_
     37#define KERN_ia64_PAGE_H_
    3838
    3939#include <arch/mm/frame.h>
  • kernel/arch/ia64/include/mm/tlb.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64mm
     29/** @addtogroup ia64mm 
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_TLB_H__
    36 #define __ia64_TLB_H__
     35#ifndef KERN_ia64_TLB_H_
     36#define KERN_ia64_TLB_H_
    3737
    3838#define tlb_arch_init()
     
    101101#endif
    102102
    103  /** @}
     103/** @}
    104104 */
    105 
  • kernel/arch/ia64/include/mm/vhpt.h

    re5ecc02 r06e1e95  
    11/*
    2 * Copyright (C) 2006 Jakub Vana
    3 * All rights reserved.
    4 *
    5 * Redistribution and use in source and binary forms, with or without
    6 * modification, are permitted provided that the following conditions
    7 * are met:
    8 *
    9 * - Redistributions of source code must retain the above copyright
    10 *   notice, this list of conditions and the following disclaimer.
    11 * - Redistributions in binary form must reproduce the above copyright
    12 *   notice, this list of conditions and the following disclaimer in the
    13 *   documentation and/or other materials provided with the distribution.
    14 * - The name of the author may not be used to endorse or promote products
    15 *   derived from this software without specific prior written permission.
    16 *
    17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
    18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
    21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
    22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     2 * Copyright (C) 2006 Jakub Vana
     3 * All rights reserved.
     4 *
     5 * Redistribution and use in source and binary forms, with or without
     6 * modification, are permitted provided that the following conditions
     7 * are met:
     8 *
     9 * - Redistributions of source code must retain the above copyright
     10 *   notice, this list of conditions and the following disclaimer.
     11 * - Redistributions in binary form must reproduce the above copyright
     12 *   notice, this list of conditions and the following disclaimer in the
     13 *   documentation and/or other materials provided with the distribution.
     14 * - The name of the author may not be used to endorse or promote products
     15 *   derived from this software without specific prior written permission.
     16 *
     17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
    2828
    29  /** @addtogroup ia64mm
     29/** @addtogroup ia64mm 
    3030 * @{
    3131 */
    3232/** @file
    3333*/
    34                                                                                                        
    35 
    36 #ifndef __ia64_VHPT_H__
    37 #define __ia64_VHPT_H__
     34                                                                                               
     35#ifndef KERN_ia64_VHPT_H_
     36#define KERN_ia64_VHPT_H_
    3837
    3938#include <arch/mm/tlb.h>
     
    5655void vhpt_invalidate_asid(asid_t asid);
    5756
    58 
    5957#endif
    6058
    61 
    62  /** @}
     59/** @}
    6360 */
    64 
  • kernel/arch/ia64/include/pal/pal.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64   
     29/** @addtogroup ia64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_PAL_H__
    36 #define __ia64_PAL_H__
     35#ifndef KERN_ia64_PAL_H_
     36#define KERN_ia64_PAL_H_
    3737
    3838#define PAL_OK           0      /**< Call completed without error. */
     
    9696
    9797/*
    98         Ski PTCE data
    99 */
     98 *      Ski PTCE data
     99 */
    100100#define PAL_PTCE_INFO_BASE() (0x100000000LL)
    101101#define PAL_PTCE_INFO_COUNT1() (2)
     
    104104#define PAL_PTCE_INFO_STRIDE2() (0x2000)
    105105
    106 
    107106#endif
    108107
    109  /** @}
     108/** @}
    110109 */
    111 
  • kernel/arch/ia64/include/proc/task.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64proc
     29/** @addtogroup ia64proc
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_TASK_H__
    36 #define __ia64_TASK_H__
     35#ifndef KERN_ia64_TASK_H_
     36#define KERN_ia64_TASK_H_
    3737
    3838typedef struct {
     
    4444#endif
    4545
    46  /** @}
     46/** @}
    4747 */
    48 
  • kernel/arch/ia64/include/register.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64   
     29/** @addtogroup ia64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_REGISTER_H__
    36 #define __ia64_REGISTER_H__
     35#ifndef KERN_ia64_REGISTER_H_
     36#define KERN_ia64_REGISTER_H_
    3737
    3838#define CR_IVR_MASK     0xf
     
    275275#endif
    276276
    277  /** @}
    278  */
    279 
     277/** @}
     278 */
  • kernel/arch/ia64/include/ski/ski.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64   
     29/** @addtogroup ia64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __SKI_H__
    36 #define __SKI_H__
     35#ifndef KERN_ia64_SKI_H_
     36#define KERN_ia64_SKI_H_
    3737
    3838#include <arch/types.h>
     
    5252#endif
    5353
    54  /** @}
     54/** @}
    5555 */
    56 
  • kernel/arch/ia64/include/stack.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64   
     29/** @addtogroup ia64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia64_STACK_H__
    36 #define __ia64_STACK_H__
     35#ifndef KERN_ia64_STACK_H_
     36#define KERN_ia64_STACK_H_
    3737
    3838#define STACK_ITEM_SIZE                 8
     
    4343#endif
    4444
    45  /** @}
     45/** @}
    4646 */
    47 
  • kernel/arch/ia64/include/types.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __TYPES_H__
    36 #define __TYPES_H__
     35#ifndef KERN_ia64_TYPES_H_
     36#define KERN_ia64_TYPES_H_
    3737
    3838#define NULL    0
     
    7171/** @}
    7272 */
    73 
  • kernel/arch/ia64/src/ia64.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64
     29/** @addtogroup ia64
    3030 * @{
    3131 */
     
    153153}
    154154
    155  /** @}
     155/** @}
    156156 */
    157 
  • kernel/arch/ia64/src/interrupt.c

    re5ecc02 r06e1e95  
    217217        }
    218218
    219         if (istate->in4 < SYSCALL_END)
    220                 return syscall_table[istate->in4](istate->in0, istate->in1, istate->in2, istate->in3);
    221         else
    222                 panic("Undefined syscall %d", istate->in4);
    223                
    224         return -1;
     219        return syscall_handler(istate->in0, istate->in1, istate->in2, istate->in3, istate->in4);
    225220}
    226221
  • kernel/arch/ia64/src/mm/as.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64mm
     29/** @addtogroup ia64mm
    3030 * @{
    3131 */
     
    8686}
    8787
    88  /** @}
     88/** @}
    8989 */
    90 
  • kernel/arch/ia64/src/mm/frame.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64mm
     29/** @addtogroup ia64mm 
    3030 * @{
    3131 */
     
    5555}
    5656
    57  /** @}
     57/** @}
    5858 */
    59 
  • kernel/arch/ia64/src/mm/page.c

    re5ecc02 r06e1e95  
    2828 */
    2929
    30  /** @addtogroup ia64mm
     30/** @addtogroup ia64mm 
    3131 * @{
    3232 */
     
    264264}
    265265
    266  /** @}
    267  */
    268 
     266/** @}
     267 */
  • kernel/arch/ia64/src/mm/vhpt.c

    re5ecc02 r06e1e95  
    3232/** @file
    3333*/
    34                                                                                                        
    3534
    3635#include <arch/mm/vhpt.h>
    3736#include <mm/frame.h>
    3837#include <print.h>
    39 
    4038
    4139static vhpt_entry_t* vhpt_base;
  • kernel/arch/ia64/src/proc/scheduler.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64proc
     29/** @addtogroup ia64proc
    3030 * @{
    3131 */
     
    8989}
    9090
    91  /** @}
     91/** @}
    9292 */
    93 
  • kernel/arch/ia64/src/putchar.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64   
     29/** @addtogroup ia64   
    3030 * @{
    3131 */
     
    4141}
    4242
    43  /** @}
     43/** @}
    4444 */
    45 
  • kernel/arch/ia64/src/ski/ski.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup ia64   
     29/** @addtogroup ia64   
    3030 * @{
    3131 */
     
    159159}
    160160
    161 
    162161static chardev_operations_t ski_ops = {
    163162        .resume = ski_kb_enable,
     
    166165        .read = ski_getchar_blocking
    167166};
    168 
    169167
    170168/** Initialize debug console
     
    189187
    190188}
     189
    191190/** Setup console sysinfo (i.e. Keyboard IRQ)
    192191 *
     
    201200}
    202201
    203  /** @}
    204  */
    205 
     202/** @}
     203 */
Note: See TracChangeset for help on using the changeset viewer.