summaryrefslogtreecommitdiffstats
path: root/import/chips/p9/procedures/utils/stopreg/self.sh
diff options
context:
space:
mode:
authorPrem Shanker Jha <premjha2@in.ibm.com>2016-02-12 23:06:23 -0600
committerJoshua Hunsberger <jahunsbe@us.ibm.com>2017-10-23 15:58:20 -0500
commitb3da49b834214ea058493a2dd7e790ceef33f1ff (patch)
tree7e98257bee838c181ff646e61c8eaa335657d0ba /import/chips/p9/procedures/utils/stopreg/self.sh
parent32fdffaea2c13a5f09b08e03602e27a635a2f0f6 (diff)
downloadtalos-hcode-b3da49b834214ea058493a2dd7e790ceef33f1ff.tar.gz
talos-hcode-b3da49b834214ea058493a2dd7e790ceef33f1ff.zip
PM:Added build infrastructure for self restore code.
Checking in bin file till build infrastructure is put in place for P9 assembly code. Change-Id: I62fdb79b51cc1610f0492b6c53b6813802f34717 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/20942 Tested-by: Jenkins Server Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Diffstat (limited to 'import/chips/p9/procedures/utils/stopreg/self.sh')
-rwxr-xr-ximport/chips/p9/procedures/utils/stopreg/self.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/import/chips/p9/procedures/utils/stopreg/self.sh b/import/chips/p9/procedures/utils/stopreg/self.sh
new file mode 100755
index 00000000..290383b6
--- /dev/null
+++ b/import/chips/p9/procedures/utils/stopreg/self.sh
@@ -0,0 +1,42 @@
+# IBM_PROLOG_BEGIN_TAG
+# This is an automatically generated prolog.
+#
+# $Source: import/chips/p9/procedures/utils/stopreg/self.sh $
+#
+# OpenPOWER HCODE Project
+#
+# COPYRIGHT 2016,2017
+# [+] International Business Machines Corp.
+#
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied. See the License for the specific language governing
+# permissions and limitations under the License.
+#
+# IBM_PROLOG_END_TAG
+#first first. Remove object file and executable file.
+rm -f *.o
+rm -f *.bin
+SRC=p9_core_restore_routines.S
+OBJ=p9_core_restore_routines.o
+IMG=selfRest
+#set compiler path
+ASMFILE="/opt/mcp/shared/powerpc64-gcc-20150516/wrappers/powerpc64-unknown-linux-gnu-gcc -std=c99 -c -O3 -nostdlib -mcpu=power7 -mbig-endian -ffreestanding -mabi=elfv1"
+#linker script after C preprocessing
+LINK_SCRIPT=selfLink
+#set linker path
+LOAD=/opt/mcp/shared/powerpc64-gcc-20150516/wrappers/powerpc64-unknown-linux-gnu-ld
+#passing linker through pre-processor
+$ASMFILE -E -c -P link.c -o $LINK_SCRIPT
+#compiling Source file
+$ASMFILE $SRC -o $OBJ
+#linking
+$LOAD -T$LINK_SCRIPT -Map $IMG.map -Bstatic -o $IMG.bin $OBJ
OpenPOWER on IntegriCloud