Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
6f91ba1b
Commit
6f91ba1b
authored
Oct 25, 2009
by
Kai Backman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proper syscall convention for arm
R=rsc
http://go/go-review/1015009
parent
68d5c512
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
11 deletions
+6
-11
sys.s
src/pkg/runtime/linux/arm/sys.s
+2
-2
asm_linux_arm.s
src/pkg/syscall/asm_linux_arm.s
+3
-6
zsysnum_linux_arm.go
src/pkg/syscall/zsysnum_linux_arm.go
+1
-3
No files found.
src/pkg/runtime/linux/arm/sys.s
View file @
6f91ba1b
...
...
@@ -18,8 +18,8 @@ TEXT write(SB),7,$0
SWI $SYS_write
RET
TEXT exit(SB),7,$
0
// Exit value already in
R0
TEXT exit(SB),7,$
-4
MOVW 0(FP),
R0
SWI $SYS_exit
TEXT runtime·mmap(SB),7,$0
...
...
src/pkg/syscall/asm_linux_arm.s
View file @
6f91ba1b
...
...
@@ -6,9 +6,6 @@
// System calls for arm, Linux
//
#define SYS_BASE 0x00900000
#define SYS_syscall (SYS_BASE+113);
// TODO(kaib): handle error returns
// func Syscall(syscall uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr);
...
...
@@ -19,7 +16,7 @@ TEXT syscall·Syscall(SB),7,$0
MOVW 8(SP), R0
MOVW 12(SP), R1
MOVW 16(SP), R2
SWI $
SYS_syscall
SWI $
0
MOVW R0, 20(SP) // r1
MOVW R1, 24(SP) // r2
MOVW $0, R0
...
...
@@ -38,7 +35,7 @@ TEXT syscall·Syscall6(SB),7,$0
MOVW 20(SP), R3
MOVW 24(SP), R4
MOVW 28(SP), R5
SWI $
SYS_syscall
SWI $
0
MOVW R0, 32(SP) // r1
MOVW R1, 36(SP) // r2
MOVW $0, R0
...
...
@@ -52,7 +49,7 @@ TEXT syscall·RawSyscall(SB),7,$0
MOVW 8(SP), R0
MOVW 12(SP), R1
MOVW 16(SP), R2
SWI $
SYS_syscall
SWI $
0
MOVW R0, 20(SP) // r1
MOVW R1, 24(SP) // r2
MOVW $0, R0
...
...
src/pkg/syscall/zsysnum_linux_arm.go
View file @
6f91ba1b
...
...
@@ -3,9 +3,7 @@
package
syscall
const
(
SYS_SYSCALL_BASE
=
0x900000
;
// for thumb and eabi
//SYS_SYSCALL_BASE = 0;
SYS_SYSCALL_BASE
=
0
;
SYS_RESTART_SYSCALL
=
(
SYS_SYSCALL_BASE
+
0
);
SYS_EXIT
=
(
SYS_SYSCALL_BASE
+
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment