Changes in / [0712ff2:e27b89a] in mainline
- Files:
-
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/include/elf.h
r0712ff2 re27b89a 27 27 */ 28 28 29 /** @addtogroup arm32 29 /** @addtogroup arm32 30 30 * @{ 31 31 */ … … 37 37 #define KERN_arm32_ELF_H_ 38 38 39 #define ELF_MACHINEEM_ARM39 #define ELF_MACHINE EM_ARM 40 40 41 #ifdef __BE__42 #define ELF_DATA_ENCODINGELFDATA2MSB41 #ifdef BIG_ENDIAN 42 #define ELF_DATA_ENCODING ELFDATA2MSB 43 43 #else 44 #define ELF_DATA_ENCODINGELFDATA2LSB44 #define ELF_DATA_ENCODING ELFDATA2LSB 45 45 #endif 46 46 47 #define ELF_CLASS 47 #define ELF_CLASS ELFCLASS32 48 48 49 49 #endif -
kernel/arch/mips32/include/mm/tlb.h
r0712ff2 re27b89a 59 59 typedef union { 60 60 struct { 61 #ifdef __BE__61 #ifdef BIG_ENDIAN 62 62 unsigned : 2; /* zero */ 63 63 unsigned pfn : 24; /* frame number */ … … 80 80 typedef union { 81 81 struct { 82 #ifdef __BE__82 #ifdef BIG_ENDIAN 83 83 unsigned vpn2 : 19; 84 84 unsigned : 5; … … 95 95 typedef union { 96 96 struct { 97 #ifdef __BE__97 #ifdef BIG_ENDIAN 98 98 unsigned : 7; 99 99 unsigned mask : 12; … … 110 110 typedef union { 111 111 struct { 112 #ifdef __BE__112 #ifdef BIG_ENDIAN 113 113 unsigned p : 1; 114 114 unsigned : 27; -
uspace/lib/libblock/libblock.c
r0712ff2 re27b89a 345 345 link_t *l; 346 346 unsigned long key = boff; 347 int rc ;347 int rc = EOK; 348 348 349 349 devcon = devcon_search(dev_handle); … … 355 355 356 356 retry: 357 rc = EOK;358 b = NULL;359 360 357 fibril_mutex_lock(&cache->lock); 361 358 l = hash_table_find(&cache->block_hash, &key); … … 397 394 unsigned long temp_key; 398 395 recycle: 399 if (list_empty(&cache->free_head)) { 400 fibril_mutex_unlock(&cache->lock); 401 rc = ENOMEM; 402 goto out; 403 } 396 assert(!list_empty(&cache->free_head)); 404 397 l = cache->free_head.next; 405 398 b = list_get_instance(l, block_t, free_link); … … 484 477 485 478 fibril_mutex_unlock(&b->lock); 486 }487 out:488 if ((rc != EOK) && b) {489 assert(b->toxic);490 (void) block_put(b);491 b = NULL;492 479 } 493 480 *block = b;
Note:
See TracChangeset
for help on using the changeset viewer.