1Chinese translated version of Documentation/arch/arm64/booting.rst 2 3If you have any comment or update to the content, please contact the 4original document maintainer directly. However, if you have a problem 5communicating in English you can also ask the Chinese maintainer for 6help. Contact the Chinese maintainer if this translation is outdated 7or if there is a problem with the translation. 8 9M: Will Deacon <will.deacon@arm.com> 10zh_CN: Fu Wei <wefu@redhat.com> 11C: 55f058e7574c3615dea4615573a19bdb258696c6 12--------------------------------------------------------------------- 13Documentation/arch/arm64/booting.rst ��������������� 14 15������������������������������������������������������������������������������������������������������ 16������������������������������������������������������������������������������������������������������ 17������������������������������������������������ 18 19��������������������� Will Deacon <will.deacon@arm.com> 20��������������������� ������ Fu Wei <wefu@redhat.com> 21��������������������� ������ Fu Wei <wefu@redhat.com> 22��������������������� ������ Fu Wei <wefu@redhat.com> 23������������������������ Git ��������������� 55f058e7574c3615dea4615573a19bdb258696c6 24 25��������������� 26--------------------------------------------------------------------- 27 ������ AArch64 Linux 28 ================== 29 30������: Will Deacon <will.deacon@arm.com> 31������: 2012 ��� 09 ��� 07 ��� 32 33��������������� Russell King ��� ARM ������������������������������������������������ 34AArch64 Linux ��������������� 35 36AArch64 ���������������������������������EL0 - EL3������������������ EL0 ��� EL1 ��������� 37���������������������������������������EL2 ��������������������������������������������������������� 38EL3 ������������������������������������������������������ 39 40���������������������������������������������������������������������������������boot loader������ 41������������������������������������������ Linux ��������� CPU ��������������������������� 42������������������������������������������������������������������������������������������������������ 43������������������ 44 45������������������������������������������������������������������ 46 471��������������������� RAM 482������������������������ 493��������������������� 504��������������������� 51 52 531��������������������� RAM 54----------------- 55 56���������: ������ 57 58������������������������������������������������������������������������������������������������ RAM��� 59��������������������������������������������������������������������������������������������������������� 60RAM������������������������������������������ RAM ������������������������������������������������ 61������������������������������������ 62 63 642������������������������ 65--------------- 66 67���������: ������ 68 69���������������������dtb��������� 8 ������������������������������������ 2MB������������������ 70������������������������������������������ 2MB ������������������������������������������������������ 71���������������2M������������ 72 73������ v4.2 ��������������������������������������������������������������������������� 74text_offset ������������������������ 512MB ������ 75 763��������������������� 77------------- 78 79���������: ������ 80 81AArch64 ��������������������������������������������������������������������������������������� 82��������� Image.gz������������������������������������������������ gzip ������������������������ 83������������������������������������������������������������������������������������������ 84 85 864��������������������� 87------------- 88 89���������: ������ 90 91������������������������������������ 64 ������������������������������ 92 93 u32 code0; /* ��������������� */ 94 u32 code1; /* ��������������� */ 95 u64 text_offset; /* ��������������������������������� */ 96 u64 image_size; /* ������������������, ������������ */ 97 u64 flags; /* ������������, ������������ * 98 u64 res2 = 0; /* ������ */ 99 u64 res3 = 0; /* ������ */ 100 u64 res4 = 0; /* ������ */ 101 u32 magic = 0x644d5241; /* ������, ������, "ARM\x64" */ 102 u32 res5; /* ������ ��������� PE COFF ��������� */ 103 104 105������������������ 106 107- ��� v3.17 ��������������������������������������������������������� 108 109- code0/code1 ��������������� stext. 110 111- ��������� EFI ������������ ������ code0/code1 ������������ 112 res5 ������ PE ������������������������ PE ��������������� EFI ������������������ 113 ���efi_stub_entry��������� stub ��������������������������������������������� code0 114 ������������������������������ 115 116- v3.17 ������������������������ text_offset ������������������������image_size ��������� 117 ��� text_offset ������������������������ 0x80000��� 118 ��� image_size ���������text_offset ��������������������������������������������������� 119 ������������������ image_size ���������text_offset ������������ 0x80000��� 120 121- flags ��� (v3.17 ������) ��� 64 ������������������������������������ 122 ��� 0: ������������������ 1 ���������������������0 ��������������������� 123 ��� 1-2: ������������������ 124 0 - ������������ 125 1 - 4K 126 2 - 16K 127 3 - 64K 128 ��� 3: ������������������ 129 0 - 2MB ��������������������������������������������������� 130 ������������������������������������������������������ 131 1 - 2MB ������������������������������������������������ 132 ��� 4-63: ��������� 133 134- ��� image_size ��������������������������������������������������������������������������� 135 ������������������������������������������������������������������������������������������������ 136 ������������, ��������������������� 137 138������������������������������������������������������������ 2MB ��������������� text_offset 139������������������������������������2MB ������������������������������������������������������������ 140������������������������������������������������������������������ 141������������������������������������������������ image_size ��������������������������������������� 142������ v4.6 ��������������������������������������������������������������������������������������� 143������������������������������������������������������������ 144 145��������������������������������������������������������������������������������������������������������� 146(������������������dtb������ memreserve ������������������������������������������������ 147 148��������������������������������������������������� 149 150- ������������ DMA ��������������������������������������������������������������������������� 151 ������������������������������������������������������������ 152 153- ��� CPU ��������������������� 154 x0 = ������ RAM ������������������������dtb��������������������� 155 x1 = 0 (���������������������������) 156 x2 = 0 (���������������������������) 157 x3 = 0 (���������������������������) 158 159- CPU ������ 160 ������������������������������ PSTATE.DAIF ���������������Debug���SError���IRQ 161 ��� FIQ������ 162 CPU ������������ EL2��������������������������������������������������� EL1 ������������ 163 164- ���������������MMU 165 MMU ��������������� 166 ������������������������������������ 167 ������������������������������������������������������������������������������������������PoC������ 168 ������������������������������������������������������������������������������������������������ 169 ������������������������ set/way ��������� 170 ������������������������������������������������������������������������������������������������������ 171 ��������������������������������������������������������������������������������������������������� 172 ��������� 173 174 *������������������ PoC ������������������������������������ ARMv8 ������������������ 175 ARM DDI 0487A 176 177- ��������������� 178 CNTFRQ ��������������������������������������� CNTVOFF ������������������������ CPU 179 ��������������������������� EL1 ��������������������������� CNTHCTL_EL2 ������ 180 EL1PCTEN (bit 0) ��������������� 181 182- ��������� 183 ��������������������������� CPU ��������������������������������������������������������������� 184 ������������������������������������������������������������������������CPU��������������������� 185 ��������� 186 187- ��������������� 188 ������������������������������������������������������������������������������������������������ 189 ��������������������������������������������������������� ������ ������������������ 190 191 ������������ GICv3 ��������������������� v3 ������������������������ 192 - ������ EL3 ��������� 193 ICC_SRE_EL3.Enable (��� 3) ������������������ 0b1��� 194 ICC_SRE_EL3.SRE (��� 0) ������������������ 0b1��� 195 - ������������������ EL1��� 196 ICC_SRE_EL2.Enable (��� 3) ������������������ 0b1��� 197 ICC_SRE_EL2.SRE (��� 0) ������������������ 0b1��� 198 - ������������DT������ ACPI ��������������������� GICv3 ������������������ 199 200 ������������ GICv3 ������������������������������v2��������������������������� 201 - ������ EL3 ��������� 202 ICC_SRE_EL3.SRE (��� 0) ������������������ 0b0��� 203 - ������������������ EL1��� 204 ICC_SRE_EL2.SRE (��� 0) ������������������ 0b0��� 205 - ������������DT������ ACPI ��������������������� GICv2 ������������������ 206 207������������ CPU ������������������������MMU��������������������������������������������������� 208��������������������������������� CPU��������� CPU ������������������������������������������ 209 210��������������������������������� CPU ������������������������������������������ 211 212- ��� CPU ������������������������������������������������������������ CPU ������������������ 213 ������������������������ CPU ��������������������� ���enable-method��� ������������ 214 ��������� enable-method ��������������� 215 216 ������������������������������������������������������������������������������������������������ 217 ������������ 218 219- enable-method ��� ���spin-table��� ��� CPU ������������������ CPU 220 ��������������������� ���cpu-release-addr��� ������������������������������������ 221 64 ��������������������������������������������������� 222 223 ������ CPU ������������������������������������������������ /memreserve/ ��������� 224 ������������������������������������������������������ cpu-release-addr ��������������� 225 ������������������������������������������ wfe ��������������������������������������� CPU ��� 226 ������ sev ��������������� cpu-release-addr ������������������������������������������ 227 ������CPU ��������������������������������������������������������������� 64 ��������������� 228 ������ CPU ������������������������������������������������������������������ 229 230- enable-method ��� ���psci��� ��� CPU ��������������������������������� 231 memory ��������������������������������������������������������������������� /memreserve/ 232 ��������������������������������������������������������������������� ARM ��������������� 233 ARM DEN 0022A��������� ARM ��������������������������������������������������������� 234 CPU_ON ������������ CPU ��������������� 235 236 *���������: ARM DEN 0022A ������������ ARM DEN 0022C��� 237 238 ��������������������������� ���psci��� ��������������������������������� 239 Documentation/devicetree/bindings/arm/psci.yaml 240 241 242- ������ CPU ��������������������� 243 x0 = 0 (���������������������������) 244 x1 = 0 (���������������������������) 245 x2 = 0 (���������������������������) 246 x3 = 0 (���������������������������) 247