From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1nscb7-0007zx-Ul for mharc-grub-devel@gnu.org; Sat, 21 May 2022 23:49:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nscb6-0007zn-OQ for grub-devel@gnu.org; Sat, 21 May 2022 23:49:40 -0400 Received: from mail-oa1-x2f.google.com ([2001:4860:4864:20::2f]:42883) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nscb5-0007LN-2M for grub-devel@gnu.org; Sat, 21 May 2022 23:49:40 -0400 Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-edf3b6b0f2so14488812fac.9 for ; Sat, 21 May 2022 20:49:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=W4q5DHT5duUOsZlxvPeBqL9nfxO1C/ZJDQ2VD+nK9uw=; b=o7ckaHxz3qFRNjv87VtwRk/GRG8uCTPNMr1EJBiPMJVkTE5LYW6J9TtuVz3IuMajy4 bBlExLz2LDX8O4fyu1PNgOWijz046k75NAJL6q6XjXN8661hg/VD5U0Dbdj28wObUgPw 5yGEjQJr1NbFD/mMYFmPDQ7L2rKi8ImzdIPSLCJVYqnjZ8PedT2gtxoa5pqdwhX08t5Z rwezCkuN1U0kic+Ra8AjM0DClqUmi2VUcW5vHiRxbxi4G0RJSFSJF4bPPlg/m3cwrC1L S2z7yMQsVNPC1NnvBQwRLRuzlSZH6Q04KVKzG4w6O5UtyTWFPxbnIIS/KwNUX8XZE4rZ u4eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=W4q5DHT5duUOsZlxvPeBqL9nfxO1C/ZJDQ2VD+nK9uw=; b=x+cC2A8OkOKMIsry9Au+yqhoFyhnuVkq5nhLme2cZPVTX+hH8FW5xJ8bDIG/MXOog+ K8/Z5ZQzHQin7Sal91yrO51J+oivENX8aTWoWLG1/o/SfHOmOtE2QnUD3vV1LTCrmvIU 5AnRafNGLd4oHj5BtBkkzVZMI82vGOb8sEvmCEpLJQ7Wrd3e+lbqN5Lr5NDieNndjf0G ee0hc0e/Colrk12huUMyqpybNAPKEIqlrlTOZvZxBTP4hcsF1XL4H1qHWYoB9nBvlHSd x274IYTBrB5grSxktuIdPlgzSSayWfCjbY1e4BRwDtK2NycaBiR145TuWMatzKV8pyYt +PDw== X-Gm-Message-State: AOAM531Nxzc2gjL9wWDls5M8HbxkZKXyjdbEC12w0joUbzCcdUQqtDtM AaECbD6LluvPpT0g2SiL4BGWdrPiCNm+gOIJ/iBxqYzk6wDkZw== X-Google-Smtp-Source: ABdhPJwjzoHoP4N2Dpc7wiVPiFeMDwXr/aCok/lJLCb7hqnx8EQOxkcS6QL7I47cDw0pj5WojwNxXymm7KRCEWe1hJg= X-Received: by 2002:a05:6870:e0c8:b0:f1:a781:f67e with SMTP id a8-20020a056870e0c800b000f1a781f67emr9562332oab.43.1653191377413; Sat, 21 May 2022 20:49:37 -0700 (PDT) MIME-Version: 1.0 From: wei zhang Date: Sun, 22 May 2022 11:49:26 +0800 Message-ID: Subject: [RFC] 64-bit boot protocol for Linux x86 To: grub-devel@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2001:4860:4864:20::2f; envelope-from=zhangweilst@gmail.com; helo=mail-oa1-x2f.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2022 03:49:41 -0000 Hi guys, If I understand the Linux boot correctly, GRUB 2 will drop Linux in a 32-bit protected mode, using the Linux 32-bit boot protocol. Since Linux has a 64-bit boot protocol, I'm thinking that we can make use of that. On x86_64 target, if we can use 64-bit boot protocol, we'll drop Linux in long mode directly, thus less code executed in the GRUB side, and less code in Linux side. Obviously it's cleaner to just use 32-bit protocol to boot both i386 and x86_64 kernel, but this will not add much complexity. Just new to this mailing list, am I missing anything? Wei Zhang