Add .code64 to the x86 trap assembly

This commit is contained in:
Zhang Junyang
2024-10-04 19:35:45 +08:00
committed by Tate, Hongliang Tian
parent 8b69aba0b8
commit 2ddcd2d9a7
2 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,8 @@
* SPDX-License-Identifier: MPL-2.0 * SPDX-License-Identifier: MPL-2.0
*/ */
.code64
.text .text
# extern "sysv64" fn syscall_return(&mut GeneralRegs) # extern "sysv64" fn syscall_return(&mut GeneralRegs)
.global syscall_return .global syscall_return

View File

@ -15,6 +15,8 @@
* SPDX-License-Identifier: MPL-2.0 * SPDX-License-Identifier: MPL-2.0
*/ */
.code64
.equ NUM_INT, 256 .equ NUM_INT, 256
.altmacro .altmacro