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

Changeset 4b0206c in mainline for kernel/arch/amd64/src/interrupt.c


Ignore:
Timestamp:
2016-05-04T22:35:03Z (5 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
0f17bff
Parents:
650cd22
Message:

Use macros instead of magic numbers

File:
1 edited

Legend:

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

    r650cd22 r4b0206c  
    222222        }
    223223       
    224         exc_register(0, "de_fault", true, (iroutine_t) de_fault);
    225         exc_register(7, "nm_fault", true, (iroutine_t) nm_fault);
    226         exc_register(12, "ss_fault", true, (iroutine_t) ss_fault);
    227         exc_register(13, "gp_fault", true, (iroutine_t) gp_fault);
     224        exc_register(VECTOR_DE, "de_fault", true, (iroutine_t) de_fault);
     225        exc_register(VECTOR_NM, "nm_fault", true, (iroutine_t) nm_fault);
     226        exc_register(VECTOR_SS, "ss_fault", true, (iroutine_t) ss_fault);
     227        exc_register(VECTOR_GP, "gp_fault", true, (iroutine_t) gp_fault);
    228228       
    229229#ifdef CONFIG_SMP
Note: See TracChangeset for help on using the changeset viewer.