Changeset b3f8fb7 in mainline for kernel/arch/mips32/include/cp0.h
- Timestamp:
- 2007-01-28T13:25:49Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8e8c1a5
- Parents:
- 1ba41c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/include/cp0.h
r1ba41c5 rb3f8fb7 37 37 38 38 #include <arch/types.h> 39 #include <arch/mm/tlb.h>40 39 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) 47 46 48 47 #define cp0_status_im_shift 8 … … 61 60 #define cp0_mask_all_int() cp0_status_write(cp0_status_read() & ~(cp0_status_im_mask)) 62 61 #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)))) 65 64 66 65 #define GEN_READ_CP0(nm,reg) static inline uint32_t cp0_ ##nm##_read(void) \
Note:
See TracChangeset
for help on using the changeset viewer.