Note: this function is a bit dangerous so is not exported. * It assumes you're smart enough not to call it with the very * last segment, since it uses seg + 1 */
| 141 | * It assumes you're smart enough not to call it with the very |
| 142 | * last segment, since it uses seg + 1 */ |
| 143 | static int last_loadable_segment(struct cbfs_payload_segment *seg) |
| 144 | { |
| 145 | return read_be32(&(seg + 1)->type) == PAYLOAD_SEGMENT_ENTRY; |
| 146 | } |
| 147 | |
| 148 | static int check_payload_segments(struct cbfs_payload_segment *cbfssegs, |
| 149 | enum bootmem_type dest_type) |
no test coverage detected