Skip to content

Commit

Permalink
HevTask: Add task execute for sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
heiher committed Jun 3, 2024
1 parent d8470ad commit 3bc29fd
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/arch/sh/hev-task-execute-sh.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
============================================================================
Name : hev-task-execute-sh.s
Author : hev <[email protected]>
Copyright : Copyright (c) 2024 everyone.
Description :
============================================================================
*/

.globl hev_task_execute
.type hev_task_execute, @function

hev_task_execute:
mov.l @r4, r3
mov.l r15, @-r3
sts.l pr, @-r3

jsr @r5
mov r3, r15

lds.l @r15+, pr
rts
mov.l @r15, r15

.end hev_task_execute
.size hev_task_execute, . - hev_task_execute
4 changes: 4 additions & 0 deletions src/kern/task/hev-task-execute.S
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@

# include "arch/s390/hev-task-execute-s390x.s"

#elif defined(__sh__)

# include "arch/sh/hev-task-execute-sh.s"

#else

# error "Unsupported platform!"
Expand Down

0 comments on commit 3bc29fd

Please sign in to comment.