123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- /*++
- Copyright (c) 2015 Minoca Corp.
- This file is licensed under the terms of the GNU General Public License
- version 3. Alternative licensing terms are available. Contact
- info@minocacorp.com for details. See the LICENSE file at the root of this
- project for complete licensing information.
- Module Name:
- fenva.S
- Abstract:
- This module implements assembly support functionality for ARM floating
- point (VFP).
- Author:
- Evan Green 11-Nov-2015
- Environment:
- User Mode C Library
- --*/
- //
- // ------------------------------------------------------------------- Includes
- //
- #include <minoca/kernel/arm.inc>
- //
- // ---------------------------------------------------------------- Definitions
- //
- //
- // ----------------------------------------------------------------------- Code
- //
- ASSEMBLY_FILE_HEADER
- .fpu vfpv3
- //
- // unsigned int
- // ClpGetFpscr (
- // void
- // )
- //
- /*++
- Routine Description:
- This routine returns the VFP floating point status and control register
- (FPSCR).
- Arguments:
- None.
- Return Value:
- Returns the FPSCR.
- --*/
- FUNCTION ClpGetFpscr
- vmrs %r0, FPSCR
- bx %lr
- END_FUNCTION ClpGetFpscr
- //
- // void
- // ClpSetFpscr (
- // unsigned int Value
- // )
- //
- /*++
- Routine Description:
- This routine sets the VFP floating point status and control register
- (FPSCR).
- Arguments:
- Value - Supplies the new value to set.
- Return Value:
- None.
- --*/
- FUNCTION ClpSetFpscr
- vmsr FPSCR, %r0
- bx %lr
- END_FUNCTION ClpSetFpscr
|