From e1f398d04efb21af34662caf3a25cc61fb4bd236 Mon Sep 17 00:00:00 2001 From: illusion0001 <37698908+illusion0001@users.noreply.github.com> Date: Fri, 23 Jun 2023 22:56:20 -0500 Subject: [PATCH 1/2] CI: Build on LLVM 16 --- .github/workflows/cmake.yml | 42 +++++++++++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 43 insertions(+) create mode 100644 .github/workflows/cmake.yml diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml new file mode 100644 index 0000000..38676de --- /dev/null +++ b/.github/workflows/cmake.yml @@ -0,0 +1,42 @@ +name: CMake + +on: [ push, pull_request ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup environment + run: | + echo "PS5SDK=$(pwd)" >> $GITHUB_ENV + sudo apt install ninja-build + echo "llvm_ver=16.0" >> $GITHUB_ENV + + - name: Cache LLVM and Clang (${{ env.llvm_ver }}) + id: cache-llvm + uses: actions/cache@v3 + with: + path: ${{ runner.tool_cache }}/llvm-${{ env.llvm_ver }} + key: llvm1-${{ env.llvm_ver }} + + - name: Install LLVM and Clang (${{ env.llvm_ver }}) + uses: KyleMayes/install-llvm-action@master + with: + version: ${{ env.llvm_ver }} + directory: ${{ runner.tool_cache }}/llvm-${{ env.llvm_ver }} + cached: ${{ steps.cache-llvm.outputs.cache-hit }} + + - name: Show Clang version + run: clang -v + + - name: Build SDK + run: bash ./build.sh + + - name: Upload sample elf + uses: actions/upload-artifact@v3 + with: + name: samples + path: ${{ github.workspace }}/**/*.elf diff --git a/README.md b/README.md index 1f5ba66..c4164ca 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # PS5 SDK [![Release State](https://img.shields.io/badge/release%20state-beta-yellow.svg)](https://github.com/PS5Dev/PS5SDK) [![Platforms](https://img.shields.io/badge/platform-linux%20%7C%20windows%20%7C%20macos-lightgrey)](https://github.com/PS5Dev/PS5SDK) +[![CMake](../../actions/workflows/cmake.yml/badge.svg)](../../actions/workflows/cmake.yml) **Note: As this SDK is a work-in-progress, it's subject to major changes between releases until it approaches a stable version (1.0).** From 8afc9c9db47d3a069630bf45e450e0acad14d8f2 Mon Sep 17 00:00:00 2001 From: illusion0001 <37698908+illusion0001@users.noreply.github.com> Date: Tue, 10 Oct 2023 20:39:17 -0500 Subject: [PATCH 2/2] Update libkernel.h --- ps5/libkernel.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ps5/libkernel.h b/ps5/libkernel.h index 1acf3a2..1266aa2 100644 --- a/ps5/libkernel.h +++ b/ps5/libkernel.h @@ -522,7 +522,13 @@ _Fn_(uint64_t , sceKernelResumeDirectMemoryRelease, void); _Fn_(uint64_t , sceKernelRmdir, void); _Fn_(uint64_t , sceKernelRtldControl, void); _Fn_(uint64_t , sceKernelSandboxPath, void); -_Fn_(uint64_t , sceKernelSendNotificationRequest, void); + +typedef struct notify_request { + char useless1[45]; + char message[3075]; +} notify_request_t; + +_Fn_(uint64_t , sceKernelSendNotificationRequest, int, notify_request_t *, size_t, int); _Fn_(uint64_t , sceKernelSetAppInfo, void); _Fn_(uint64_t , sceKernelSetAppLibcData, void); _Fn_(uint64_t , sceKernelSetBackupRestoreMode, void);