diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-02-26 13:44:50 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-02-27 13:17:31 +0100 |
commit | b42a3e2f68f97464d60110c58ba5f5f0e4bc333b (patch) | |
tree | bbae588bdc9fb5ba9ba7992792d6a5acd6c4ba88 /arch/arm/include | |
parent | 86759346bac4477c6b3b34bbfc47bb42c46046a1 (diff) | |
download | barebox-b42a3e2f68f97464d60110c58ba5f5f0e4bc333b.tar.gz barebox-b42a3e2f68f97464d60110c58ba5f5f0e4bc333b.tar.xz |
ARM: Allow to mask data aborts
Sometimes it's useful to test if a memory operation works or
aborts. This adds data_abort_mask() to ignore data aborts and
data_abort_unmask() to enable them again. This is used in the
next step for the 'md' command so that illegal addresses just
show 'xxxxxxxx' instead of crashing the system.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/barebox.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/barebox.h b/arch/arm/include/asm/barebox.h index 2b08d68909..31a8e15630 100644 --- a/arch/arm/include/asm/barebox.h +++ b/arch/arm/include/asm/barebox.h @@ -5,4 +5,8 @@ #define ARCH_HAS_STACK_DUMP #endif +#ifdef CONFIG_ARM_EXCEPTIONS +#define ARCH_HAS_DATA_ABORT_MASK +#endif + #endif /* _BAREBOX_H_ */ |