root / trunk / tool / patches / MachineExceptions.diff

Revision 202, 1.9 kB (checked in by saurik, 9 months ago)

Updated patches to match documentation.

  • usr/include/CarbonCore/MachineExceptions.h

     
    277277typedef struct ExceptionInformation     ExceptionInformation; 
    278278#endif  /* TARGET_CPU_X86 */ 
    279279 
     280#if TARGET_CPU_ARM 
     281 
     282struct MachineInformationARM { 
     283    int unused; 
     284}; 
     285typedef struct MachineInformationARM MachineInformationARM; 
     286 
     287struct RegisterInformationARM { 
     288    unsigned int R0;  
     289    unsigned int R1;  
     290    unsigned int R2;  
     291    unsigned int R3;  
     292    unsigned int R4;  
     293    unsigned int R5;  
     294    unsigned int R6;  
     295    unsigned int R7;  
     296    unsigned int R8;  
     297    unsigned int R9;  
     298    unsigned int R10;  
     299    unsigned int R11;  
     300    unsigned int R12;  
     301    unsigned int R13;  
     302    unsigned int R14;  
     303    unsigned int R15;  
     304    unsigned int R16;  
     305    unsigned int R17;  
     306}; 
     307typedef struct RegisterInformationARM RegisterInformationARM; 
     308 
     309struct FPUInformationARM { 
     310    unsigned int dunno; /* FIXME */ 
     311}; 
     312typedef struct FPUInformationARM FPUInformationARM; 
     313 
     314struct VectorInformationARM { 
     315    unsigned int dunno[8]; 
     316}; 
     317typedef struct VectorInformationARM VectorInformationARM; 
     318 
     319typedef MachineInformationARM         MachineInformation; 
     320typedef RegisterInformationARM        RegisterInformation; 
     321typedef FPUInformationARM             FPUInformation; 
     322typedef VectorInformationARM          VectorInformation; 
     323struct ExceptionInformation { 
     324  ExceptionKind       theKind; 
     325  MachineInformation * machineState; 
     326  RegisterInformation * registerImage; 
     327  FPUInformation *    FPUImage; 
     328  ExceptionInfo       info; 
     329  VectorInformation * vectorImage; 
     330}; 
     331typedef struct ExceptionInformation     ExceptionInformation; 
     332#endif 
     333 
    280334/*  
    281335    Note:   An ExceptionHandler is NOT a UniversalProcPtr, except in Carbon. 
    282336            It must be a PowerPC function pointer with NO routine descriptor,  
Note: See TracBrowser for help on using the browser.