Changes in / [0712ff2:e27b89a] in mainline


Ignore:
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/elf.h

    r0712ff2 re27b89a  
    2727 */
    2828
    29 /** @addtogroup arm32
     29/** @addtogroup arm32   
    3030 * @{
    3131 */
     
    3737#define KERN_arm32_ELF_H_
    3838
    39 #define ELF_MACHINE  EM_ARM
     39#define ELF_MACHINE             EM_ARM
    4040
    41 #ifdef __BE__
    42         #define ELF_DATA_ENCODING  ELFDATA2MSB
     41#ifdef BIG_ENDIAN
     42#define ELF_DATA_ENCODING       ELFDATA2MSB
    4343#else
    44         #define ELF_DATA_ENCODING  ELFDATA2LSB
     44#define ELF_DATA_ENCODING       ELFDATA2LSB
    4545#endif
    4646
    47 #define ELF_CLASS  ELFCLASS32
     47#define ELF_CLASS               ELFCLASS32
    4848
    4949#endif
  • kernel/arch/mips32/include/mm/tlb.h

    r0712ff2 re27b89a  
    5959typedef union {
    6060        struct {
    61 #ifdef __BE__
     61#ifdef BIG_ENDIAN
    6262                unsigned : 2;       /* zero */
    6363                unsigned pfn : 24;  /* frame number */
     
    8080typedef union {
    8181        struct {
    82 #ifdef __BE__
     82#ifdef BIG_ENDIAN
    8383                unsigned vpn2 : 19;
    8484                unsigned : 5;
     
    9595typedef union {
    9696        struct {
    97 #ifdef __BE__
     97#ifdef BIG_ENDIAN
    9898                unsigned : 7;
    9999                unsigned mask : 12;
     
    110110typedef union {
    111111        struct {
    112 #ifdef __BE__
     112#ifdef BIG_ENDIAN
    113113                unsigned p : 1;
    114114                unsigned : 27;
  • uspace/lib/libblock/libblock.c

    r0712ff2 re27b89a  
    345345        link_t *l;
    346346        unsigned long key = boff;
    347         int rc;
     347        int rc = EOK;
    348348       
    349349        devcon = devcon_search(dev_handle);
     
    355355
    356356retry:
    357         rc = EOK;
    358         b = NULL;
    359 
    360357        fibril_mutex_lock(&cache->lock);
    361358        l = hash_table_find(&cache->block_hash, &key);
     
    397394                        unsigned long temp_key;
    398395recycle:
    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));
    404397                        l = cache->free_head.next;
    405398                        b = list_get_instance(l, block_t, free_link);
     
    484477
    485478                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;
    492479        }
    493480        *block = b;
Note: See TracChangeset for help on using the changeset viewer.