The HyperNews Linux KHG Discussion Pages

## Re: interrupt initialization

  Forum: How System Calls Work on Linux/i86
  Re: Can I view the source about interrupt vector 0x80 initialization. (Joo-Ha, Lee)
  Date: Tue, 12 May 1998 23:37:36 GMT
  From: Wormo <sjl@zorbas.ece.ucsb.edu>

The interrupt initialization stuff lurks in a routine called trap_init() from arch/i386/kernel/traps.c, which uses macros from include/asm-i386/system.h to do the dirty work. In particular, int 0x80 gets vectored to the generic system_call wrapper found in arch/i386/kernel/entry.S by the line: set_system_gate(0x80,&system_call); This trap_init() stuff gets called with the other fundamental initialization type stuff in start_kernel() [init/main.c] Hack on, --Wormo