Changeset 381 for trunk/hal


Ignore:
Timestamp:
Aug 14, 2017, 7:33:59 PM (4 years ago)
Author:
alain
Message:

Add missing defines in the TSAR exception handler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/core/hal_exception.c

    r380 r381  
    3434#include <signal.h>
    3535#include <syscalls.h>
    36 #include <do_exception.h>
    3736#include <remote_spinlock.h>
    3837#include <mips32_uzone.h>
     
    4443
    4544extern   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
     50typedef enum
     51{
     52    EXCP_NON_FATAL,
     53    EXCP_USER_ERROR,
     54    EXCP_KERNEL_PANIC,
     55}
     56exception_handling_type_t;
     57
     58//////////////////////////////////////////////////////////////////////////////////////////
     59// This enum defines the relevant subtypes for a MMU exception reported by the mips32.
     60//////////////////////////////////////////////////////////////////////////////////////////
     61
     62typedef enum
     63{
     64    MMU_EXCP_PAGE_UNMAPPED,
     65    MMU_EXCP_USER_PRIVILEGE,
     66    MMU_EXCP_USER_EXEC,
     67    MMU_EXCP_USER_WRITE,
     68}
     69mmu_exception_subtype_t;
    4670
    4771//////////////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.