Skip to content

Commit

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

.globl hev_task_execute
.type hev_task_execute, @function

hev_task_execute:
lg %r4, 0(%r2)
aghi %r4, -256
stmg %r14, %r15, 0(%r4)
lgr %r15, %r4

basr %r14, %r3

lmg %r14, %r15, 0(%r15)
br %r14

.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 @@ -71,6 +71,10 @@

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

#elif defined(__s390x__)

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

#else

# error "Unsupported platform!"
Expand Down

0 comments on commit d8470ad

Please sign in to comment.