Nugget
Bare-metal libraries and examples for the original PlayStation
Loading...
Searching...
No Matches
Macros | Enumerations | Functions | Variables
cop0-sr.c File Reference
#include <stdint.h>
#include "common/hardware/hwregs.h"
#include "common/syscalls/syscalls.h"
Include dependency graph for cop0-sr.c:

Macros

#define ISTAT   IREG
 
#define COPSTUBS(X)
 
#define DECL(n, c)   uint32_t cs_##n(volatile uint32_t *scratch);
 
#define ENT(n, c)   {#n, cs_##n, c},
 

Enumerations

enum  { MODE_SKIP , MODE_RESUME , MODE_IRQ }
 

Functions

uint32_t sr_try (uint32_t value, uint32_t restore)
 
uint32_t cause_try (uint32_t value)
 
void cm_target (void)
 
void cm_probe (uint32_t hit, uint32_t miss, uint32_t sr, uint32_t out[6], uint32_t biu)
 
void bev_probe (uint32_t sr)
 
void pz_probe (uint32_t sr, volatile uint32_t *word, uint32_t out[2])
 
void user_run (uint32_t data, uint32_t sr, uint32_t code)
 
void user_resume (void)
 
void installExceptionHandlers (uint32_t(*handler)(uint32_t *regs, uint32_t from))
 
void uninstallExceptionHandlers (void)
 
int main (void)
 

Variables

uint32_t ue_loads []
 
uint32_t ue_sb []
 
uint32_t ue_sh []
 
uint32_t ue_mfc0 []
 

Macro Definition Documentation

◆ COPSTUBS

#define COPSTUBS (   X)
Value:
X(mfc0, 0) X(mfc1, 1) X(cfc1, 1) X(lwc1, 1) X(swc1, 1) X(cop1, 1) X(mfc2, 2) X(mfc3, 3) X(cfc3, 3) \
X(lwc3, 3) X(swc3, 3) X(cop3, 3)

◆ DECL

#define DECL (   n,
  c 
)    uint32_t cs_##n(volatile uint32_t *scratch);

◆ ENT

#define ENT (   n,
  c 
)    {#n, cs_##n, c},

◆ ISTAT

#define ISTAT   IREG

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MODE_SKIP 
MODE_RESUME 
MODE_IRQ 

Function Documentation

◆ bev_probe()

void bev_probe ( uint32_t  sr)

◆ cause_try()

uint32_t cause_try ( uint32_t  value)

◆ cm_probe()

void cm_probe ( uint32_t  hit,
uint32_t  miss,
uint32_t  sr,
uint32_t  out[6],
uint32_t  biu 
)

◆ cm_target()

void cm_target ( void  )

◆ installExceptionHandlers()

void installExceptionHandlers ( uint32_t(*)(uint32_t *regs, uint32_t from)  handler)

◆ main()

int main ( void  )

◆ pz_probe()

void pz_probe ( uint32_t  sr,
volatile uint32_t *  word,
uint32_t  out[2] 
)

◆ sr_try()

uint32_t sr_try ( uint32_t  value,
uint32_t  restore 
)

◆ uninstallExceptionHandlers()

void uninstallExceptionHandlers ( void  )

◆ user_resume()

void user_resume ( void  )

◆ user_run()

void user_run ( uint32_t  data,
uint32_t  sr,
uint32_t  code 
)

Variable Documentation

◆ ue_loads

uint32_t ue_loads[]
extern

◆ ue_mfc0

uint32_t ue_mfc0[]

◆ ue_sb

uint32_t ue_sb[]

◆ ue_sh

uint32_t ue_sh[]