Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 8a1be76 in mainline


Ignore:
Timestamp:
2018-05-12T09:23:51Z (3 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
2021428
Parents:
d2c5159
Message:

Make sure all IDT fields are initialized

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/pm.c

    rd2c5159 r8a1be76  
    166166{
    167167        idescriptor_t *d;
    168         unsigned int i;
    169 
    170         for (i = 0; i < IDT_ITEMS; i++) {
     168
     169        for (unsigned i = 0; i < IDT_ITEMS; i++) {
    171170                d = &idt[i];
    172171
     
    176175                d->present = 1;
    177176                d->type = AR_INTERRUPT;  /* masking interrupt */
     177
     178                d->dpl = PL_KERNEL;
     179                d->ist = 0;
    178180        }
    179181
Note: See TracChangeset for help on using the changeset viewer.