Skip to content

Commit

Permalink
coreinit: Fix wrong/duplicate OSGetCodegenVirtAddrRange declaration, …
Browse files Browse the repository at this point in the history
…formatting
  • Loading branch information
Maschell committed Jun 10, 2024
1 parent f17054e commit 6308933
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions include/coreinit/codegen.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once

#include <wut.h>

/**
Expand Down Expand Up @@ -30,8 +31,7 @@ extern "C" {
#endif

//! The memory permissions for the codegen area.
typedef enum OSCodegenSecMode
{
typedef enum OSCodegenSecMode {
//! The area can be read or written to, but not executed.
CODEGEN_RW_ = 0,
//! The area can be read or executed, but not written to.
Expand All @@ -53,8 +53,8 @@ typedef enum OSCodegenSecMode
* - \link OSGetSecCodeGenMode \endlink
*/
void
OSCodegenGetVirtAddrRange(uint32_t* outVirtualAddress,
uint32_t* outSize);
OSGetCodegenVirtAddrRange(void **outVirtualAddress,
uint32_t *outSize);

/**
* Gets the CPU core that's allowed to use codegen.
Expand Down Expand Up @@ -119,10 +119,9 @@ OSGetSecCodeGenMode();
* <!-- NOTE this function has a specific bit required in cox.xml: 1 << 30? -->
*/
BOOL
OSCodegenCopy(void* dst, void* src, size_t size);

void
OSGetCodegenVirtAddrRange(void** outAddr, uint32_t* size);
OSCodegenCopy(void *dst,
void *src,
size_t size);

#ifdef __cplusplus
}
Expand Down

0 comments on commit 6308933

Please sign in to comment.