€•à)Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ*/translations/zh_CN/arch/loongarch/booting”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/zh_TW/arch/loongarch/booting”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/it_IT/arch/loongarch/booting”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/ja_JP/arch/loongarch/booting”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/ko_KR/arch/loongarch/booting”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/pt_BR/arch/loongarch/booting”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/sp_SP/arch/loongarch/booting”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…””}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³ŒD/var/lib/git/docbuild/linux/Documentation/arch/loongarch/booting.rst”h´KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒBooting Linux/LoongArch”h]”hŒBooting Linux/LoongArch”…””}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhŒ field_list”“”)”}”(hhh]”(hŒfield”“”)”}”(hhh]”(hŒ field_name”“”)”}”(hŒAuthor”h]”hŒAuthor”…””}”(hhéh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hçhhäh³hÇh´KubhŒ field_body”“”)”}”(hŒ"Yanteng Si ”h]”hŒ paragraph”“”)”}”(hhûh]”(hŒ Yanteng Si <”…””}”(hhÿh²hh³Nh´NubhŒ reference”“”)”}”(hŒsiyanteng@loongson.cn”h]”hŒsiyanteng@loongson.cn”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:siyanteng@loongson.cn”uh1jhhÿubhŒ>”…””}”(hhÿh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´Khhùubah}”(h]”h ]”h"]”h$]”h&]”uh1h÷hhäubeh}”(h]”h ]”h"]”h$]”h&]”uh1hâh³hÇh´Khhßh²hubhã)”}”(hhh]”(hè)”}”(hŒDate”h]”hŒDate”…””}”(hj1h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hçhj.h³hÇh´Kubhø)”}”(hŒ 18 Nov 2022 ”h]”hþ)”}”(hŒ 18 Nov 2022”h]”hŒ 18 Nov 2022”…””}”(hjCh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´Khj?ubah}”(h]”h ]”h"]”h$]”h&]”uh1h÷hj.ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hâh³hÇh´Khhßh²hubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝhhÊh²hh³hÇh´KubhÉ)”}”(hhh]”(hÎ)”}”(hŒ,Information passed from BootLoader to kernel”h]”hŒ,Information passed from BootLoader to kernel”…””}”(hjfh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjch²hh³hÇh´K ubhþ)”}”(hŒ´LoongArch supports ACPI and FDT. The information that needs to be passed to the kernel includes the memmap, the initrd, the command line, optionally the ACPI/FDT tables, and so on.”h]”hŒ´LoongArch supports ACPI and FDT. The information that needs to be passed to the kernel includes the memmap, the initrd, the command line, optionally the ACPI/FDT tables, and so on.”…””}”(hjth²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´K hjch²hubhþ)”}”(hŒ@The kernel is passed the following arguments on `kernel_entry` :”h]”(hŒ0The kernel is passed the following arguments on ”…””}”(hj‚h²hh³Nh´NubhŒtitle_reference”“”)”}”(hŒ`kernel_entry`”h]”hŒ kernel_entry”…””}”(hjŒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jŠhj‚ubhŒ :”…””}”(hj‚h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´Khjch²hubhŒ block_quote”“”)”}”(hX2- a0 = efi_boot: `efi_boot` is a flag indicating whether this boot environment is fully UEFI-compliant. - a1 = cmdline: `cmdline` is a pointer to the kernel command line. - a2 = systemtable: `systemtable` points to the EFI system table. All pointers involved at this stage are in physical addresses. ”h]”hŒ bullet_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hŒfa0 = efi_boot: `efi_boot` is a flag indicating whether this boot environment is fully UEFI-compliant. ”h]”hþ)”}”(hŒea0 = efi_boot: `efi_boot` is a flag indicating whether this boot environment is fully UEFI-compliant.”h]”(hŒa0 = efi_boot: ”…””}”(hjµh²hh³Nh´Nubj‹)”}”(hŒ `efi_boot`”h]”hŒefi_boot”…””}”(hj½h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jŠhjµubhŒL is a flag indicating whether this boot environment is fully UEFI-compliant.”…””}”(hjµh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´Khj±ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¯hj¬ubj°)”}”(hŒAa1 = cmdline: `cmdline` is a pointer to the kernel command line. ”h]”hþ)”}”(hŒ@a1 = cmdline: `cmdline` is a pointer to the kernel command line.”h]”(hŒa1 = cmdline: ”…””}”(hjßh²hh³Nh´Nubj‹)”}”(hŒ `cmdline`”h]”hŒcmdline”…””}”(hjçh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jŠhjßubhŒ) is a pointer to the kernel command line.”…””}”(hjßh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´KhjÛubah}”(h]”h ]”h"]”h$]”h&]”uh1j¯hj¬ubj°)”}”(hŒa2 = systemtable: `systemtable` points to the EFI system table. All pointers involved at this stage are in physical addresses. ”h]”hþ)”}”(hŒ~a2 = systemtable: `systemtable` points to the EFI system table. All pointers involved at this stage are in physical addresses.”h]”(hŒa2 = systemtable: ”…””}”(hj h²hh³Nh´Nubj‹)”}”(hŒ `systemtable`”h]”hŒ systemtable”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jŠhj ubhŒ_ points to the EFI system table. All pointers involved at this stage are in physical addresses.”…””}”(hj h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´Khjubah}”(h]”h ]”h"]”h$]”h&]”uh1j¯hj¬ubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1jªh³hÇh´Khj¦ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¤h³hÇh´Khjch²hubeh}”(h]”Œ,information-passed-from-bootloader-to-kernel”ah ]”h"]”Œ,information passed from bootloader to kernel”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´K ubhÉ)”}”(hhh]”(hÎ)”}”(hŒ'Header of Linux/LoongArch kernel images”h]”hŒ'Header of Linux/LoongArch kernel images”…””}”(hjHh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjEh²hh³hÇh´Kubhþ)”}”(hŒjLinux/LoongArch kernel images are EFI images. Being PE files, they have a 64-byte header structured like::”h]”hŒiLinux/LoongArch kernel images are EFI images. Being PE files, they have a 64-byte header structured like:”…””}”(hjVh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hýh³hÇh´KhjEh²hubhŒ literal_block”“”)”}”(hX2u32 MZ_MAGIC /* "MZ", MS-DOS header */ u32 res0 = 0 /* Reserved */ u64 kernel_entry /* Kernel entry point */ u64 _end - _text /* Kernel image effective size */ u64 load_offset /* Kernel image load offset from start of RAM */ u64 res1 = 0 /* Reserved */ u64 res2 = 0 /* Reserved */ u64 res3 = 0 /* Reserved */ u32 LINUX_PE_MAGIC /* Magic number */ u32 pe_header - _head /* Offset to the PE header */”h]”hX2u32 MZ_MAGIC /* "MZ", MS-DOS header */ u32 res0 = 0 /* Reserved */ u64 kernel_entry /* Kernel entry point */ u64 _end - _text /* Kernel image effective size */ u64 load_offset /* Kernel image load offset from start of RAM */ u64 res1 = 0 /* Reserved */ u64 res2 = 0 /* Reserved */ u64 res3 = 0 /* Reserved */ u32 LINUX_PE_MAGIC /* Magic number */ u32 pe_header - _head /* Offset to the PE header */”…””}”hjfsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jdh³hÇh´K!hjEh²hubeh}”(h]”Œ'header-of-linux-loongarch-kernel-images”ah ]”h"]”Œ'header of linux/loongarch kernel images”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´Kubeh}”(h]”Œbooting-linux-loongarch”ah ]”h"]”Œbooting linux/loongarch”ah$]”h&]”uh1hÈhhh²hh³hÇh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÇuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(hÍNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”j§Œerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÇŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(jj~jBj?jyjvuŒ nametypes”}”(j‰jB‰jy‰uh}”(j~hÊj?jcjvjEuŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.