Changeset d99c1d2 in mainline for kernel/arch/ia32


Ignore:
Timestamp:
2010-03-23T14:41:06Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1b1164e8
Parents:
7c682dd1
Message:

use [u]int{8|16|32|64}_t type definitions as detected by the autotool
replace direct usage of arch/types.h with typedefs.h

Location:
kernel/arch/ia32
Files:
38 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/include/asm.h

    r7c682dd1 rd99c1d2  
    3838
    3939#include <arch/pm.h>
    40 #include <arch/types.h>
    4140#include <typedefs.h>
    4241#include <config.h>
  • kernel/arch/ia32/include/atomic.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_ia32_ATOMIC_H_
    3737
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939#include <arch/barrier.h>
    4040#include <preemption.h>
  • kernel/arch/ia32/include/bios/bios.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_ia32_BIOS_H_
    3737
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939
    4040#define BIOS_EBDA_PTR   0x40e
  • kernel/arch/ia32/include/boot/memmap.h

    r7c682dd1 rd99c1d2  
    6161#ifndef __ASM__
    6262
    63 #include <arch/types.h>
     63#include <typedefs.h>
    6464
    6565typedef struct {
  • kernel/arch/ia32/include/context.h

    r7c682dd1 rd99c1d2  
    3737
    3838#ifdef KERNEL
    39 #include <arch/types.h>
     39
     40#include <typedefs.h>
    4041
    4142#define STACK_ITEM_SIZE 4
  • kernel/arch/ia32/include/cpuid.h

    r7c682dd1 rd99c1d2  
    4343#ifndef __ASM__
    4444
    45 #include <arch/types.h>
     45#include <typedefs.h>
    4646
    4747typedef struct {
  • kernel/arch/ia32/include/drivers/i8254.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_ia32_I8254_H_
    3737
    38 #include <arch/types.h>
    39 
    4038extern void i8254_init(void);
    4139extern void i8254_calibrate_delay_loop(void);
  • kernel/arch/ia32/include/drivers/i8259.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_ia32_I8259_H_
    3737
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939#include <arch/interrupt.h>
    4040
  • kernel/arch/ia32/include/drivers/vesa.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_ia32_VESA_H_
    3737
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939
    4040extern bool vesa_init(void);
  • kernel/arch/ia32/include/faddr.h

    r7c682dd1 rd99c1d2  
    2727 */
    2828
    29 /** @addtogroup ia32   
     29/** @addtogroup ia32
    3030 * @{
    3131 */
     
    3636#define KERN_ia32_FADDR_H_
    3737
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939
    40 #define FADDR(fptr)             ((uintptr_t) (fptr))
     40#define FADDR(fptr)  ((uintptr_t) (fptr))
    4141
    4242#endif
  • kernel/arch/ia32/include/fpu_context.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_ia32_FPU_CONTEXT_H_
    3737
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939
    4040#define FPU_CONTEXT_ALIGN 16
  • kernel/arch/ia32/include/interrupt.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_ia32_INTERRUPT_H_
    3737
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939#include <arch/pm.h>
    4040
  • kernel/arch/ia32/include/mm/asid.h

    r7c682dd1 rd99c1d2  
    4343#define KERN_ia32_ASID_H_
    4444
    45 #include <arch/types.h>
     45#include <typedefs.h>
    4646
    4747typedef int32_t asid_t;
  • kernel/arch/ia32/include/mm/frame.h

    r7c682dd1 rd99c1d2  
    4242#ifndef __ASM__
    4343
    44 #include <arch/types.h>
     44#include <typedefs.h>
    4545
    4646extern uintptr_t last_frame;
  • kernel/arch/ia32/include/mm/page.h

    r7c682dd1 rd99c1d2  
    127127#include <mm/mm.h>
    128128#include <arch/interrupt.h>
    129 #include <arch/types.h>
    130129#include <typedefs.h>
    131130
  • kernel/arch/ia32/include/pm.h

    r7c682dd1 rd99c1d2  
    8080#ifndef __ASM__
    8181
    82 #include <arch/types.h>
     82#include <typedefs.h>
    8383#include <arch/context.h>
    8484
  • kernel/arch/ia32/include/proc/task.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_ia32_TASK_H_
    3737
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939#include <adt/bitmap.h>
    4040
  • kernel/arch/ia32/include/proc/thread.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_ia32_THREAD_H_
    3737
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939
    4040typedef struct {
     
    4242} thread_arch_t;
    4343
    44 #define thr_constructor_arch(t)
    45 #define thr_destructor_arch(t)
     44#define thr_constructor_arch(thr)
     45#define thr_destructor_arch(thr)
    4646
    4747#endif
  • kernel/arch/ia32/include/smp/apic.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_ia32_APIC_H_
    3737
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939#include <cpu.h>
    4040
  • kernel/arch/ia32/include/smp/mps.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_ia32_MPS_H_
    3737
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939#include <synch/waitq.h>
    4040#include <config.h>
  • kernel/arch/ia32/include/smp/smp.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_ia32_SMP_H_
    3737
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939
    4040/** SMP config opertaions interface. */
  • kernel/arch/ia32/include/types.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_ia32_TYPES_H_
    3737
    38 #include <arch/common.h>
    39 
    4038typedef uint32_t size_t;
    4139
     
    5250} fncptr_t;
    5351
    54 #define PRIp "x"        /**< Format for uintptr_t. */
    55 #define PRIs "u"        /**< Format for size_t. */
     52#define PRIp "x"  /**< Format for uintptr_t. */
     53#define PRIs "u"  /**< Format for size_t. */
    5654
    57 #define PRId8 "d"       /**< Format for int8_t. */
    58 #define PRId16 "d"      /**< Format for int16_t. */
    59 #define PRId32 "d"      /**< Format for int32_t. */
    60 #define PRId64 "lld"    /**< Format for int64_t. */
    61 #define PRIdn "d"       /**< Format for native_t. */
     55#define PRId8 "d"     /**< Format for int8_t. */
     56#define PRId16 "d"    /**< Format for int16_t. */
     57#define PRId32 "d"    /**< Format for int32_t. */
     58#define PRId64 "lld"  /**< Format for int64_t. */
     59#define PRIdn "d"     /**< Format for native_t. */
    6260
    63 #define PRIu8 "u"       /**< Format for uint8_t. */
    64 #define PRIu16 "u"      /**< Format for uint16_t. */
    65 #define PRIu32 "u"      /**< Format for uint32_t. */
    66 #define PRIu64 "llu"    /**< Format for uint64_t. */
    67 #define PRIun "u"       /**< Format for unative_t. */
     61#define PRIu8 "u"     /**< Format for uint8_t. */
     62#define PRIu16 "u"    /**< Format for uint16_t. */
     63#define PRIu32 "u"    /**< Format for uint32_t. */
     64#define PRIu64 "llu"  /**< Format for uint64_t. */
     65#define PRIun "u"     /**< Format for unative_t. */
    6866
    69 #define PRIx8 "x"       /**< Format for hexadecimal (u)int8_t. */
    70 #define PRIx16 "x"      /**< Format for hexadecimal (u)int16_t. */
    71 #define PRIx32 "x"      /**< Format for hexadecimal (u)uint32_t. */
    72 #define PRIx64 "llx"    /**< Format for hexadecimal (u)int64_t. */
    73 #define PRIxn "x"       /**< Format for hexadecimal (u)native_t. */
     67#define PRIx8 "x"     /**< Format for hexadecimal (u)int8_t. */
     68#define PRIx16 "x"    /**< Format for hexadecimal (u)int16_t. */
     69#define PRIx32 "x"    /**< Format for hexadecimal (u)uint32_t. */
     70#define PRIx64 "llx"  /**< Format for hexadecimal (u)int64_t. */
     71#define PRIxn "x"     /**< Format for hexadecimal (u)native_t. */
    7472
    7573#endif
  • kernel/arch/ia32/src/bios/bios.c

    r7c682dd1 rd99c1d2  
    3434
    3535#include <arch/bios/bios.h>
    36 #include <arch/types.h>
     36#include <typedefs.h>
    3737
    3838uintptr_t ebda = 0;
  • kernel/arch/ia32/src/cpu/cpu.c

    r7c682dd1 rd99c1d2  
    3838
    3939#include <arch.h>
    40 #include <arch/types.h>
     40#include <typedefs.h>
    4141#include <print.h>
    4242#include <fpu_context.h>
  • kernel/arch/ia32/src/ddi/ddi.c

    r7c682dd1 rd99c1d2  
    3636#include <arch/ddi/ddi.h>
    3737#include <proc/task.h>
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939#include <adt/bitmap.h>
    4040#include <mm/slab.h>
  • kernel/arch/ia32/src/debug/stacktrace.c

    r7c682dd1 rd99c1d2  
    3535#include <stacktrace.h>
    3636#include <syscall/copy.h>
    37 #include <arch/types.h>
    3837#include <typedefs.h>
    3938
  • kernel/arch/ia32/src/drivers/i8254.c

    r7c682dd1 rd99c1d2  
    3737 */
    3838
    39 #include <arch/types.h>
     39#include <typedefs.h>
    4040#include <time/clock.h>
    4141#include <time/delay.h>
  • kernel/arch/ia32/src/drivers/i8259.c

    r7c682dd1 rd99c1d2  
    3939#include <arch/drivers/i8259.h>
    4040#include <cpu.h>
    41 #include <arch/types.h>
     41#include <typedefs.h>
    4242#include <arch/asm.h>
    4343#include <arch.h>
  • kernel/arch/ia32/src/drivers/vesa.c

    r7c682dd1 rd99c1d2  
    4949#include <synch/spinlock.h>
    5050#include <arch/asm.h>
    51 #include <arch/types.h>
     51#include <typedefs.h>
    5252#include <memstr.h>
    5353#include <bitops.h>
  • kernel/arch/ia32/src/ia32.c

    r7c682dd1 rd99c1d2  
    3737#include <arch.h>
    3838
    39 #include <arch/types.h>
     39#include <typedefs.h>
    4040
    4141#include <arch/pm.h>
  • kernel/arch/ia32/src/mm/page.c

    r7c682dd1 rd99c1d2  
    3939#include <mm/page.h>
    4040#include <mm/as.h>
    41 #include <arch/types.h>
     41#include <typedefs.h>
    4242#include <align.h>
    4343#include <config.h>
  • kernel/arch/ia32/src/mm/tlb.c

    r7c682dd1 rd99c1d2  
    3737#include <arch/mm/asid.h>
    3838#include <arch/asm.h>
    39 #include <arch/types.h>
     39#include <typedefs.h>
    4040
    4141/** Invalidate all entries in TLB. */
  • kernel/arch/ia32/src/pm.c

    r7c682dd1 rd99c1d2  
    3535#include <arch/pm.h>
    3636#include <config.h>
    37 #include <arch/types.h>
     37#include <typedefs.h>
    3838#include <arch/interrupt.h>
    3939#include <arch/asm.h>
  • kernel/arch/ia32/src/proc/task.c

    r7c682dd1 rd99c1d2  
    3434
    3535#include <proc/task.h>
    36 #include <arch/types.h>
     36#include <typedefs.h>
    3737#include <adt/bitmap.h>
    3838#include <mm/slab.h>
  • kernel/arch/ia32/src/smp/apic.c

    r7c682dd1 rd99c1d2  
    3333 */
    3434
    35 #include <arch/types.h>
     35#include <typedefs.h>
    3636#include <arch/smp/apic.h>
    3737#include <arch/smp/ap.h>
  • kernel/arch/ia32/src/smp/mps.c

    r7c682dd1 rd99c1d2  
    4242#include <arch/smp/smp.h>
    4343#include <func.h>
    44 #include <arch/types.h>
     44#include <typedefs.h>
    4545#include <cpu.h>
    4646#include <arch/asm.h>
  • kernel/arch/ia32/src/syscall.c

    r7c682dd1 rd99c1d2  
    2727 */
    2828
    29 /** @addtogroup ia32   
     29/** @addtogroup ia32
    3030 * @{
    3131 */
     
    3636#include <arch/cpu.h>
    3737#include <arch/asm.h>
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939#include <arch/pm.h>
    4040
  • kernel/arch/ia32/src/userspace.c

    r7c682dd1 rd99c1d2  
    3535#include <userspace.h>
    3636#include <arch/pm.h>
    37 #include <arch/types.h>
     37#include <typedefs.h>
    3838#include <arch.h>
    3939#include <proc/uarg.h>
Note: See TracChangeset for help on using the changeset viewer.