Changeset d99fac9 in mainline
- Timestamp:
- 2012-07-27T19:54:14Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8e3ed06
- Parents:
- 0949b7a
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/atomic.h
r0949b7a rd99fac9 141 141 142 142 143 #define _atomic_cas_ptr_impl(pptr, exp_val, new_val, old_val, prefix) 143 #define _atomic_cas_ptr_impl(pptr, exp_val, new_val, old_val, prefix) \ 144 144 asm volatile ( \ 145 145 prefix " cmpxchgq %[newval], %[ptr]\n" \ -
kernel/test/cht/cht1.c
r0949b7a rd99fac9 35 35 /* Place at the top to simplify re-casting. */ 36 36 cht_link_t link; 37 int hash;38 int unique_id;37 size_t hash; 38 size_t unique_id; 39 39 bool deleted; 40 40 bool mark; … … 50 50 static size_t val_key_hash(void *key) 51 51 { 52 return ( int)key % 10;52 return (uintptr_t)key % 10; 53 53 } 54 54 … … 63 63 { 64 64 val_t *v2 = member_to_inst(item2, val_t, link); 65 return ( int)key == v2->unique_id;65 return (uintptr_t)key == v2->unique_id; 66 66 } 67 67 … … 83 83 }; 84 84 85 static void set_val(val_t *v, size_t h, int uid)85 static void set_val(val_t *v, size_t h, size_t uid) 86 86 { 87 87 v->hash = h;
Note:
See TracChangeset
for help on using the changeset viewer.