summaryrefslogtreecommitdiffstats
path: root/src/image/base_ppe_header.S
diff options
context:
space:
mode:
authorShakeeb <shakeebbk@in.ibm.com>2016-08-28 22:23:54 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2016-08-30 06:01:42 -0400
commit593629e88423f3c652c65706d4f4648db26b0fb2 (patch)
treeae2f47deee0fddf7cc016021900a6d35701b1a38 /src/image/base_ppe_header.S
parentb6e511f8fe906c566537e79d7fb5f3af1563d3b1 (diff)
downloadtalos-sbe-593629e88423f3c652c65706d4f4648db26b0fb2.tar.gz
talos-sbe-593629e88423f3c652c65706d4f4648db26b0fb2.zip
SBE code restructure: Build directory setup
Change-Id: I5727522fe885260dde54a94b9ae37fd1382a76ff RTC:159709 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28888 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/image/base_ppe_header.S')
-rw-r--r--src/image/base_ppe_header.S209
1 files changed, 0 insertions, 209 deletions
diff --git a/src/image/base_ppe_header.S b/src/image/base_ppe_header.S
deleted file mode 100644
index cf8e7c58..00000000
--- a/src/image/base_ppe_header.S
+++ /dev/null
@@ -1,209 +0,0 @@
-/* IBM_PROLOG_BEGIN_TAG */
-/* This is an automatically generated prolog. */
-/* */
-/* $Source: src/image/base_ppe_header.S $ */
-/* */
-/* OpenPOWER sbe Project */
-/* */
-/* Contributors Listed Below - COPYRIGHT 2016 */
-/* */
-/* */
-/* 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 */
-//-----------------------------------------------------------------------------
-// *! (C) Copyright International Business Machines Corp. 2014
-// *! All Rights Reserved -- Property of IBM
-// *! *** IBM Confidential ***
-//-----------------------------------------------------------------------------
-
-/// \file base_ppe_header.S
-/// \brief code to create header, toc, strings, fixed and fixed_toc sections
-///
-/// function P9XipHeader creates header section, function .proc_sbe_fixed
-/// creates fixed, fixed_toc sections
-#include "p9_xip_image.h"
-#include "proc_sbe_fixed.H"
-
-
-#define IMAGE_SPACE_UNDEFINED 0xffff
-#define IMAGE_SPACE_OCI 0x8000
-#define IMAGE_SPACE_PNOR 0x800b
-#define IMAGE_SPACE_OTPROM 0x0001
-#define IMAGE_SPACE_SEEPROM 0x800c
-#define IMAGE_SPACE_BASE 0x0008
-
-
-
- .macro ..checku, x:req, bits:req, err="Unsigned value too large"
-
- .if (((\bits) <= 0) || ((\bits) > 63))
- .error "The number of bits must be in the range 0 < bits < 64"
- .endif
-
- .iflt (\x)
- .error "An unsigned value is required here"
- .endif
-
- .ifgt ((\x) - (0xffffffffffffffff >> (64 - (\bits))))
- .error "\err"
- .endif
-
- .endm
-
- .macro ..check_u16, u16
- ..checku (\u16), 16, "Unsigned immediate is larger than 16 bits"
- .endm
-
-
- .macro ..set_default_space, s
- ..check_u16 (\s)
- .set _PGAS_DEFAULT_SPACE, (\s)
- .endm
-
- .macro ..check_default_space
- .if (_PGAS_DEFAULT_SPACE == IMAGE_SPACE_UNDEFINED)
- .error "The PGAS default address space has not been defined"
- .endif
- .endm
-
-
- .macro .quada, offset:req
- ..check_default_space
- .long _PGAS_DEFAULT_SPACE
- .long (\offset)
- .endm
-
-
- .macro P9XipHeader, magic, link_address, entry_point, image_size
-
- .section .header, "a", @progbits
-
-
- //////////////////////////////////////////////////////////////////////
- // Identification - 8-byte aligned; 8 Entries; TOC-Indexed
- //////////////////////////////////////////////////////////////////////
-
-__magic:
- .quad (\magic)
-__L1_LoaderAddr:
- .quad 0
-__L2_LoaderAddr:
- .quad 0
-__kernelAddr:
- .quad 0
-__link_address:
- .quada (\link_address)
-__header_64_reserved:
- .quad 0, 0, 0
-
- .xip_toc magic, P9_XIP_UINT64, __magic
- .xip_toc L1_LoaderAddr, P9_XIP_UINT64, __L1_LoaderAddr
- .xip_toc L2_LoaderAddr, P9_XIP_UINT64, __L2_LoaderAddr
- .xip_toc kernelAddr, P9_XIP_UINT64, __kernelAddr
- .xip_toc link_address, P9_XIP_UINT64, __link_address
-
- //////////////////////////////////////////////////////////////////////
- // Section Table - Not TOC-Indexed
- //////////////////////////////////////////////////////////////////////
-
- .xip_section header
- .xip_section fixed, 8
- .xip_section fixed_toc, 8
- .xip_section toc, 4
- .xip_section strings
- .xip_section loader_text, 4
- .xip_section loader_data, 8, empty=1
- .xip_section text, 4
- .xip_section data, 8, empty=1
- .xip_section base, 4
- .xip_section baseloader, 8, empty=1
- .xip_section overrides, 8, empty=1
- .xip_section rings, 8, empty=1
- .xip_section overlay, 8, empty=1
- .xip_section hbbl, 8, empty=1
-
-
- //////////////////////////////////////////////////////////////////////
- // Other Information - 4-byte aligned; 8 entries; TOC-Indexed
- //////////////////////////////////////////////////////////////////////
-
-__image_size:
- .long (\image_size)
-__build_date:
- .long 0
-__build_time:
- .long 0
-__header_32_reserved:
- .long 0, 0, 0, 0, 0
-
- .xip_toc image_size, P9_XIP_UINT32, __image_size
- .xip_toc build_date, P9_XIP_UINT32, __build_date
- .xip_toc build_time, P9_XIP_UINT32, __build_time
-
-
- //////////////////////////////////////////////////////////////////////
- // Other Information - 1-byte aligned; 8 entries; TOC-Indexed
- //////////////////////////////////////////////////////////////////////
-
-__header_version:
- .byte P9_XIP_HEADER_VERSION
-__toc_normalized:
- .byte 0
-__toc_sorted:
- .byte 0
-__header_8_reserved:
- .byte 0, 0, 0, 0, 0
-
- .xip_toc header_version, P9_XIP_UINT8, __header_version
- .xip_toc toc_normalized, P9_XIP_UINT8, __toc_normalized
- .xip_toc toc_sorted, P9_XIP_UINT8, __toc_sorted
-
-
- //////////////////////////////////////////////////////////////////////
- // Strings; 64 characters allocated; TOC-Indexed
- //////////////////////////////////////////////////////////////////////
-
-__build_user:
- .asciz "unknown " # 16 Characters allocated
-__build_host:
- .asciz "unknown " # 24 characters allocated
-__header_string_reserved:
- .space 24, 0
-
- .xip_toc build_user, P9_XIP_STRING, __build_user
- .xip_toc build_host, P9_XIP_STRING, __build_host
-
-
- .endm
-
-
- .section .fixed, "a", @progbits
- .section .fixed_toc, "a", @progbits
- .section .loader_data, "a", @progbits
- .section .loader_text, "a", @progbits
-
- .section .toc, "a", @progbits
- .section .strings, "aS", @progbits
- .section .base, "a", @progbits
-
- ..set_default_space IMAGE_SPACE_SEEPROM
- P9XipHeader P9_XIP_MAGIC_SEEPROM, 0x80000000, 0x00000000, _sbe_image_size
-
- // Create the .fixed section
- .proc_sbe_fixed_system
- .proc_sbe_fixed_proc_chip
- .proc_sbe_fixed_perv
- .proc_sbe_fixed_core
- .proc_sbe_fixed_ex
- .proc_sbe_fixed_eq
OpenPOWER on IntegriCloud