Changeset 96b02eb9 in mainline for kernel/arch/mips32/include


Ignore:
Timestamp:
2010-12-14T12:52:38Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6b10dab
Parents:
554debd
Message:

more unification of basic types

  • use sysarg_t and native_t (unsigned and signed variant) in both kernel and uspace
  • remove ipcarg_t in favour of sysarg_t

(no change in functionality)

Location:
kernel/arch/mips32/include
Files:
3 edited

Legend:

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

    r554debd r96b02eb9  
    5858
    5959typedef struct  {
    60         uintptr_t address;          /**< Breakpoint address */
    61         unative_t instruction;      /**< Original instruction */
    62         unative_t nextinstruction;  /**< Original instruction following break */
    63         unsigned int flags;         /**< Flags regarding breakpoint */
     60        uintptr_t address;         /**< Breakpoint address */
     61        sysarg_t instruction;      /**< Original instruction */
     62        sysarg_t nextinstruction;  /**< Original instruction following break */
     63        unsigned int flags;        /**< Flags regarding breakpoint */
    6464        size_t counter;
    6565        void (*bkfunc)(void *, istate_t *);
     
    6868extern bpinfo_t breakpoints[BKPOINTS_MAX];
    6969
    70 extern bool is_jump(unative_t);
     70extern bool is_jump(sysarg_t);
    7171
    7272extern void debugger_init(void);
  • kernel/arch/mips32/include/fpu_context.h

    r554debd r96b02eb9  
    3838#include <typedefs.h>
    3939
    40 #define FPU_CONTEXT_ALIGN    sizeof(unative_t)
     40#define FPU_CONTEXT_ALIGN    sizeof(sysarg_t)
    4141
    4242typedef struct {
    43         unative_t dregs[32];
    44         unative_t cregs[32];
     43        sysarg_t dregs[32];
     44        sysarg_t cregs[32];
    4545} fpu_context_t;
    4646
  • kernel/arch/mips32/include/types.h

    r554debd r96b02eb9  
    4343typedef uint32_t ipl_t;
    4444
    45 typedef uint32_t unative_t;
     45typedef uint32_t sysarg_t;
    4646typedef int32_t native_t;
    4747typedef uint32_t atomic_count_t;
     
    5454
    5555#define PRIdn  PRId32  /**< Format for native_t. */
    56 #define PRIun  PRIu32  /**< Format for unative_t. */
    57 #define PRIxn  PRIx32  /**< Format for hexadecimal unative_t. */
     56#define PRIun  PRIu32  /**< Format for sysarg_t. */
     57#define PRIxn  PRIx32  /**< Format for hexadecimal sysarg_t. */
    5858#define PRIua  PRIu32  /**< Format for atomic_count_t. */
    5959
Note: See TracChangeset for help on using the changeset viewer.