v0.10.2 7f6f138

trampolines_riscv64.s RawHistoryFolder

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: 2026 The Ebitengine Authors
3
4//go:build !cgo && linux
5
6#include "textflag.h"
7#include "go_asm.h"
8
9// these trampolines map the gcc ABI to Go ABI and then calls into the Go equivalent functions.
10// X5 is used as temporary register.
11
12TEXT x_cgo_init_trampoline(SB), NOSPLIT, $16
13	MOV  X10, 8(SP)
14	MOV  X11, 16(SP)
15	MOV  ·x_cgo_init_call(SB), X5
16	MOV  (X5), X5
17	CALL X5
18	RET
19
20TEXT x_cgo_thread_start_trampoline(SB), NOSPLIT, $8
21	MOV  X10, 8(SP)
22	MOV  ·x_cgo_thread_start_call(SB), X5
23	MOV  (X5), X5
24	CALL X5
25	RET
26
27TEXT x_cgo_setenv_trampoline(SB), NOSPLIT, $8
28	MOV  X10, 8(SP)
29	MOV  ·x_cgo_setenv_call(SB), X5
30	MOV  (X5), X5
31	CALL X5
32	RET
33
34TEXT x_cgo_unsetenv_trampoline(SB), NOSPLIT, $8
35	MOV  X10, 8(SP)
36	MOV  ·x_cgo_unsetenv_call(SB), X5
37	MOV  (X5), X5
38	CALL X5
39	RET
40
41TEXT x_cgo_notify_runtime_init_done_trampoline(SB), NOSPLIT, $0
42	CALL ·x_cgo_notify_runtime_init_done(SB)
43	RET
44
45TEXT x_cgo_bindm_trampoline(SB), NOSPLIT, $0
46	CALL ·x_cgo_bindm(SB)
47	RET
48
49// func setg_trampoline(setg uintptr, g uintptr)
50TEXT ·setg_trampoline(SB), NOSPLIT, $0
51	MOV  gp+8(FP), X10
52	MOV  setg+0(FP), X5
53	CALL X5
54	RET
55
56TEXT threadentry_trampoline(SB), NOSPLIT, $16
57	MOV  X10, 8(SP)
58	MOV  ·threadentry_call(SB), X5
59	MOV  (X5), X5
60	CALL X5
61	RET
62
63TEXT ·call5(SB), NOSPLIT, $0-48
64	MOV  fn+0(FP), X5
65	MOV  a1+8(FP), X10
66	MOV  a2+16(FP), X11
67	MOV  a3+24(FP), X12
68	MOV  a4+32(FP), X13
69	MOV  a5+40(FP), X14
70	CALL X5
71	MOV  X10, ret+48(FP)
72	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