• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
3 *
4 * This program is free software; you can redistribute  it and/or modify it
5 * under  the terms of  the GNU General  Public License as published by the
6 * Free Software Foundation;  either version 2 of the  License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 *
17 */
18
19#include <linux/linkage.h>
20
21HI35XX_BOOT0_HOOK
22
23    .globl _blank_zone_start
24_blank_zone_start:  .word __blank_zone_start
25ENTRY(get_blank_start)
26	ldr r0, _blank_zone_start
27	ldr r1, =__image_copy_start
28	sub r0, r0, r1
29	adrl r1, _start
30	add r0, r0, r1
31	mov pc, lr
32ENDPROC(get_blank_start)
33
34ENTRY(get_code_start)
35	adrl r0, _start
36	mov pc, lr
37ENDPROC(get_code_start)
38