Changeset 381 for trunk/hal/tsar_mips32/core
- Timestamp:
- Aug 14, 2017, 7:33:59 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_exception.c
r380 r381 34 34 #include <signal.h> 35 35 #include <syscalls.h> 36 #include <do_exception.h>37 36 #include <remote_spinlock.h> 38 37 #include <mips32_uzone.h> … … 44 43 45 44 extern chdev_directory_t chdev_dir; // allocated in the kernel_init.c file. 45 46 ////////////////////////////////////////////////////////////////////////////////////////// 47 // This enum defines the global exception types after analysis by the exception handler. 48 ////////////////////////////////////////////////////////////////////////////////////////// 49 50 typedef enum 51 { 52 EXCP_NON_FATAL, 53 EXCP_USER_ERROR, 54 EXCP_KERNEL_PANIC, 55 } 56 exception_handling_type_t; 57 58 ////////////////////////////////////////////////////////////////////////////////////////// 59 // This enum defines the relevant subtypes for a MMU exception reported by the mips32. 60 ////////////////////////////////////////////////////////////////////////////////////////// 61 62 typedef enum 63 { 64 MMU_EXCP_PAGE_UNMAPPED, 65 MMU_EXCP_USER_PRIVILEGE, 66 MMU_EXCP_USER_EXEC, 67 MMU_EXCP_USER_WRITE, 68 } 69 mmu_exception_subtype_t; 46 70 47 71 //////////////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.