Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 65 → Rev 68

/SPARTAN/trunk/arch/ia32/src/debug/panic.s
27,8 → 27,8
#
 
.text
.global panic
.global panic_printf
 
panic:
panic_printf:
movl $halt,(%esp) # fake stack to make printf return to halt
jmp printf
/SPARTAN/trunk/arch/ia32/src/pm.c
143,7 → 143,7
else {
tss_p = (struct tss *) malloc(sizeof(struct tss));
if (!tss_p)
panic(PANIC "could not allocate TSS\n");
panic("could not allocate TSS\n");
}
 
tss_initialize(tss_p);
/SPARTAN/trunk/arch/ia32/src/smp/mps.c
469,7 → 469,7
* Prepare new GDT for CPU in question.
*/
if (!(gdt_new = (struct descriptor *) malloc(GDT_ITEMS*sizeof(struct descriptor))))
panic(PANIC "couldn't allocate memory for GDT\n");
panic("couldn't allocate memory for GDT\n");
 
memcopy(gdt, gdt_new, GDT_ITEMS*sizeof(struct descriptor));
gdtr.base = (__address) gdt_new;
/SPARTAN/trunk/arch/ia32/src/interrupt.c
28,6 → 28,7
 
#include <arch/interrupt.h>
#include <print.h>
#include <debug.h>
#include <panic.h>
#include <arch/i8259.h>
#include <func.h>
48,12 → 49,14
 
iroutine trap_register(__u8 n, iroutine f)
{
ASSERT(n < IVT_ITEMS);
iroutine old;
old = ivt[n];
ivt[n] = f;
return old;
return old;
}
 
/*
62,7 → 65,9
*/
void trap_dispatcher(__u8 n, __u32 stack[])
{
ivt[n](n,stack);
ASSERT(n < IVT_ITEMS);
ivt[n](n, stack);
}
 
void null_interrupt(__u8 n, __u32 stack[])
112,7 → 117,7
if (enable_irqs_function)
enable_irqs_function(irqmask);
else
panic(PANIC "no enable_irqs_function\n");
panic("no enable_irqs_function\n");
}
 
void trap_virtual_disable_irqs(__u16 irqmask)
120,7 → 125,7
if (disable_irqs_function)
disable_irqs_function(irqmask);
else
panic(PANIC "no disable_irqs_function\n");
panic("no disable_irqs_function\n");
}
 
void trap_virtual_eoi(void)
128,6 → 133,6
if (eoi_function)
eoi_function();
else
panic(PANIC "no eoi_function\n");
panic("no eoi_function\n");
 
}