mirror of
https://github.com/libretro/RetroArch
synced 2025-04-04 04:20:29 +00:00
(WIIU) enable the exception handler.
This commit is contained in:
parent
0c3dc1e6b2
commit
02c38d23c1
@ -12,6 +12,7 @@ OBJ += wiiu/dynamic_libs/fs_functions.o
|
|||||||
OBJ += wiiu/dynamic_libs/padscore_functions.o
|
OBJ += wiiu/dynamic_libs/padscore_functions.o
|
||||||
OBJ += wiiu/dynamic_libs/vpad_functions.o
|
OBJ += wiiu/dynamic_libs/vpad_functions.o
|
||||||
OBJ += wiiu/system/memory.o
|
OBJ += wiiu/system/memory.o
|
||||||
|
OBJ += wiiu/system/exception_handler.o
|
||||||
OBJ += wiiu/dynamic_libs/gx2_functions.o
|
OBJ += wiiu/dynamic_libs/gx2_functions.o
|
||||||
OBJ += wiiu/dynamic_libs/socket_functions.o
|
OBJ += wiiu/dynamic_libs/socket_functions.o
|
||||||
OBJ += wiiu/fs/fs_utils.o
|
OBJ += wiiu/fs/fs_utils.o
|
||||||
@ -100,13 +101,13 @@ LIBDIRS := -L.
|
|||||||
|
|
||||||
CFLAGS := -mrvl -mcpu=750 -meabi -mhard-float
|
CFLAGS := -mrvl -mcpu=750 -meabi -mhard-float
|
||||||
LDFLAGS :=
|
LDFLAGS :=
|
||||||
#LDFLAGS := $(CFLAGS)
|
|
||||||
|
|
||||||
ifeq ($(DEBUG), 1)
|
ifeq ($(DEBUG), 1)
|
||||||
CFLAGS += -O0 -g
|
CFLAGS += -O0 -g
|
||||||
else
|
else
|
||||||
CFLAGS += -O3
|
CFLAGS += -O3
|
||||||
endif
|
endif
|
||||||
|
LDFLAGS := $(CFLAGS)
|
||||||
|
|
||||||
ASFLAGS := $(CFLAGS) -mregnames
|
ASFLAGS := $(CFLAGS) -mregnames
|
||||||
|
|
||||||
|
@ -43,10 +43,14 @@
|
|||||||
#include "dynamic_libs/vpad_functions.h"
|
#include "dynamic_libs/vpad_functions.h"
|
||||||
#include "dynamic_libs/padscore_functions.h"
|
#include "dynamic_libs/padscore_functions.h"
|
||||||
#include "dynamic_libs/socket_functions.h"
|
#include "dynamic_libs/socket_functions.h"
|
||||||
|
//#include "dynamic_libs/curl_functions.h"
|
||||||
#include "dynamic_libs/ax_functions.h"
|
#include "dynamic_libs/ax_functions.h"
|
||||||
|
//#include "dynamic_libs/aoc_functions.h"
|
||||||
|
//#include "dynamic_libs/acp_functions.h"
|
||||||
#include "fs/fs_utils.h"
|
#include "fs/fs_utils.h"
|
||||||
#include "fs/sd_fat_devoptab.h"
|
#include "fs/sd_fat_devoptab.h"
|
||||||
#include "system/memory.h"
|
#include "system/memory.h"
|
||||||
|
#include "system/exception_handler.h"
|
||||||
#include "utils/logger.h"
|
#include "utils/logger.h"
|
||||||
#include "utils/utils.h"
|
#include "utils/utils.h"
|
||||||
#include "common/common.h"
|
#include "common/common.h"
|
||||||
@ -257,13 +261,23 @@ int __entry_menu(int argc, char **argv)
|
|||||||
InitSocketFunctionPointers();
|
InitSocketFunctionPointers();
|
||||||
|
|
||||||
log_init("10.42.0.1");
|
log_init("10.42.0.1");
|
||||||
|
|
||||||
devoptab_list[STD_OUT] = &dotab_stdout;
|
devoptab_list[STD_OUT] = &dotab_stdout;
|
||||||
devoptab_list[STD_ERR] = &dotab_stdout;
|
devoptab_list[STD_ERR] = &dotab_stdout;
|
||||||
|
|
||||||
InitFSFunctionPointers();
|
InitFSFunctionPointers();
|
||||||
|
InitGX2FunctionPointers();
|
||||||
|
InitSysFunctionPointers();
|
||||||
InitVPadFunctionPointers();
|
InitVPadFunctionPointers();
|
||||||
|
InitPadScoreFunctionPointers();
|
||||||
|
InitAXFunctionPointers();
|
||||||
|
// InitCurlFunctionPointers();
|
||||||
|
// InitAocFunctionPointers();
|
||||||
|
// InitACPFunctionPointers();
|
||||||
|
|
||||||
|
|
||||||
memoryInitialize();
|
memoryInitialize();
|
||||||
mount_sd_fat("sd");
|
mount_sd_fat("sd");
|
||||||
|
setup_os_exceptions();
|
||||||
VPADInit();
|
VPADInit();
|
||||||
OSScreenInit();
|
OSScreenInit();
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include "common/fs_defs.h"
|
|
||||||
#include "dynamic_libs/fs_functions.h"
|
#include "dynamic_libs/fs_functions.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -147,7 +147,7 @@ static unsigned char exception_cb(void * c, unsigned char exception_type) {
|
|||||||
for (i = 0; i < 8; i += 4)
|
for (i = 0; i < 8; i += 4)
|
||||||
pos += sprintf(buf + pos, exception_print_formats[17], &(pAdd[i]),pAdd[i], pAdd[i+1], pAdd[i+2], pAdd[i+3]);
|
pos += sprintf(buf + pos, exception_print_formats[17], &(pAdd[i]),pAdd[i], pAdd[i+1], pAdd[i+2], pAdd[i+3]);
|
||||||
//}
|
//}
|
||||||
log_print(buf);
|
printf(buf);
|
||||||
OSFatal(buf);
|
OSFatal(buf);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user