Changeset 6387c18 in mainline
- Timestamp:
- 2008-05-30T14:54:33Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8c7294c6
- Parents:
- afb1e35
- Location:
- kernel/generic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/lib/rd.h
rafb1e35 r6387c18 67 67 68 68 /** RAM disk header */ 69 typedef struct{69 struct rd_header { 70 70 uint8_t magic[RD_MAGIC_SIZE]; 71 71 uint8_t version; … … 73 73 uint32_t header_size; 74 74 uint64_t data_size; 75 } rd_header;75 } __attribute__ ((packed)); 76 76 77 extern int init_rd(rd_header * addr, size_t size); 77 typedef struct rd_header rd_header_t; 78 79 extern int init_rd(rd_header_t *addr, size_t size); 78 80 79 81 #endif -
kernel/generic/src/lib/rd.c
rafb1e35 r6387c18 43 43 #include <sysinfo/sysinfo.h> 44 44 #include <ddi/ddi.h> 45 #include <print.h>46 45 #include <align.h> 47 46 … … 53 52 * tasks. 54 53 */ 55 int init_rd(rd_header *header, size_t size)54 int init_rd(rd_header_t *header, size_t size) 56 55 { 57 56 /* Identify RAM disk */ … … 81 80 if ((hsize % FRAME_SIZE) || (dsize % FRAME_SIZE)) 82 81 return RE_UNSUPPORTED; 83 84 if (dsize % FRAME_SIZE) 85 return RE_UNSUPPORTED; 86 82 87 83 if (hsize > size) 88 84 return RE_INVALID; -
kernel/generic/src/main/kinit.c
rafb1e35 r6387c18 179 179 ipc_phone_0 = &utask->answerbox; 180 180 } else { 181 int rd = init_rd((rd_header *) init.tasks[i].addr,181 int rd = init_rd((rd_header_t *) init.tasks[i].addr, 182 182 init.tasks[i].size); 183 183
Note:
See TracChangeset
for help on using the changeset viewer.