xen: arm: remove PSR_MODE_MASK from public interface.

This is also defined in sys/ptrace.h on arm64 which breaks the tools build due
to multiple definitions. I expect this is really a bug in the kernel and/or
glibc but we don't really need this symbol in the public headers, at least not
right now, so move it into include/asm instead.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
This commit is contained in:
Ian Campbell committed 2013-04-11 11:09:26 +01:00
1 parent 0793e96282
commit e8dec6c69a
4 files changed
+8 -3

No files matched your search

+1
View File
@@ -1,5 +1,6 @@
#include <xen/config.h>
#include <asm/asm_defns.h>
#include <asm/regs.h>
#include <public/xen.h>
#define SAVE_ONE_BANKED(reg) mrs r11, reg; str r11, [sp, #UREGS_##reg]
+1
View File
@@ -1,5 +1,6 @@
#include <xen/config.h>
#include <asm/asm_defns.h>
#include <asm/regs.h>
#include <public/xen.h>
/*
+6
View File
@@ -1,6 +1,10 @@
#ifndef __ARM_REGS_H__
#define __ARM_REGS_H__
#define PSR_MODE_MASK 0x1f
#ifndef __ASSEMBLY__
#include <xen/types.h>
#include <public/xen.h>
#include <asm/processor.h>
@@ -42,6 +46,8 @@
*/
extern register_t *select_user_reg(struct cpu_user_regs *regs, int reg);
#endif
#endif /* __ARM_REGS_H__ */
/*
* Local variables:
-3
View File
@@ -206,9 +206,6 @@ typedef uint64_t xen_callback_t;
/* PSR bits (CPSR, SPSR)*/
/* 0-4: Mode */
#define PSR_MODE_MASK 0x1f
/* 32 bit modes */
#define PSR_MODE_USR 0x10
#define PSR_MODE_FIQ 0x11
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.