Skip to content

Commit

Permalink
sparcv8leon3: adapt assembly code to kernel changes
Browse files Browse the repository at this point in the history
kernel commit f052bff

JIRA: RTOS-516
  • Loading branch information
lukileczo committed Jul 5, 2023
1 parent 9da3f2b commit 235c70c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
8 changes: 4 additions & 4 deletions arch/sparcv8leon3/_start.S
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
.type _start, #function
_start:
save %sp, -0x60, %sp
ld [%i5 + 0], %o7
ld [%i5 + 4], %o0
ld [%i5 + 8], %o1
ld [%i5 + 12], %o2
ld [%i0 + 0], %o7
ld [%i0 + 4], %o0
ld [%i0 + 8], %o1
ld [%i0 + 12], %o2
call _startc
nop
.size _start, .-_start
11 changes: 2 additions & 9 deletions arch/sparcv8leon3/syscalls.S
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,11 @@
.type sym, #function; \
.align 4; \
sym: \
save %sp, -0x60, %sp; \
mov %i0, %o0; \
mov %i1, %o1; \
mov %i2, %o2; \
mov %i3, %o3; \
mov %i4, %o4; \
mov %i5, %o5; \
mov sn, %g4; \
ta 0; \
/* return value in %o0 */; \
ret; \
restore %g0, %o0, %o0; \
retl; \
nop; \
.size sym, .-sym


Expand Down

0 comments on commit 235c70c

Please sign in to comment.