feat: User mode support.
[lunaix-os.git] / lunaix-os / kernel / asm / x86 / interrupt.S
index cd3f547a10dd7522e9b47cff3b3e090d42940df7..e9419837ab5b6c07ea36b9a23173b4aec3d15ba4 100644 (file)
@@ -26,6 +26,7 @@
     isr_template FAULT_DIVISION_ERROR
     isr_template FAULT_GENERAL_PROTECTION, no_error_code=0
     isr_template FAULT_PAGE_FAULT, no_error_code=0
+    isr_template FAULT_STACK_SEG_FAULT, no_error_code=0
 
     isr_template LUNAIX_SYS_PANIC
     isr_template LUNAIX_SYS_CALL
 
         iret  
 
+.section .usrtext
     sig_wrapper:                # in user mode
         movl %esp, %eax
         and $0xfffffff0, %esp