Changeset d99c1d2 in mainline for kernel/arch/arm32


Ignore:
Timestamp:
2010-03-23T14:41:06Z (15 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/arm32
Files:
18 edited

Legend:

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

    r7c682dd1 rd99c1d2  
    3838
    3939#include <typedefs.h>
    40 #include <arch/types.h>
    4140#include <arch/stack.h>
    4241#include <config.h>
  • kernel/arch/arm32/include/context.h

    r7c682dd1 rd99c1d2  
    5252#ifndef __ASM__
    5353
    54 #include <arch/types.h>
     54#include <typedefs.h>
    5555
    5656/** Thread context containing registers that must be preserved across function
  • kernel/arch/arm32/include/cpu.h

    r7c682dd1 rd99c1d2  
    3737#define KERN_arm32_CPU_H_
    3838
    39 #include <arch/types.h>
     39#include <typedefs.h>
    4040#include <arch/asm.h>
    4141
  • kernel/arch/arm32/include/exception.h

    r7c682dd1 rd99c1d2  
    3838#define KERN_arm32_EXCEPTION_H_
    3939
    40 #include <arch/types.h>
     40#include <typedefs.h>
    4141#include <arch/regutils.h>
    4242
  • kernel/arch/arm32/include/faddr.h

    r7c682dd1 rd99c1d2  
    3737#define KERN_arm32_FADDR_H_
    3838
    39 #include <arch/types.h>
     39#include <typedefs.h>
    4040
    4141/** Calculate absolute address of function referenced by fptr pointer.
  • kernel/arch/arm32/include/fpu_context.h

    r7c682dd1 rd99c1d2  
    3939#define KERN_arm32_FPU_CONTEXT_H_
    4040
    41 #include <arch/types.h>
     41#include <typedefs.h>
    4242
    4343#define FPU_CONTEXT_ALIGN    0
  • kernel/arch/arm32/include/interrupt.h

    r7c682dd1 rd99c1d2  
    3737#define KERN_arm32_INTERRUPT_H_
    3838
    39 #include <arch/types.h>
     39#include <typedefs.h>
    4040#include <arch/exception.h>
    4141
  • kernel/arch/arm32/include/machine_func.h

    r7c682dd1 rd99c1d2  
    4343
    4444#include <console/console.h>
    45 #include <arch/types.h>
     45#include <typedefs.h>
    4646#include <arch/exception.h>
    4747
  • kernel/arch/arm32/include/mm/asid.h

    r7c682dd1 rd99c1d2  
    3939#define KERN_arm32_ASID_H_
    4040
    41 #include <arch/types.h>
     41#include <typedefs.h>
    4242
    4343#define ASID_MAX_ARCH           3       /* minimal required number */
  • kernel/arch/arm32/include/mm/frame.h

    r7c682dd1 rd99c1d2  
    4343#ifndef __ASM__
    4444
    45 #include <arch/types.h>
     45#include <typedefs.h>
    4646
    4747#define BOOT_PAGE_TABLE_SIZE     0x4000
  • kernel/arch/arm32/include/mm/page_fault.h

    r7c682dd1 rd99c1d2  
    3737#define KERN_arm32_PAGE_FAULT_H_
    3838
    39 #include <arch/types.h>
     39#include <typedefs.h>
    4040
    4141
  • kernel/arch/arm32/include/ras.h

    r7c682dd1 rd99c1d2  
    3838
    3939#include <arch/exception.h>
    40 #include <arch/types.h>
     40#include <typedefs.h>
    4141
    4242#define RAS_START       0
  • kernel/arch/arm32/include/types.h

    r7c682dd1 rd99c1d2  
    4343#endif
    4444
    45 typedef signed char int8_t;
    46 typedef signed short int16_t;
    47 typedef signed long int32_t;
    48 typedef signed long long int64_t;
    49 
    50 typedef unsigned char uint8_t;
    51 typedef unsigned short uint16_t;
    52 typedef unsigned long uint32_t;
    53 typedef unsigned long long uint64_t;
    54 
    5545typedef uint32_t size_t;
    5646
     
    6757} fncptr_t;
    6858
    69 #define PRIp "x"        /**< Format for uintptr_t. */
    70 #define PRIs "u"        /**< Format for size_t. */
     59#define PRIp "x"  /**< Format for uintptr_t. */
     60#define PRIs "u"  /**< Format for size_t. */
    7161
    72 #define PRId8 "d"       /**< Format for int8_t. */
    73 #define PRId16 "d"      /**< Format for int16_t. */
    74 #define PRId32 "d"      /**< Format for int32_t. */
    75 #define PRId64 "lld"    /**< Format for int64_t. */
    76 #define PRIdn "d"       /**< Format for native_t. */
     62#define PRId8 "d"     /**< Format for int8_t. */
     63#define PRId16 "d"    /**< Format for int16_t. */
     64#define PRId32 "d"    /**< Format for int32_t. */
     65#define PRId64 "lld"  /**< Format for int64_t. */
     66#define PRIdn "d"     /**< Format for native_t. */
    7767
    78 #define PRIu8 "u"       /**< Format for uint8_t. */
    79 #define PRIu16 "u"      /**< Format for uint16_t. */
    80 #define PRIu32 "u"      /**< Format for uint32_t. */
    81 #define PRIu64 "llu"    /**< Format for uint64_t. */
    82 #define PRIun "u"       /**< Format for unative_t. */
     68#define PRIu8 "u"     /**< Format for uint8_t. */
     69#define PRIu16 "u"    /**< Format for uint16_t. */
     70#define PRIu32 "u"    /**< Format for uint32_t. */
     71#define PRIu64 "llu"  /**< Format for uint64_t. */
     72#define PRIun "u"     /**< Format for unative_t. */
    8373
    84 #define PRIx8 "x"       /**< Format for hexadecimal (u)int8_t. */
    85 #define PRIx16 "x"      /**< Format for hexadecimal (u)int16_t. */
    86 #define PRIx32 "x"      /**< Format for hexadecimal (u)uint32_t. */
    87 #define PRIx64 "llx"    /**< Format for hexadecimal (u)int64_t. */
    88 #define PRIxn "x"       /**< Format for hexadecimal (u)native_t. */
     74#define PRIx8 "x"     /**< Format for hexadecimal (u)int8_t. */
     75#define PRIx16 "x"    /**< Format for hexadecimal (u)int16_t. */
     76#define PRIx32 "x"    /**< Format for hexadecimal (u)uint32_t. */
     77#define PRIx64 "llx"  /**< Format for hexadecimal (u)int64_t. */
     78#define PRIxn "x"     /**< Format for hexadecimal (u)native_t. */
    8979
    9080#endif
  • kernel/arch/arm32/src/ddi/ddi.c

    r7c682dd1 rd99c1d2  
    3636#include <ddi/ddi.h>
    3737#include <proc/task.h>
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939
    4040/** Enable I/O space range for task.
  • kernel/arch/arm32/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/arm32/src/mm/page.c

    r7c682dd1 rd99c1d2  
    4141#include <arch/exception.h>
    4242#include <typedefs.h>
    43 #include <arch/types.h>
    4443#include <interrupt.h>
    4544#include <arch/mm/frame.h>
  • kernel/arch/arm32/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#include <arch/mm/page.h>
    4141
  • kernel/arch/arm32/src/ras.c

    r7c682dd1 rd99c1d2  
    4444#include <arch.h>
    4545#include <memstr.h>
    46 #include <arch/types.h>
     46#include <typedefs.h>
    4747
    4848uintptr_t *ras_page = NULL;
Note: See TracChangeset for help on using the changeset viewer.