Changeset 06e1e95 in mainline for kernel/arch/amd64


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/amd64
Files:
34 edited

Legend:

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

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

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64 
     29/** @addtogroup amd64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __amd64_ASM_H__
    36 #define __amd64_ASM_H__
     35#ifndef KERN_amd64_ASM_H_
     36#define KERN_amd64_ASM_H_
    3737
    3838#include <arch/pm.h>
     
    275275GEN_WRITE_REG(dr7);
    276276
    277 
    278277extern size_t interrupt_handler_size;
    279278extern void interrupt_handlers(void);
     
    281280#endif
    282281
    283  /** @}
    284  */
    285 
     282/** @}
     283 */
  • kernel/arch/amd64/include/atomic.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64 
     29/** @addtogroup amd64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __amd64_ATOMIC_H__
    36 #define __amd64_ATOMIC_H__
     35#ifndef KERN_amd64_ATOMIC_H_
     36#define KERN_amd64_ATOMIC_H_
    3737
    3838#include <arch/types.h>
     
    126126#endif
    127127
    128  /** @}
     128/** @}
    129129 */
    130 
  • kernel/arch/amd64/include/boot/boot.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __amd64_BOOT_H__
    36 #define __amd64_BOOT_H__
     35#ifndef KERN_amd64_BOOT_H_
     36#define KERN_amd64_BOOT_H_
    3737
    38 #define BOOT_OFFSET                     0x108000
     38#define BOOT_OFFSET             0x108000
    3939#define AP_BOOT_OFFSET          0x8000
    40 #define BOOT_STACK_SIZE 0x400
     40#define BOOT_STACK_SIZE         0x400
    4141
    4242#define MULTIBOOT_HEADER_MAGIC  0x1BADB002
  • kernel/arch/amd64/include/byteorder.h

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

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64 
     29/** @addtogroup amd64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __amd64_CONTEXT_H__
    36 #define __amd64_CONTEXT_H__
     35#ifndef KERN_amd64_CONTEXT_H_
     36#define KERN_amd64_CONTEXT_H_
    3737
    38 #ifndef __amd64_TYPES_H__
     38#ifndef KERN_amd64_TYPES_H_
    3939#  include <arch/types.h>
    4040#endif
     
    6767#endif
    6868
    69  /** @}
     69/** @}
    7070 */
    71 
  • kernel/arch/amd64/include/context_offset.h

    re5ecc02 r06e1e95  
    1010#define OFFSET_IPL 0x40
    1111
    12  /** @}
    13  */
    14 
  • kernel/arch/amd64/include/cpu.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __amd64_CPU_H__
    36 #define __amd64_CPU_H__
     35#ifndef KERN_amd64_CPU_H_
     36#define KERN_amd64_CPU_H_
    3737
    3838#define RFLAGS_IF       (1 << 9)
  • kernel/arch/amd64/include/cpuid.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __amd64_CPUID_H__
    36 #define __amd64_CPUID_H__
     35#ifndef KERN_amd64_CPUID_H_
     36#define KERN_amd64_CPUID_H_
    3737
    3838#define AMD_CPUID_EXTENDED   0x80000001
     
    6161extern uint64_t rdtsc(void);
    6262
    63 #endif /* __ASM__ */
     63#endif /* !def __ASM__ */
    6464#endif
    6565
  • kernel/arch/amd64/include/ddi/ddi.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64ddi
     29/** @addtogroup amd64ddi
    3030 * @{
    3131 */
     
    3636 */
    3737
    38 #ifndef __amd64_DDI_H__
    39 #define __amd64_DDI_H__
     38#ifndef KERN_amd64_DDI_H_
     39#define KERN_amd64_DDI_H_
    4040
    4141extern void io_perm_bitmap_install(void);
     
    4343#endif
    4444
    45  /** @}
     45/** @}
    4646 */
    47 
  • kernel/arch/amd64/include/debugger.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64debug
     29/** @addtogroup amd64debug
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __amd64_DEBUGGER_H__
    36 #define __amd64_DEBUGGER_H__
     35#ifndef KERN_amd64_DEBUGGER_H_
     36#define KERN_amd64_DEBUGGER_H_
    3737
    3838#include <arch/types.h>
     
    5454#endif
    5555
    56  /** @}
     56/** @}
    5757 */
    58 
  • kernel/arch/amd64/include/drivers/vesa.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64 
     29/** @addtogroup amd64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __VESA_H__
    36 #define __VESA_H__
    37 
     35#ifndef KERN_amd64_VESA_H_
     36#define KERN_amd64_VESA_H_
    3837
    3938int vesa_present(void);
    4039void vesa_init(void);
    4140
    42 
    4341#endif
    4442
    45  /** @}
     43/** @}
    4644 */
    47 
  • kernel/arch/amd64/include/elf.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64 
     29/** @addtogroup amd64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __amd64_ELF_H__
    36 #define __amd64_ELF_H__
     35#ifndef KERN_amd64_ELF_H_
     36#define KERN_amd64_ELF_H_
    3737
    3838#define ELF_MACHINE             EM_X86_64
     
    4242#endif
    4343
    44  /** @}
     44/** @}
    4545 */
    46 
  • kernel/arch/amd64/include/faddr.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __amd64_FADDR_H__
    36 #define __amd64_FADDR_H__
     35#ifndef KERN_amd64_FADDR_H_
     36#define KERN_amd64_FADDR_H_
    3737
    3838#include <arch/types.h>
  • kernel/arch/amd64/include/interrupt.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64interrupt
     29/** @addtogroup amd64interrupt
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ia32_INTERRUPT_H__
    36 #define __ia32_INTERRUPT_H__
     35#ifndef KERN_amd64_INTERRUPT_H_
     36#define KERN_amd64_INTERRUPT_H_
    3737
    3838#include <arch/types.h>
     
    129129#endif
    130130
    131  /** @}
     131/** @}
    132132 */
    133 
  • kernel/arch/amd64/include/memstr.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64 
     29/** @addtogroup amd64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __amd64_MEMSTR_H__
    36 #define __amd64_MEMSTR_H__
     35#ifndef KERN_amd64_MEMSTR_H_
     36#define KERN_amd64_MEMSTR_H_
    3737
    3838/** Copy memory
     
    142142#endif
    143143
    144  /** @}
     144/** @}
    145145 */
    146 
  • kernel/arch/amd64/include/mm/as.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64mm       
     29/** @addtogroup amd64mm
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __amd64_AS_H__
    36 #define __amd64_AS_H__
     35#ifndef KERN_amd64_AS_H_
     36#define KERN_amd64_AS_H_
    3737
    3838#define KERNEL_ADDRESS_SPACE_SHADOWED_ARCH      0
     
    5151#endif
    5252
    53  /** @}
     53/** @}
    5454 */
    55 
  • kernel/arch/amd64/include/mm/frame.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64mm       
     29/** @addtogroup amd64mm
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __amd64_FRAME_H__
    36 #define __amd64_FRAME_H__
     35#ifndef KERN_amd64_FRAME_H_
     36#define KERN_amd64_FRAME_H_
    3737
    3838#ifndef __ASM__
     
    4343#define FRAME_SIZE              (1<<FRAME_WIDTH)
    4444
    45 
    4645#ifndef __ASM__
    4746extern uintptr_t last_frame;
     
    5150#endif
    5251
    53  /** @}
     52/** @}
    5453 */
    55 
  • kernel/arch/amd64/include/mm/page.h

    re5ecc02 r06e1e95  
    4545 */
    4646
    47 #ifndef __amd64_PAGE_H__
    48 #define __amd64_PAGE_H__
     47#ifndef KERN_amd64_PAGE_H_
     48#define KERN_amd64_PAGE_H_
    4949
    5050#include <arch/mm/frame.h>
  • kernel/arch/amd64/include/mm/ptl.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64mm       
     29/** @addtogroup amd64mm
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 
    36 #ifndef __amd64_PTL_H_
    37 #define __amd64_PTL_H_
     35#ifndef KERN_amd64_PTL_H_
     36#define KERN_amd64_PTL_H_
    3837
    3938#define PTL_NO_EXEC       (1<<63)
     
    4948#endif
    5049
    51  /** @}
     50/** @}
    5251 */
    53 
  • kernel/arch/amd64/include/mm/tlb.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64mm       
     29/** @addtogroup amd64mm
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __amd64_TLB_H__
    36 #define __amd64_TLB_H__
     35#ifndef KERN_amd64_TLB_H_
     36#define KERN_amd64_TLB_H_
    3737
    3838#define tlb_arch_init()
     
    4141#endif
    4242
    43  /** @}
     43/** @}
    4444 */
    45 
  • kernel/arch/amd64/include/pm.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64 
     29/** @addtogroup amd64   
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __amd64_PM_H__
    36 #define __amd64_PM_H__
     35#ifndef KERN_amd64_PM_H_
     36#define KERN_amd64_PM_H_
    3737
    3838#ifndef __ASM__
     
    195195#endif
    196196
    197  /** @}
     197/** @}
    198198 */
    199 
  • kernel/arch/amd64/include/syscall.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64
     29/** @addtogroup amd64
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __amd64_SYSCALL_H__
    36 #define __amd64_SYSCALL_H__
     35#ifndef KERN_amd64_SYSCALL_H_
     36#define KERN_amd64_SYSCALL_H_
    3737
    3838#include <arch/types.h>
     
    4242#endif
    4343
    44  /** @}
     44/** @}
    4545 */
    46 
  • kernel/arch/amd64/include/types.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __amd64_TYPES_H__
    36 #define __amd64_TYPES_H__
     35#ifndef KERN_amd64_TYPES_H_
     36#define KERN_amd64_TYPES_H_
    3737
    3838#define NULL 0
  • kernel/arch/amd64/src/ddi/ddi.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64ddi
     29/** @addtogroup amd64ddi
    3030 * @{
    3131 */
     
    163163}
    164164
    165  /** @}
     165/** @}
    166166 */
    167 
  • kernel/arch/amd64/src/debugger.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64debug
     29/** @addtogroup amd64debug
    3030 * @{
    3131 */
     
    383383}
    384384
    385  /** @}
    386  */
    387 
     385/** @}
     386 */
  • kernel/arch/amd64/src/interrupt.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64interrupt
     29/** @addtogroup amd64interrupt
    3030 * @{
    3131 */
     
    183183}
    184184
    185  /** @}
     185/** @}
    186186 */
    187 
  • kernel/arch/amd64/src/mm/memory_init.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64mm       
     29/** @addtogroup amd64mm
    3030 * @{
    3131 */
     
    7676}
    7777
    78 
    79  /** @}
     78/** @}
    8079 */
    81 
  • kernel/arch/amd64/src/mm/page.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64mm
     29/** @addtogroup amd64mm
    3030 * @{
    3131 */
     
    216216}
    217217
    218  /** @}
    219  */
    220 
     218/** @}
     219 */
  • kernel/arch/amd64/src/pm.c

    re5ecc02 r06e1e95  
    2828 */
    2929
    30  /** @addtogroup amd64 
     30/** @addtogroup amd64   
    3131 * @{
    3232 */
     
    241241}
    242242
    243  /** @}
    244  */
    245 
     243/** @}
     244 */
  • kernel/arch/amd64/src/proc/scheduler.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64proc
     29/** @addtogroup amd64proc
    3030 * @{
    3131 */
     
    8181}
    8282
    83  /** @}
     83/** @}
    8484 */
    85 
  • kernel/arch/amd64/src/proc/task.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64proc
     29/** @addtogroup amd64proc
    3030 * @{
    3131 */
     
    5757}
    5858
    59  /** @}
     59/** @}
    6060 */
    61 
  • kernel/arch/amd64/src/syscall.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64
     29/** @addtogroup amd64
    3030 * @{
    3131 */
     
    6868}
    6969
    70  /** @}
     70/** @}
    7171 */
    72 
  • kernel/arch/amd64/src/userspace.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup amd64 
     29/** @addtogroup amd64   
    3030 * @{
    3131 */
     
    7878}
    7979
    80  /** @}
     80/** @}
    8181 */
    82 
Note: See TracChangeset for help on using the changeset viewer.