Changeset 117
- Timestamp:
- Mar 26, 2010 1:03:48 PM (3 years ago)
- Location:
- trunk/filo
- Files:
-
- 2 edited
-
fs/cbfs.c (modified) (2 diffs)
-
include/cbfs.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/filo/fs/cbfs.c
r105 r117 86 86 if (header == NULL) 87 87 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)); 89 89 90 90 int align= ntohl(header->align); … … 106 106 if (virt_to_phys(offset) <= virt_to_phys(oldoffset)) return NULL; 107 107 108 if (offset < phys_to_virt(0xFFFFFFFF - ntohl(header->romsize)))108 if (offset < (unsigned long)phys_to_virt(0xFFFFFFFF - ntohl(header->romsize))) 109 109 return NULL; 110 110 } -
trunk/filo/include/cbfs.h
r105 r117 158 158 #define CBFS_SUBHEADER(_p) ( (void *) ((((u8 *) (_p)) + ntohl((_p)->offset))) ) 159 159 160 void * cbfs_load_payload(struct lb_memory *lb_mem, const char *name);161 160 void * cbfs_load_stage(const char *name); 162 161 int cbfs_execute_stage(const char *name);
Note: See TracChangeset
for help on using the changeset viewer.
