| 42 | } |
| 43 | |
| 44 | static void imd_link_root(struct imd_root_pointer *rp, struct imd_root *r) |
| 45 | { |
| 46 | rp->magic = IMD_ROOT_PTR_MAGIC; |
| 47 | rp->root_offset = (int32_t)((intptr_t)r - (intptr_t)rp); |
| 48 | } |
| 49 | |
| 50 | static struct imd_entry *root_last_entry(struct imd_root *r) |
| 51 | { |