]> Cypherpunks repositories - gostls13.git/commit
runtime: add padding to Linux kernel structures sigcontext on loong64
authorGuoqi Chen <chenguoqi@loongson.cn>
Fri, 7 Jun 2024 01:36:53 +0000 (09:36 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Wed, 7 Aug 2024 01:13:35 +0000 (01:13 +0000)
commit36e5c84ffa8b64727b01f056b550c235636c123a
treeecb8e8ecc721f8fd0363332fca277f579e9be7fc
parent5bd442aba31c1720bb333dafbb65cf977091d292
runtime: add padding to Linux kernel structures sigcontext on loong64

On linux/loong64, the sc_extcontext member in the sigcontext structure is
required to be 16-byte aligned [1], although sc_extcontext is not currently
used anywhere, it still needs to be padded to the specified alignment.

[1] https://github.com/torvalds/linux/blob/master/arch/loongarch/include/uapi/asm/sigcontext.h

Change-Id: I98d30e921730314835c9469a6f28e186c9808e34
Reviewed-on: https://go-review.googlesource.com/c/go/+/591855
Reviewed-by: Qiqi Huang <huangqiqi@loongson.cn>
Reviewed-by: sophie zhao <zhaoxiaolin@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/runtime/defs_linux_loong64.go