“626abfc33ac373b2c18ef1b26d0b1470eb8f94c0”上不存在“paddle/fluid/framework/ir/ngraph_subgraph_pass.h”
提交 c0d109de 编写于 作者: L Luc Van Oostenryck 提交者: Will Deacon

arm64: use readq() instead of readl() to read 64bit entry_point

Here the entrypoint, declared as a 64 bit integer, is read from
a pointer to 64bit integer but the read is done via readl_relaxed()
which is for 32bit quantities.

All the high bits will thus be lost which change the meaning
of the test against zero done later.

Fix this by using readq_relaxed() instead as it should be for
64bit quantities.
Signed-off-by: NLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: NWill Deacon <will.deacon@arm.com>
上级 02129ae5
...@@ -125,7 +125,7 @@ static void acpi_parking_protocol_cpu_postboot(void) ...@@ -125,7 +125,7 @@ static void acpi_parking_protocol_cpu_postboot(void)
struct parking_protocol_mailbox __iomem *mailbox = cpu_entry->mailbox; struct parking_protocol_mailbox __iomem *mailbox = cpu_entry->mailbox;
__le64 entry_point; __le64 entry_point;
entry_point = readl_relaxed(&mailbox->entry_point); entry_point = readq_relaxed(&mailbox->entry_point);
/* /*
* Check if firmware has cleared the entry_point as expected * Check if firmware has cleared the entry_point as expected
* by the protocol specification. * by the protocol specification.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册