Changeset 6387c18 in mainline for kernel/generic/include/lib/rd.h


Ignore:
Timestamp:
2008-05-30T14:54:33Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8c7294c6
Parents:
afb1e35
Message:

fix kernel ramdisk support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/lib/rd.h

    rafb1e35 r6387c18  
    6767
    6868/** RAM disk header */
    69 typedef struct {
     69struct rd_header {
    7070        uint8_t magic[RD_MAGIC_SIZE];
    7171        uint8_t version;
     
    7373        uint32_t header_size;
    7474        uint64_t data_size;
    75 } rd_header;
     75} __attribute__ ((packed));
    7676
    77 extern int init_rd(rd_header * addr, size_t size);
     77typedef struct rd_header rd_header_t;
     78
     79extern int init_rd(rd_header_t *addr, size_t size);
    7880
    7981#endif
Note: See TracChangeset for help on using the changeset viewer.