forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/arch/arm64/kernel/efi-header.S
....@@ -1,10 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2013 - 2017 Linaro, Ltd.
34 * Copyright (C) 2013, 2014 Red Hat, Inc.
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 as
7
- * published by the Free Software Foundation.
85 */
96
107 #include <linux/pe.h>
....@@ -30,17 +27,17 @@
3027 .long __initdata_begin - efi_header_end // SizeOfCode
3128 .long __pecoff_data_size // SizeOfInitializedData
3229 .long 0 // SizeOfUninitializedData
33
- .long __efistub_entry - _head // AddressOfEntryPoint
30
+ .long __efistub_efi_pe_entry - _head // AddressOfEntryPoint
3431 .long efi_header_end - _head // BaseOfCode
3532
3633 extra_header_fields:
3734 .quad 0 // ImageBase
38
- .long SZ_4K // SectionAlignment
35
+ .long SEGMENT_ALIGN // SectionAlignment
3936 .long PECOFF_FILE_ALIGNMENT // FileAlignment
4037 .short 0 // MajorOperatingSystemVersion
4138 .short 0 // MinorOperatingSystemVersion
42
- .short 0 // MajorImageVersion
43
- .short 0 // MinorImageVersion
39
+ .short LINUX_EFISTUB_MAJOR_VERSION // MajorImageVersion
40
+ .short LINUX_EFISTUB_MINOR_VERSION // MinorImageVersion
4441 .short 0 // MajorSubsystemVersion
4542 .short 0 // MinorSubsystemVersion
4643 .long 0 // Win32VersionValue
....@@ -150,6 +147,6 @@
150147 * correctly at this alignment, we must ensure that .text is
151148 * placed at a 4k boundary in the Image to begin with.
152149 */
153
- .align 12
150
+ .balign SEGMENT_ALIGN
154151 efi_header_end:
155152 .endm