Changeset aa85487 in mainline for kernel/arch/abs32le
- Timestamp:
- 2010-03-07T15:11:56Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aadf01e
- Parents:
- 2e99277 (diff), 137691a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- kernel/arch/abs32le
- Files:
-
- 4 edited
-
Makefile.inc (modified) (1 diff)
-
include/atomic.h (modified) (5 diffs)
-
include/types.h (modified) (1 diff)
-
src/abs32le.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/abs32le/Makefile.inc
r2e99277 raa85487 50 50 endif 51 51 52 ifeq ($(COMPILER),clang) 53 CLANG_ARCH = i386 54 endif 55 52 56 BITS = 32 53 57 ENDIANESS = LE -
kernel/arch/abs32le/include/atomic.h
r2e99277 raa85487 54 54 } 55 55 56 static inline longatomic_postinc(atomic_t *val)56 static inline atomic_count_t atomic_postinc(atomic_t *val) 57 57 { 58 58 /* On real hardware both the storing of the previous … … 60 60 atomic action. */ 61 61 62 longprev = val->count;62 atomic_count_t prev = val->count; 63 63 64 64 val->count++; … … 66 66 } 67 67 68 static inline longatomic_postdec(atomic_t *val)68 static inline atomic_count_t atomic_postdec(atomic_t *val) 69 69 { 70 70 /* On real hardware both the storing of the previous … … 72 72 atomic action. */ 73 73 74 longprev = val->count;74 atomic_count_t prev = val->count; 75 75 76 76 val->count--; … … 81 81 #define atomic_predec(val) (atomic_postdec(val) - 1) 82 82 83 static inline uint32_t test_and_set(atomic_t *val)83 static inline atomic_count_t test_and_set(atomic_t *val) 84 84 { 85 uint32_t prev = val->count;85 atomic_count_t prev = val->count; 86 86 val->count = 1; 87 87 return prev; -
kernel/arch/abs32le/include/types.h
r2e99277 raa85487 55 55 typedef uint32_t unative_t; 56 56 typedef int32_t native_t; 57 typedef uint32_t atomic_count_t; 57 58 58 59 typedef struct { -
kernel/arch/abs32le/src/abs32le.c
r2e99277 raa85487 114 114 } 115 115 116 void panic_printf(c har *fmt, ...)116 void panic_printf(const char *fmt, ...) 117 117 { 118 118 va_list args;
Note:
See TracChangeset
for help on using the changeset viewer.
