public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "xianglai" <lixianglai@loongson.cn>
To: devel@edk2.groups.io
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>,
	Bibo Mao <maobibo@loongson.cn>, Chao Li <lichao@loongson.cn>,
	Leif Lindholm <quic_llindhol@quicinc.com>,
	Liming Gao <gaoliming@byosoft.com.cn>,
	Michael D Kinney <michael.d.kinney@intel.com>
Subject: [edk2-platforms] Platform/Loongson: Fixed multi-core boot issue
Date: Fri, 31 Mar 2023 10:30:01 +0800	[thread overview]
Message-ID: <51c232b8139098f410595719b7c3131d021da08e.1680229738.git.lixianglai@loongson.cn> (raw)

Fixed the bug of slave cpu querying MAILBUF register address.

Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Bibo Mao <maobibo@loongson.cn>
Cc: Chao Li <lichao@loongson.cn>
Cc: Leif Lindholm <quic_llindhol@quicinc.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: xianglai li <lixianglai@loongson.cn>
---
 Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S b/Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S
index 5d7ce313c0..8fb1b416f6 100644
--- a/Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S
+++ b/Platform/Loongson/LoongArchQemuPkg/Sec/LoongArch64/Start.S
@@ -56,6 +56,8 @@ slave_main:
     li.d      T1, LOONGSON_IOCSR_IPI_EN
     iocsrwr.w T0, T1
 
+    li.d      T1, LOONGSON_CSR_MAIL_BUF0
+
 1:
     # wait for wakeup
     idle 0
-- 
2.31.1


             reply	other threads:[~2023-03-31  2:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-31  2:30 xianglai [this message]
2023-04-11  1:35 ` [edk2-devel] [edk2-platforms] Platform/Loongson: Fixed multi-core boot issue Chao Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51c232b8139098f410595719b7c3131d021da08e.1680229738.git.lixianglai@loongson.cn \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox