X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BeagleBoardPkg%2FSec%2FArm%2FModuleEntryPoint.asm;h=d31a29b7c9b8f0f1449b9dbd40a3a38aaf1703b7;hp=414adcb266a48f88ae6ce59f9e52add945f684cd;hb=1ebd6c11453a14b173abf279143c8077e86af308;hpb=0f023148143c8662997b900618eca763b6f693e4 diff --git a/BeagleBoardPkg/Sec/Arm/ModuleEntryPoint.asm b/BeagleBoardPkg/Sec/Arm/ModuleEntryPoint.asm index 414adcb266..d31a29b7c9 100644 --- a/BeagleBoardPkg/Sec/Arm/ModuleEntryPoint.asm +++ b/BeagleBoardPkg/Sec/Arm/ModuleEntryPoint.asm @@ -1,8 +1,8 @@ //------------------------------------------------------------------------------ // -// Copyright (c) 2008-2009 Apple Inc. All rights reserved. +// Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
// -// All rights reserved. This program and the accompanying materials +// This program and the accompanying materials // are licensed and made available under the terms and conditions of the BSD License // which accompanies this distribution. The full text of the license may be found at // http://opensource.org/licenses/bsd-license.php @@ -39,6 +39,13 @@ _ModuleEntryPoint orr r0, r0, #0x00001000 /* set bit 12 (I) enable I-Cache */ mcr p15, 0, r0, c1, c0, 0 + // Enable NEON register in case folks want to use them for optimizations (CopyMem) + mrc p15, 0, r0, c1, c0, 2 + orr r0, r0, #0x00f00000 // Enable VPF access (V* instructions) + mcr p15, 0, r0, c1, c0, 2 + mov r0, #0x40000000 // Set EN bit in FPEXC + msr FPEXC,r0 + // Set CPU vectors to start of DRAM LoadConstantToReg (FixedPcdGet32(PcdCpuVectorBaseAddress) ,r0) // Get vector base mcr p15, 0, r0, c12, c0, 0 @@ -53,7 +60,7 @@ FillVectors cmp r2, #32 bne FillVectors - /* before we call C code, lets setup the stack pointer in internal RAM*/ + /* before we call C code, lets setup the stack pointer in internal RAM */ stack_pointer_setup //