summaryrefslogtreecommitdiffstats
path: root/qemu/roms/SLOF/slof/ofw.S
diff options
context:
space:
mode:
authorRajithaY <rajithax.yerrumsetty@intel.com>2017-04-25 03:31:15 -0700
committerRajitha Yerrumchetty <rajithax.yerrumsetty@intel.com>2017-05-22 06:48:08 +0000
commitbb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch)
treeca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/roms/SLOF/slof/ofw.S
parenta14b48d18a9ed03ec191cf16b162206998a895ce (diff)
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to kvmfornfv repo and make use of the updated latest qemu for the execution of all testcase Change-Id: I1280af507a857675c7f81d30c95255635667bdd7 Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/roms/SLOF/slof/ofw.S')
-rw-r--r--qemu/roms/SLOF/slof/ofw.S59
1 files changed, 0 insertions, 59 deletions
diff --git a/qemu/roms/SLOF/slof/ofw.S b/qemu/roms/SLOF/slof/ofw.S
deleted file mode 100644
index 14e1e9d2b..000000000
--- a/qemu/roms/SLOF/slof/ofw.S
+++ /dev/null
@@ -1,59 +0,0 @@
-/******************************************************************************
- * Copyright (c) 2004, 2011 IBM Corporation
- * All rights reserved.
- * This program and the accompanying materials
- * are made available under the terms of the BSD License
- * which accompanies this distribution, and is available at
- * http://www.opensource.org/licenses/bsd-license.php
- *
- * Contributors:
- * IBM Corporation - initial implementation
- *****************************************************************************/
-
-#include <cpu.h>
-#include <xvect.h>
-
- .section ".slof.loader","ax"
-
- /* this only works if paflof is running below 4GB */
- lis r31, fdt_start@h /* save address of */
- ori r31, r31, fdt_start@l /* flattened device */
- std r3, 0(r31) /* tree */
-
- /* this only works if paflof is running below 4GB */
- lis r31, romfs_base@h /* save address of */
- ori r31, r31, romfs_base@l /* the romfs */
- std r4, 0(r31)
-
- /* this only works if paflof is running below 4GB */
- lis r31, epapr_magic@h /* if it is an epapr compliant */
- ori r31, r31, epapr_magic@l /* low level firmware; then r6 */
- std r6, 0(r31) /* contains the epapr magic */
-
- /* this only works if paflof is running below 4GB */
- lis r31, epapr_ima_size@h
- ori r31, r31, epapr_ima_size@l
- std r7, 0(r31) /* r7 contains the IMA size */
-
- /* fill in handler address */
-
- /* this only works if paflof is running below 4GB */
- mfmsr r0
- mtsrr1 r0
- lis r3, _slof_text@h
- ori r3, r3, _slof_text@l
- ld r3, 0(r3)
- std r3, XVECT_M_HANDLER(0)
-
-#ifdef BROKEN_SC1
- /* Patch potentially broken sc 1 instructions */
- lis r3, _slof_text@h
- ori r3, r3, _slof_text@l
- lis r4, _slof_text_end@h
- ori r4, r4, _slof_text_end@l
- li r5, 0
- bl .patch_broken_sc1
-#endif
-
- /* GO! */
- ba 0x100