Changeset b3f8fb7 in mainline for kernel/arch/mips32/include/cp0.h


Ignore:
Timestamp:
2007-01-28T13:25:49Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8e8c1a5
Parents:
1ba41c5
Message:

huge type system cleanup
remove cyclical type dependencies across multiple header files
many minor coding style fixes

File:
1 edited

Legend:

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

    r1ba41c5 rb3f8fb7  
    3737
    3838#include <arch/types.h>
    39 #include <arch/mm/tlb.h>
    4039
    41 #define cp0_status_ie_enabled_bit       (1<<0)
    42 #define cp0_status_exl_exception_bit    (1<<1)
    43 #define cp0_status_erl_error_bit        (1<<2)
    44 #define cp0_status_um_bit               (1<<4)
    45 #define cp0_status_bev_bootstrap_bit    (1<<22)
    46 #define cp0_status_fpu_bit              (1<<29)
     40#define cp0_status_ie_enabled_bit       (1 << 0)
     41#define cp0_status_exl_exception_bit    (1 << 1)
     42#define cp0_status_erl_error_bit        (1 << 2)
     43#define cp0_status_um_bit               (1 << 4)
     44#define cp0_status_bev_bootstrap_bit    (1 << 22)
     45#define cp0_status_fpu_bit              (1 << 29)
    4746
    4847#define cp0_status_im_shift             8
     
    6160#define cp0_mask_all_int() cp0_status_write(cp0_status_read() & ~(cp0_status_im_mask))
    6261#define cp0_unmask_all_int() cp0_status_write(cp0_status_read() | cp0_status_im_mask)
    63 #define cp0_mask_int(it) cp0_status_write(cp0_status_read() & ~(1<<(cp0_status_im_shift+(it))))
    64 #define cp0_unmask_int(it) cp0_status_write(cp0_status_read() | (1<<(cp0_status_im_shift+(it))))
     62#define cp0_mask_int(it) cp0_status_write(cp0_status_read() & ~(1 << (cp0_status_im_shift + (it))))
     63#define cp0_unmask_int(it) cp0_status_write(cp0_status_read() | (1 << (cp0_status_im_shift + (it))))
    6564
    6665#define GEN_READ_CP0(nm,reg) static inline uint32_t cp0_ ##nm##_read(void) \
Note: See TracChangeset for help on using the changeset viewer.