* The root pointer is relative to the upper limit of the imd. i.e. It sits * just below the upper limit. */
| 33 | * just below the upper limit. |
| 34 | */ |
| 35 | static struct imd_root_pointer *imdr_get_root_pointer(const struct imdr *imdr) |
| 36 | { |
| 37 | struct imd_root_pointer *rp; |
| 38 | |
| 39 | rp = relative_pointer((void *)imdr->limit, -sizeof(*rp)); |
| 40 | |
| 41 | return rp; |
| 42 | } |
| 43 | |
| 44 | static void imd_link_root(struct imd_root_pointer *rp, struct imd_root *r) |
| 45 | { |
no test coverage detected