blob: 36c349008a6db02ac159a0c71c05592d6161534b [file] [log] [blame]
Andrew Scull18834872018-10-12 11:48:09 +01001/*
Andrew Walbran692b3252019-03-07 15:51:31 +00002 * Copyright 2018 The Hafnium Authors.
Andrew Scull18834872018-10-12 11:48:09 +01003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Andrew Scull5991ec92018-10-08 14:55:02 +010017#pragma once
18
19#include "hf/addr.h"
20
Andrew Walbranf636b842020-01-10 11:46:12 +000021#define LINUX_ALIGNMENT 0x200000
22#define LINUX_OFFSET 0x80000
23
Andrew Scullfa90e232018-10-19 11:24:28 +010024paddr_t layout_text_begin(void);
25paddr_t layout_text_end(void);
Andrew Scull5991ec92018-10-08 14:55:02 +010026
Andrew Scullfa90e232018-10-19 11:24:28 +010027paddr_t layout_rodata_begin(void);
28paddr_t layout_rodata_end(void);
Andrew Scull5991ec92018-10-08 14:55:02 +010029
Andrew Scullfa90e232018-10-19 11:24:28 +010030paddr_t layout_data_begin(void);
31paddr_t layout_data_end(void);
Andrew Scull5991ec92018-10-08 14:55:02 +010032
Andrew Scullb401ba32018-11-09 10:30:54 +000033paddr_t layout_initrd_begin(void);
34paddr_t layout_initrd_end(void);
35
36paddr_t layout_fdt_begin(void);
37paddr_t layout_fdt_end(void);
38
Andrew Scull0e6bf1a2019-04-10 15:02:54 +010039paddr_t layout_image_end(void);
Andrew Scull5991ec92018-10-08 14:55:02 +010040
Andrew Scullfa90e232018-10-19 11:24:28 +010041paddr_t layout_primary_begin(void);