-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test for executing at bad addresses.
- Loading branch information
Showing
3 changed files
with
13 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
TARGETS = crash_read_u32 crash_write_u32 crash_read_f32 crash_write_f32 | ||
TARGETS = crash_read_u32 crash_write_u32 crash_read_f32 crash_write_f32 crash_bad_execaddr | ||
|
||
COMMON_DIR = ../../../common | ||
include $(COMMON_DIR)/common.mk |
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,12 @@ | ||
#include <common.h> | ||
#include <pspkernel.h> | ||
|
||
#include <stdint.h> | ||
|
||
typedef void (*func_ptr)(); | ||
|
||
int main(int argc, char *argv[]) { | ||
volatile func_ptr bad_address = (func_ptr)0xAC; | ||
bad_address(); | ||
return 0; | ||
} |
Binary file not shown.