From c5e9f7aa3a7c36f7649f15a2c94a3ffd310c5bc5 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 5 Jan 2009 11:55:24 +0000 Subject: [PATCH] x86: Poison initmem at end of Xen bootstrap Signed-off-by: Keir Fraser --- xen/arch/x86/setup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index c8639d35f3..051b542ce3 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -386,6 +386,7 @@ void init_done(void) extern char __init_begin[], __init_end[]; /* Free (or page-protect) the init areas. */ + memset(__init_begin, 0xcc, __init_end - __init_begin); /* int3 poison */ #ifndef MEMORY_GUARD init_xenheap_pages(__pa(__init_begin), __pa(__init_end)); #endif -- 2.30.2