CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
65 lines
1.1 KiB
ArmAsm
65 lines
1.1 KiB
ArmAsm
# Blackfin testcase for returning to the right place while bouncing between
|
|
# multiple CEC levels (like in a Linux system call)
|
|
# mach: bfin
|
|
# sim: --environment operating
|
|
|
|
#include "test.h"
|
|
.include "testutils.inc"
|
|
|
|
# This test keeps P5 as the base of the EVT table
|
|
|
|
.macro set_evt lvl:req, sym:req
|
|
loadsym R1, \sym;
|
|
[P5 + 4 * \lvl\()] = R1;
|
|
.endm
|
|
|
|
start
|
|
|
|
# First mark all EVTs as fails (they shouldn't be activated)
|
|
imm32 P5, EVT0;
|
|
P1 = P5;
|
|
loadsym R1, fail_lvl
|
|
imm32 P2, 16
|
|
LSETUP (1f, 1f) LC0 = P2;
|
|
1: [P1++] = R1;
|
|
|
|
# The OS exception handler
|
|
set_evt 3, _evx;
|
|
# The OS system call handler
|
|
set_evt 15, _evt15;
|
|
|
|
# Lower ourselves to userspace
|
|
loadsym R1, _user;
|
|
loadsym R2, _next_user;
|
|
RETI = R1;
|
|
R7 = -1;
|
|
sti R7;
|
|
RTI;
|
|
|
|
_user:
|
|
EXCPT 0;
|
|
_next_user:
|
|
dbg_pass
|
|
|
|
_evx:
|
|
# RETX should be pointing to the right place
|
|
R1 = RETX;
|
|
CC = R1 == R2;
|
|
IF !CC JUMP fail_lvl;
|
|
|
|
# Lower ourselves to the system call handler
|
|
RAISE 15;
|
|
RTX;
|
|
|
|
_evt15:
|
|
# RETI should be pointing to the right place
|
|
R1 = RETI;
|
|
CC = R1 == R2;
|
|
IF !CC JUMP fail_lvl;
|
|
|
|
# Return to userspace now
|
|
RTI;
|
|
|
|
fail_lvl:
|
|
dbg_fail
|