Skip to content

Conversation

@ZR233
Copy link
Contributor

@ZR233 ZR233 commented Aug 15, 2025

axplat中 .code32 代码可能影响到了后续代码,编译时产生

error: register %r15 is only available in 64-bit mode
    |
note: instantiated into assembly here
   --> <inline asm>:467:13
    |
467 |         pop r15
    |             ^^^

依赖版本问题,需要先通过:
arceos-hypervisor/axdevice_base#40
arceos-hypervisor/x86_vlapic#6

@ZR233 ZR233 requested a review from Copilot August 15, 2025 06:33
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses a compilation error related to assembly code generation by adding .code64 directives to naked assembly blocks in VMX entry and exit functions. The error occurred because .code32 directives elsewhere in the codebase were affecting subsequent code compilation, causing the assembler to reject 64-bit register usage.

  • Added .code64 directive to VMX entry macro to ensure 64-bit mode assembly
  • Added .code64 directive to VMX exit function to ensure 64-bit mode assembly

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@ZR233 ZR233 closed this Aug 18, 2025
@ZR233 ZR233 deleted the dev-fix-build branch December 22, 2025 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants