2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
10 # $Id: breakpoint.c 577 2004-09-14 14:41:46Z pixel $
16 __asm__
__volatile__("mtc0 %0, $5" : : "r" (v
));
19 void set_dbam(u32 v
) {
20 __asm__
__volatile__("mtc0 %0, $9" : : "r" (v
));
23 void set_dcic(u32 v
) {
24 __asm__
__volatile__("mtc0 %0, $7" : : "r" (v
));
29 __asm__
__volatile__("mfc0 %0, $5" : "=&r" (v
));
35 __asm__
__volatile__("mfc0 %0, $9" : "=&r" (v
));
41 __asm__
__volatile__("mfc0 %0, $7" : "=&r" (v
));