Changeset d99c1d2 in mainline for kernel/arch/mips32


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/mips32
Files:
15 edited

Legend:

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

    r7c682dd1 rd99c1d2  
    3636#define KERN_mips32_ASM_H_
    3737
    38 #include <arch/types.h>
    3938#include <typedefs.h>
    4039#include <config.h>
  • kernel/arch/mips32/include/context.h

    r7c682dd1 rd99c1d2  
    4646#ifndef __ASM__
    4747
    48 #include <arch/types.h>
     48#include <typedefs.h>
    4949
    5050#define context_set(ctx, pc, stack, size) \
  • kernel/arch/mips32/include/cp0.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_mips32_CP0_H_
    3737
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939
    4040#define cp0_status_ie_enabled_bit       (1 << 0)
  • kernel/arch/mips32/include/cpu.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_mips32_CPU_H_
    3737
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939#include <arch/asm.h>
    4040
  • kernel/arch/mips32/include/debugger.h

    r7c682dd1 rd99c1d2  
    3737
    3838#include <arch/exception.h>
    39 #include <arch/types.h>
     39#include <typedefs.h>
    4040
    4141#define BKPOINTS_MAX 10
  • kernel/arch/mips32/include/exception.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_mips32_EXCEPTION_H_
    3737
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939#include <arch/cp0.h>
    4040
  • kernel/arch/mips32/include/faddr.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_mips32_FADDR_H_
    3737
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939
    4040#define FADDR(fptr)             ((uintptr_t) (fptr))
  • kernel/arch/mips32/include/fpu_context.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_mips32_FPU_CONTEXT_H_
    3737
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939
    4040#define FPU_CONTEXT_ALIGN    sizeof(unative_t)
  • kernel/arch/mips32/include/mm/asid.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_mips32_ASID_H_
    3737
    38 #include <arch/types.h>
     38#include <typedefs.h>
    3939
    4040#define ASID_MAX_ARCH  255    /* 2^8 - 1 */
  • kernel/arch/mips32/include/mm/tlb.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_mips32_TLB_H_
    3737
    38 #include <arch/types.h>
    3938#include <typedefs.h>
    4039#include <arch/mm/asid.h>
  • kernel/arch/mips32/include/types.h

    r7c682dd1 rd99c1d2  
    3636#define KERN_mips32_TYPES_H_
    3737
    38 typedef signed char int8_t;
    39 typedef signed short int16_t;
    40 typedef signed long int32_t;
    41 typedef signed long long int64_t;
    42 
    43 typedef unsigned char uint8_t;
    44 typedef unsigned short uint16_t;
    45 typedef unsigned long uint32_t;
    46 typedef unsigned long long uint64_t;
    47 
    4838typedef uint32_t size_t;
    4939
     
    6050} fncptr_t;
    6151
    62 #define PRIp "x"        /**< Format for uintptr_t. */
    63 #define PRIs "u"        /**< Format for size_t. */
     52#define PRIp "x"  /**< Format for uintptr_t. */
     53#define PRIs "u"  /**< Format for size_t. */
    6454
    65 #define PRId8 "d"       /**< Format for int8_t. */
    66 #define PRId16 "d"      /**< Format for int16_t. */
    67 #define PRId32 "ld"     /**< Format for int32_t. */
    68 #define PRId64 "lld"    /**< Format for int64_t. */
    69 #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 "ld"   /**< Format for int32_t. */
     58#define PRId64 "lld"  /**< Format for int64_t. */
     59#define PRIdn "d"     /**< Format for native_t. */
    7060
    71 #define PRIu8 "u"       /**< Format for uint8_t. */
    72 #define PRIu16 "u"      /**< Format for uint16_t. */
    73 #define PRIu32 "u"      /**< Format for uint32_t. */
    74 #define PRIu64 "llu"    /**< Format for uint64_t. */
    75 #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. */
    7666
    77 #define PRIx8 "x"       /**< Format for hexadecimal (u)int8_t. */
    78 #define PRIx16 "x"      /**< Format for hexadecimal (u)int16_t. */
    79 #define PRIx32 "x"      /**< Format for hexadecimal (u)uint32_t. */
    80 #define PRIx64 "llx"    /**< Format for hexadecimal (u)int64_t. */
    81 #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. */
    8272
    8373#endif
  • kernel/arch/mips32/src/ddi/ddi.c

    r7c682dd1 rd99c1d2  
    3535#include <ddi/ddi.h>
    3636#include <proc/task.h>
    37 #include <arch/types.h>
     37#include <typedefs.h>
    3838#include <security/cap.h>
    3939#include <arch.h>
  • kernel/arch/mips32/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/mips32/src/exception.c

    r7c682dd1 rd99c1d2  
    3838#include <panic.h>
    3939#include <arch/cp0.h>
    40 #include <arch/types.h>
     40#include <typedefs.h>
    4141#include <arch.h>
    4242#include <debug.h>
  • kernel/arch/mips32/src/interrupt.c

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