Subversion Repositories HelenOS

Rev

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

Rev 2020 Rev 2027
Line 23... Line 23...
23
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
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
 
-
 
29
#ifdef mips32
28
 
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
 
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");
-
 
45
   
-
 
46
    asm volatile (
-
 
47
        "break\n"
-
 
48
    );
-
 
49
   
-
 
50
    return "Back from debug mode";
-
 
51
}
47
 
52
 
48
    asm __volatile__ ("break");
-
 
49
 
-
 
50
    printf("Test passed.\n");
-
 
51
#else
-
 
52
    printf("This test is availaible only on MIPS32 platform.\n");
-
 
53
#endif
53
#endif
54
}
-