mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Merge pull request #1460 from lubinszARM:pr_clean_code1
PiperOrigin-RevId: 287221280
This commit is contained in:
@@ -554,6 +554,10 @@ TEXT ·Vectors(SB),NOSPLIT,$0
|
||||
B ·El0_error_invalid(SB)
|
||||
nop31Instructions()
|
||||
|
||||
// The exception-vector-table is required to be 11-bits aligned.
|
||||
// Please see Linux source code as reference: arch/arm64/kernel/entry.s.
|
||||
// For gvisor, I defined it as 4K in length, filled the 2nd 2K part with NOPs.
|
||||
// So that, I can safely move the 1st 2K part into the address with 11-bits alignment.
|
||||
WORD $0xd503201f //nop
|
||||
nop31Instructions()
|
||||
WORD $0xd503201f
|
||||
|
||||
@@ -12,12 +12,15 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "funcdata.h"
|
||||
#include "textflag.h"
|
||||
|
||||
TEXT ·CPACREL1(SB),NOSPLIT,$0-8
|
||||
WORD $0xd5381041 // MRS CPACR_EL1, R1
|
||||
MOVD R1, ret+0(FP)
|
||||
RET
|
||||
|
||||
TEXT ·FPCR(SB),NOSPLIT,$0-8
|
||||
TEXT ·GetFPCR(SB),NOSPLIT,$0-8
|
||||
WORD $0xd53b4201 // MRS NZCV, R1
|
||||
MOVD R1, ret+0(FP)
|
||||
RET
|
||||
@@ -27,7 +30,7 @@ TEXT ·GetFPSR(SB),NOSPLIT,$0-8
|
||||
MOVD R1, ret+0(FP)
|
||||
RET
|
||||
|
||||
TEXT ·FPCR(SB),NOSPLIT,$0-8
|
||||
TEXT ·SetFPCR(SB),NOSPLIT,$0-8
|
||||
MOVD addr+0(FP), R1
|
||||
WORD $0xd51b4201 // MSR R1, NZCV
|
||||
RET
|
||||
|
||||
Reference in New Issue
Block a user