Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Oct 2011 17:37:54 +0000 (UTC)
From:      Olivier Houchard <cognet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r226441 - head/sys/arm/arm
Message-ID:  <201110161737.p9GHbsen072695@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cognet
Date: Sun Oct 16 17:37:54 2011
New Revision: 226441
URL: http://svn.freebsd.org/changeset/base/226441

Log:
  Explicitely set ARM_RAS_START and ARM_RAS_END once the cacheline or the
  page has been allocated, or we could end up using random values, and bad things
  could happen.
  
  PR:		arm/161492
  Submitted by:	Ian Lepore <freebsd AT damnhippie dot dyndns DOT org>
  MFC after:	1 week

Modified:
  head/sys/arm/arm/machdep.c

Modified: head/sys/arm/arm/machdep.c
==============================================================================
--- head/sys/arm/arm/machdep.c	Sun Oct 16 16:58:28 2011	(r226440)
+++ head/sys/arm/arm/machdep.c	Sun Oct 16 17:37:54 2011	(r226441)
@@ -312,6 +312,8 @@ cpu_startup(void *dummy)
 	m = vm_page_alloc(NULL, 0, VM_ALLOC_NOOBJ | VM_ALLOC_ZERO);
 	pmap_kenter_user(ARM_TP_ADDRESS, VM_PAGE_TO_PHYS(m));
 #endif
+	*(uint32_t *)ARM_RAS_START = 0;
+	*(uint32_t *)ARM_RAS_END = 0xffffffff;
 }
 
 SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110161737.p9GHbsen072695>