summaryrefslogtreecommitdiffstats
path: root/bsps/microblaze/microblaze_fpga/start/microblaze_enable_dcache.S
blob: 78babf01760e0eb7e18327e7994dca5b28a8a9e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/******************************************************************************
* Copyright (c) 2004 - 2020 Xilinx, Inc.  All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/

	.text
	.globl	microblaze_enable_dcache
	.ent	microblaze_enable_dcache
	.align	2
microblaze_enable_dcache:
    /* Read the MSR register */
	mfs	r8, rmsr
	/* Set the interrupt enable bit */
	ori	r8, r8, 0x80
	/* Save the MSR register */
	mts	rmsr, r8
	/* Return */
	rtsd	r15, 8
	nop
    .end	microblaze_enable_dcache