diff options
| author | Alexander Potapenko <glider@google.com> | 2025-09-25 16:49:33 +0200 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2025-10-17 06:51:20 +0000 |
| commit | 554d3ef1c24ae1bc3c8c439e8c8f3a9006434244 (patch) | |
| tree | 165e63455297e0c1ce721ee4c59ae78bd3aa273b /executor/common_kvm_amd64_syzos.h | |
| parent | 19568248c8bdb031004760d49df5045a85aa517b (diff) | |
executor: rename SYZOS-related address definitions
To distinguish SYZOS addresses from other x86 definitions, change them
to start with X86_SYZOS_ADDR_
No functional change.
Diffstat (limited to 'executor/common_kvm_amd64_syzos.h')
| -rw-r--r-- | executor/common_kvm_amd64_syzos.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/executor/common_kvm_amd64_syzos.h b/executor/common_kvm_amd64_syzos.h index b9c3e8315..a8e825ab9 100644 --- a/executor/common_kvm_amd64_syzos.h +++ b/executor/common_kvm_amd64_syzos.h @@ -83,7 +83,7 @@ __attribute__((used)) GUEST_CODE static void guest_main(uint64 size, uint64 cpu) { - uint64 addr = X86_ADDR_USER_CODE + cpu * KVM_PAGE_SIZE; + uint64 addr = X86_SYZOS_ADDR_USER_CODE + cpu * KVM_PAGE_SIZE; while (size >= sizeof(struct api_call_header)) { struct api_call_header* cmd = (struct api_call_header*)addr; @@ -151,7 +151,7 @@ GUEST_CODE static noinline void guest_execute_code(uint8* insns, uint64 size) // and can handle the call depending on the data passed as exit code. GUEST_CODE static noinline void guest_uexit(uint64 exit_code) { - volatile uint64* ptr = (volatile uint64*)X86_ADDR_UEXIT; + volatile uint64* ptr = (volatile uint64*)X86_SYZOS_ADDR_UEXIT; *ptr = exit_code; } |
