v0.3.2 c69a076

sys_arm64.s RawHistoryFolder

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: 2022 The Ebitengine Authors
3
4//go:build darwin || (!cgo && linux)
5
6#include "textflag.h"
7#include "go_asm.h"
8#include "funcdata.h"
9#include "internal/abi/abi_arm64.h"
10
11// syscall9X calls a function in libc on behalf of the syscall package.
12// syscall9X takes a pointer to a struct like:
13// struct {
14//	fn    uintptr
15//	a1    uintptr
16//	a2    uintptr
17//	a3    uintptr
18//	a4    uintptr
19//	a5    uintptr
20//	a6    uintptr
21//	a7    uintptr
22//	a8    uintptr
23//	a9    uintptr
24//	r1    uintptr
25//	r2    uintptr
26//	err   uintptr
27// }
28// syscall9X must be called on the g0 stack with the
29// C calling convention (use libcCall).
30GLOBL ·syscall9XABI0(SB), NOPTR|RODATA, $8
31DATA ·syscall9XABI0(SB)/8, $syscall9X(SB)
32TEXT syscall9X(SB), NOSPLIT, $0
33	SUB  $16, RSP   // push structure pointer
34	MOVD R0, 8(RSP)
35
36	FMOVD syscall9Args_f1(R0), F0 // f1
37	FMOVD syscall9Args_f2(R0), F1 // f2
38	FMOVD syscall9Args_f3(R0), F2 // f3
39	FMOVD syscall9Args_f4(R0), F3 // f4
40	FMOVD syscall9Args_f5(R0), F4 // f5
41	FMOVD syscall9Args_f6(R0), F5 // f6
42	FMOVD syscall9Args_f7(R0), F6 // f7
43	FMOVD syscall9Args_f8(R0), F7 // f8
44
45	MOVD syscall9Args_fn(R0), R12 // fn
46	MOVD syscall9Args_a2(R0), R1  // a2
47	MOVD syscall9Args_a3(R0), R2  // a3
48	MOVD syscall9Args_a4(R0), R3  // a4
49	MOVD syscall9Args_a5(R0), R4  // a5
50	MOVD syscall9Args_a6(R0), R5  // a6
51	MOVD syscall9Args_a7(R0), R6  // a7
52	MOVD syscall9Args_a8(R0), R7  // a8
53	MOVD syscall9Args_a9(R0), R8  // a9
54	MOVD syscall9Args_a1(R0), R0  // a1
55
56	MOVD R8, (RSP) // push a9 onto stack
57
58	BL (R12)
59
60	MOVD  8(RSP), R2              // pop structure pointer
61	ADD   $16, RSP
62	MOVD  R0, syscall9Args_r1(R2) // save r1
63	FMOVD F0, syscall9Args_r2(R2) // save r2
64	RET
65
66TEXT callbackasm1(SB), NOSPLIT|NOFRAME, $0
67	NO_LOCAL_POINTERS
68
69	// On entry, the trampoline in zcallback_darwin_arm64.s left
70	// the callback index in R12 (which is volatile in the C ABI).
71
72	// Save callback register arguments R0-R7.
73	// We do this at the top of the frame so they're contiguous with stack arguments.
74	SUB $(8*8), RSP, R14
75	STP  (R0, R1), (0*8)(R14)
76	STP  (R2, R3), (2*8)(R14)
77	STP  (R4, R5), (4*8)(R14)
78	STP  (R6, R7), (6*8)(R14)
79
80	// Adjust SP by frame size.
81	// crosscall2 clobbers FP in the frame record so only save/restore SP.
82	SUB $(28*8), RSP
83	MOVD R30, (RSP)
84
85	// Create a struct callbackArgs on our stack.
86	ADD $(callbackArgs__size + 3*8), RSP, R13
87	MOVD R12, callbackArgs_index(R13)               // callback index
88	MOVD R14, R0
89	MOVD R0, callbackArgs_args(R13)                 // address of args vector
90	MOVD $0, R0
91	MOVD R0, callbackArgs_result(R13)               // result
92
93	// Move parameters into registers
94	// Get the ABIInternal function pointer
95	// without <ABIInternal> by using a closure.
96	MOVD ·callbackWrap_call(SB), R0
97	MOVD (R0), R0                   // fn unsafe.Pointer
98	MOVD R13, R1                    // frame (&callbackArgs{...})
99	MOVD $0, R3                     // ctxt uintptr
100
101	BL crosscall2(SB)
102
103	// Get callback result.
104	ADD $(callbackArgs__size + 3*8), RSP, R13
105	MOVD callbackArgs_result(R13), R0
106
107	// Restore SP
108	MOVD (RSP), R30
109	ADD $(28*8), RSP
110
111	RET

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 102

↑↓ moveenter openesc close