Changeset 117


Ignore:
Timestamp:
Mar 26, 2010, 1:03:48 PM (5 years ago)
Author:
stepan
Message:

filo cbfs filesystem driver cosmetics
Signed-off-by: Stefan Reinauer <stepan@…>

Location:
trunk/filo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/filo/fs/cbfs.c

    r105 r117  
    8686        if (header == NULL) 
    8787                return NULL; 
    88         offset = phys_to_virt(0 - ntohl(header->romsize) + ntohl(header->offset)); 
     88        offset = (unsigned long) phys_to_virt(0 - ntohl(header->romsize) + ntohl(header->offset)); 
    8989 
    9090        int align= ntohl(header->align); 
     
    106106                if (virt_to_phys(offset) <= virt_to_phys(oldoffset)) return NULL; 
    107107 
    108                 if (offset < phys_to_virt(0xFFFFFFFF - ntohl(header->romsize))) 
     108                if (offset < (unsigned long)phys_to_virt(0xFFFFFFFF - ntohl(header->romsize))) 
    109109                        return NULL; 
    110110        } 
  • trunk/filo/include/cbfs.h

    r105 r117  
    158158#define CBFS_SUBHEADER(_p) ( (void *) ((((u8 *) (_p)) + ntohl((_p)->offset))) ) 
    159159 
    160 void * cbfs_load_payload(struct lb_memory *lb_mem, const char *name); 
    161160void * cbfs_load_stage(const char *name); 
    162161int cbfs_execute_stage(const char *name); 
Note: See TracChangeset for help on using the changeset viewer.