-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmach_vm.s
25 lines (17 loc) · 858 Bytes
/
mach_vm.s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2022 The Go Darwin Authors
// SPDX-License-Identifier: BSD-3-Clause
//go:build darwin && amd64
// +build darwin,amd64
#include "textflag.h"
GLOBL ·mach_vm_allocate_trampoline_addr(SB), RODATA, $8
DATA ·mach_vm_allocate_trampoline_addr(SB)/8, $mach_vm_allocate_trampoline<>(SB)
TEXT mach_vm_allocate_trampoline<>(SB), NOSPLIT, $0-0
JMP mach_vm_allocate(SB)
GLOBL ·mach_vm_deallocate_trampoline_addr(SB), RODATA, $8
DATA ·mach_vm_deallocate_trampoline_addr(SB)/8, $mach_vm_deallocate_trampoline<>(SB)
TEXT mach_vm_deallocate_trampoline<>(SB), NOSPLIT, $0-0
JMP mach_vm_deallocate(SB)
GLOBL ·mach_make_memory_entry_trampoline_addr(SB), RODATA, $8
DATA ·mach_make_memory_entry_trampoline_addr(SB)/8, $mach_make_memory_entry_trampoline<>(SB)
TEXT mach_make_memory_entry_trampoline<>(SB), NOSPLIT, $0-0
JMP mach_make_memory_entry(SB)