PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
iopdebug_priv.h
Go to the documentation of this file.
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# Copyright 2001-2009, ps2dev - http://www.ps2dev.org
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
17#ifndef _IOP_DEBUG_PRIV_H
18#define _IOP_DEBUG_PRIV_H
19
20#include <tamtypes.h>
21#include <intrman.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
28static inline void EnterCritical(u32 *old_state) { CpuSuspendIntr((int *) old_state); }
29
31static inline void ExitCritical(u32 old_state) { CpuResumeIntr((int) old_state); }
32
33#ifdef __cplusplus
34}
35#endif
36
37#endif // #ifndef _IOP_DEBUG_PRIV_H
int CpuResumeIntr(int state)
Definition intrman.c:227
int CpuSuspendIntr(int *state)
Definition intrman.c:205
static void EnterCritical(u32 *old_state)
static void ExitCritical(u32 old_state)