Allow detection of VFP devices on ARM11 cores.
This commit is contained in:
parent
667f59c8dd
commit
d14160690e
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cpufunc.c,v 1.82 2008/02/24 20:50:38 matt Exp $ */
|
||||
/* $NetBSD: cpufunc.c,v 1.83 2008/03/15 10:35:30 rearnsha Exp $ */
|
||||
|
||||
/*
|
||||
* arm7tdmi support code Copyright (c) 2001 John Fremlin
|
||||
@ -46,7 +46,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cpufunc.c,v 1.82 2008/02/24 20:50:38 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cpufunc.c,v 1.83 2008/03/15 10:35:30 rearnsha Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_cpuoptions.h"
|
||||
@ -2257,6 +2257,9 @@ arm11_setup(args)
|
||||
/* Now really make sure they are clean. */
|
||||
__asm volatile ("mcr\tp15, 0, r0, c7, c7, 0" : : );
|
||||
|
||||
/* Allow detection code to find the VFP if it's fitted. */
|
||||
__asm volatile ("mcr\tp15, 0, %0, c1, c0, 2" : : "r" (0x0fffffff));
|
||||
|
||||
/* Set the control register */
|
||||
curcpu()->ci_ctrl = cpuctrl;
|
||||
cpu_control(0xffffffff, cpuctrl);
|
||||
|
Loading…
Reference in New Issue
Block a user