Subversion Repositories HelenOS-historic

Rev

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

Rev 703 Rev 769
Line 40... Line 40...
40
#include <symtab.h>
40
#include <symtab.h>
41
#include <arch/asm.h>
41
#include <arch/asm.h>
42
#include <proc/scheduler.h>
42
#include <proc/scheduler.h>
43
#include <proc/thread.h>
43
#include <proc/thread.h>
44
 
44
 
45
 
45
/*
46
static void messy_stack_trace(__native *stack)
46
static void messy_stack_trace(__native *stack)
47
{
47
{
48
    __native *upper_limit = (__native *)(((__native)get_stack_base()) + STACK_SIZE);
48
    __native *upper_limit = (__native *)(((__native)get_stack_base()) + STACK_SIZE);
49
    char *symbol;
49
    char *symbol;
50
 
50
 
Line 55... Line 55...
55
            printf("%s, ", symbol);
55
            printf("%s, ", symbol);
56
        stack++;
56
        stack++;
57
    }
57
    }
58
    printf("\n");
58
    printf("\n");
59
}
59
}
60
 
60
*/
61
static void print_info_errcode(int n, void *st)
61
static void print_info_errcode(int n, void *st)
62
{
62
{
63
    char *symbol;
63
    char *symbol;
64
    __native *x = (__native *) st;
64
    __native *x = (__native *) st;
65
 
65
 
Line 81... Line 81...
81
    printf("       %Q, %Q, %Q\n", x[11], x[12], x[13]);
81
    printf("       %Q, %Q, %Q\n", x[11], x[12], x[13]);
82
    printf("       %Q, %Q, %Q\n", x[14], x[15], x[16]);
82
    printf("       %Q, %Q, %Q\n", x[14], x[15], x[16]);
83
    printf("       %Q, %Q, %Q\n", x[17], x[18], x[19]);
83
    printf("       %Q, %Q, %Q\n", x[17], x[18], x[19]);
84
    printf("       %Q, %Q, %Q\n", x[20], x[21], x[22]);
84
    printf("       %Q, %Q, %Q\n", x[20], x[21], x[22]);
85
    printf("       %Q, %Q, %Q\n", x[23], x[24], x[25]);
85
    printf("       %Q, %Q, %Q\n", x[23], x[24], x[25]);
86
    messy_stack_trace(&x[5]);
86
//  messy_stack_trace(&x[5]);
87
}
87
}
88
 
88
 
89
/*
89
/*
90
 * Interrupt and exception dispatching.
90
 * Interrupt and exception dispatching.
91
 */
91
 */