Patchworkβ memset called to somewhere high on the stack (uncached)

login
register
about
Submitter Myles Watson
Date 2010-04-09 04:10:38
Message ID <i2g2831fecf1004082110w75a2e330s7d44d0dff2244dfc@mail.gmail.com>
Download mbox | patch
Permalink /patch/1209/
State Accepted
Commit r5511
Headers show

Comments

Patch

Index: svn/src/cpu/amd/model_fxx/model_fxx_init.c
===================================================================
--- svn.orig/src/cpu/amd/model_fxx/model_fxx_init.c
+++ svn/src/cpu/amd/model_fxx/model_fxx_init.c
@@ -515,11 +515,11 @@  static void model_fxx_init(device_t dev)
 	msr.lo |= (1 << 0);
 	wrmsr(HWCR_MSR, msr);
 
+	enable_cache();
+
 	/* Set the processor name string */
 	init_processor_name();
 
-	enable_cache();
-
 	/* Enable the local cpu apics */
 	setup_lapic();