mc: Remove dead code in get_carveout_by_id

This commit is contained in:
Lioncash 2018-02-26 00:00:29 -05:00
parent 4d3f1f6ae8
commit 53272ef596
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -9,15 +9,6 @@ volatile security_carveout_t *get_carveout_by_id(unsigned int carveout) {
}
generic_panic();
return NULL;
switch (carveout) {
case 4: /* Kernel carveout */
return (volatile security_carveout_t *)(MC_BASE + 0xCF8ULL);
case 5: /* Unused Kernel carveout */
return (volatile security_carveout_t *)(MC_BASE + 0xD48ULL);
default:
generic_panic();
return NULL;
}
}
void configure_default_carveouts(void) {