Subversion Repositories HelenOS

Rev

Rev 2020 | Rev 2029 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2020 Rev 2027
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
-
 
29
#ifdef mips32
-
 
30
 
29
#include <print.h>
31
#include <print.h>
30
#include <debug.h>
32
#include <debug.h>
31
#include <panic.h>
33
#include <panic.h>
32
 
34
 
33
#include <test.h>
35
#include <test.h>
Line 35... Line 37...
35
#include <proc/thread.h>
37
#include <proc/thread.h>
36
#include <time/delay.h>
38
#include <time/delay.h>
37
 
39
 
38
#include <arch.h>
40
#include <arch.h>
39
 
41
 
40
 
-
 
41
void test_mips1(void)
42
char * test_mips1(void)
42
{
43
{
43
#ifdef mips32
-
 
44
    printf("MIPS debug test #1\n");
-
 
45
 
-
 
46
    printf("You should enter kconsole debug mode now.\n");
44
    printf("You should enter kconsole debug mode now.\n");
47
 
45
   
48
    asm __volatile__ ("break");
46
    asm volatile (
-
 
47
        "break\n"
-
 
48
    );
49
 
49
   
50
    printf("Test passed.\n");
50
    return "Back from debug mode";
51
#else
-
 
52
    printf("This test is availaible only on MIPS32 platform.\n");
-
 
53
#endif
-
 
54
}
51
}
-
 
52
 
-
 
53
#endif