1/* 2 * tbilogf.S 3 * 4 * Copyright (C) 2001, 2002, 2007, 2012 Imagination Technologies. 5 * 6 * This program is free software; you can redistribute it and/or modify it under 7 * the terms of the GNU General Public License version 2 as published by the 8 * Free Software Foundation. 9 * 10 * Defines __TBILogF trap code for debugging messages and __TBICont for debug 11 * assert to be implemented on. 12 */ 13 14 .file "tbilogf.S" 15 16/* 17 * Perform console printf using external debugger or host support 18 */ 19 .text 20 .balign 4 21 .global ___TBILogF 22 .type ___TBILogF,function 23___TBILogF: 24 MSETL [A0StP],D0Ar6,D0Ar4,D0Ar2 25 SWITCH #0xC10020 26 MOV D0Re0,#0 27 SUB A0StP,A0StP,#24 28 MOV PC,D1RtP 29 .size ___TBILogF,.-___TBILogF 30 31/* 32 * Perform wait for continue under control of the debugger 33 */ 34 .text 35 .balign 4 36 .global ___TBICont 37 .type ___TBICont,function 38___TBICont: 39 MOV D0Ar6,#1 40 MSETL [A0StP],D0Ar6,D0Ar4,D0Ar2 41 SWITCH #0xC30006 /* Returns if we are to continue */ 42 SUB A0StP,A0StP,#(8*3) 43 MOV PC,D1RtP /* Return */ 44 .size ___TBICont,.-___TBICont 45 46/* 47 * End of tbilogf.S 48 */ 49