mirror of
https://github.com/wiiu-env/libkernel.git
synced 2024-11-22 04:39:19 +01:00
Add support for the KernelWriteSRs and KernelReadSRs function
This commit is contained in:
parent
15e71afb9e
commit
26452f32f3
@ -1,11 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include "kernel_defs.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
extern void KernelReadSRs(sr_table_t* table);
|
||||
extern void KernelWriteSRs(sr_table_t* table);
|
||||
extern void KernelCopyData(uint32_t dst, uint32_t src, uint32_t len);
|
||||
|
||||
void KernelReadPTE(uint32_t outputAddr, int32_t length);
|
||||
|
25
include/kernel/kernel_defs.h
Normal file
25
include/kernel/kernel_defs.h
Normal file
@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct _sr_table_t {
|
||||
uint32_t value[16];
|
||||
uint32_t sdr1;
|
||||
} sr_table_t;
|
||||
|
||||
typedef struct _bat_t {
|
||||
uint32_t h;
|
||||
uint32_t l;
|
||||
} bat_t;
|
||||
|
||||
typedef struct _bat_table_t {
|
||||
bat_t bat[8];
|
||||
} bat_table_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
@ -2,3 +2,5 @@
|
||||
|
||||
:TEXT
|
||||
KernelCopyData
|
||||
KernelWriteSRs
|
||||
KernelReadSRs
|
Loading…
Reference in New Issue
Block a user