From 53272ef59680ad72440c49599e6efcce6da18b13 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 26 Feb 2018 00:00:29 -0500 Subject: [PATCH] mc: Remove dead code in get_carveout_by_id --- exosphere/src/mc.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/exosphere/src/mc.c b/exosphere/src/mc.c index f76f8d800..27bb48f7e 100644 --- a/exosphere/src/mc.c +++ b/exosphere/src/mc.c @@ -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) {