From d8470ad9870910c62f992ab0258bfb86569d04dd Mon Sep 17 00:00:00 2001 From: hev Date: Mon, 3 Jun 2024 18:38:23 -0600 Subject: [PATCH] HevTask: Add task execute for s390x. --- src/arch/s390/hev-task-execute-s390x.s | 24 ++++++++++++++++++++++++ src/kern/task/hev-task-execute.S | 4 ++++ 2 files changed, 28 insertions(+) create mode 100644 src/arch/s390/hev-task-execute-s390x.s diff --git a/src/arch/s390/hev-task-execute-s390x.s b/src/arch/s390/hev-task-execute-s390x.s new file mode 100644 index 0000000..d6ed99a --- /dev/null +++ b/src/arch/s390/hev-task-execute-s390x.s @@ -0,0 +1,24 @@ +/* + ============================================================================ + Name : hev-task-execute-s390x.s + Author : hev + 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 diff --git a/src/kern/task/hev-task-execute.S b/src/kern/task/hev-task-execute.S index e2e2ae6..7eddcdc 100644 --- a/src/kern/task/hev-task-execute.S +++ b/src/kern/task/hev-task-execute.S @@ -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!"