- simplify the array intialization
git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@151 315a16e6-25f9-4109-90ae-ca3045a26c18
This commit is contained in:
parent
806ad22a8a
commit
ef1abb5612
2 changed files with 2 additions and 5 deletions
|
@ -58,7 +58,7 @@ typedef struct {
|
|||
|
||||
gdt_ptr_t gp;
|
||||
static tss_t task_state_segments[MAX_TASKS];
|
||||
static gdt_entry_t gdt[GDT_ENTRIES] = {[0 ... GDT_ENTRIES-1] = {0, 0, 0, 0, 0, 0,}};
|
||||
static gdt_entry_t gdt[GDT_ENTRIES] = {[0 ... GDT_ENTRIES-1] = {0, 0, 0, 0, 0, 0}};
|
||||
static unsigned char kstacks[MAX_TASKS][KERNEL_STACK_SIZE];
|
||||
|
||||
/*
|
||||
|
|
|
@ -42,7 +42,7 @@ typedef struct {
|
|||
* for which the 'presence' bit is cleared (0) will generate an
|
||||
* "Unhandled Interrupt" exception
|
||||
*/
|
||||
static idt_entry_t idt[256];
|
||||
static idt_entry_t idt[256] = {[0 ... 255] = 0x00};
|
||||
idt_ptr_t idtp;
|
||||
|
||||
/* This exists in 'start.asm', and is used to load our IDT */
|
||||
|
@ -76,9 +76,6 @@ void idt_install(void)
|
|||
idtp.limit = (sizeof(idt_entry_t) * 256) - 1;
|
||||
idtp.base = (unsigned int)&idt;
|
||||
|
||||
/* Clear out the entire IDT, initializing it to zeros */
|
||||
memset(&idt, 0x00, sizeof(idt_entry_t) * 256);
|
||||
|
||||
/* Add any new ISRs to the IDT here using idt_set_gate */
|
||||
idt_set_gate(INT_SYSCALL, (unsigned int)isrsyscall, KERNEL_CODE_SELECTOR,
|
||||
IDT_FLAG_PRESENT|IDT_FLAG_RING3|IDT_FLAG_32BIT|IDT_FLAG_TRAPGATE);
|
||||
|
|
Loading…
Add table
Reference in a new issue