Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2026 → Rev 2027

/trunk/kernel/test/debug/mips1.c
25,6 → 25,8
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef mips32
 
#include <print.h>
#include <debug.h>
37,18 → 39,15
 
#include <arch.h>
 
 
void test_mips1(void)
char * test_mips1(void)
{
#ifdef mips32
printf("MIPS debug test #1\n");
 
printf("You should enter kconsole debug mode now.\n");
asm volatile (
"break\n"
);
return "Back from debug mode";
}
 
asm __volatile__ ("break");
 
printf("Test passed.\n");
#else
printf("This test is availaible only on MIPS32 platform.\n");
#endif
}