-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
1,857 additions
and
378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
include/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/restrict_def.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef _MSL_RESTRICT_DEF_H | ||
#define _MSL_RESTRICT_DEF_H | ||
|
||
#if !defined(__cplusplus) && __STDC_VERSION__ >= 199901L | ||
#define RESTRICT restrict | ||
#else | ||
#define RESTRICT | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#ifndef RUNTIME_GECKO_EXCEPTIONPPC_H | ||
#define RUNTIME_GECKO_EXCEPTIONPPC_H | ||
|
||
#include "types.h" | ||
#include "PowerPC_EABI_Support/Runtime/__ppc_eabi_linker.h" | ||
#define MAXFRAGMENTS 0x1F | ||
|
||
typedef struct ExceptionTableIndex { | ||
u32 functionoffset; | ||
u32 eti_field; | ||
u32 exceptionoffset; | ||
} ExceptionTableIndex; | ||
|
||
typedef struct FragmentInfo { | ||
ExceptionTableIndex* exception_start; | ||
ExceptionTableIndex* exception_end; | ||
char* code_start; | ||
char* code_end; | ||
char* data_start; | ||
char* data_end; | ||
char* TOC; | ||
s32 active; | ||
} FragmentInfo; | ||
|
||
typedef struct ProcessInfo { | ||
__eti_init_info* exception_info; | ||
char* TOC; | ||
u32 active; | ||
} ProcessInfo; | ||
|
||
u32 __register_fragment(struct __eti_init_info*, char*); | ||
void __unregister_fragment(u32); | ||
s32 ExPPC_FindExceptionFragment(char*, FragmentInfo*); | ||
|
||
#endif |
16 changes: 16 additions & 0 deletions
16
include/PowerPC_EABI_Support/Runtime/__init_cpp_exceptions.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef __INIT_CPP_EXCEPTIONS_H | ||
#define __INIT_CPP_EXCEPTIONS_H | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
extern void __init_cpp_exceptions(void); | ||
extern void __fini_cpp_exceptions(void); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
|
||
#endif |
Oops, something went wrong.