From cef1e852f42fcb4e1a07eaae53a2a14a7beeb37a Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Fri, 1 Oct 2021 20:20:29 +0000 Subject: [PATCH] Fix ci --- .gitlab-ci.yml | 4 ++-- samples/profiler.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4740a5a..0f90dcd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,9 +17,9 @@ build:sh4-gcc: build:x86-gcc: stage: build - image: fedora:33 + image: fedora:34 before_script: - - sudo dnf install -y cmake gcc gcc-c++ SDL2-devel.i686 glibc-devel.i686 + - sudo dnf install -y cmake gcc gcc-c++ SDL2-devel glibc-devel pkgconf-pkg-config glibc-devel.i686 SDL2-devel.i686 script: - mkdir builddir - cd builddir diff --git a/samples/profiler.c b/samples/profiler.c index 357eb91..c44c3c9 100644 --- a/samples/profiler.c +++ b/samples/profiler.c @@ -99,8 +99,11 @@ static int thd_each_cb(kthread_t* thd, void* data) { * current. Obviouly thought between iterations the * PC will change so it's not like this is a true snapshot * in time across threads */ + int old = irq_disable(); uint32_t PC = thd->context.pc; uint32_t PR = thd->context.pr; + irq_restore(old); + record_thread(PC, PR); return 0; }