1/* 2 * Copyright (C) 2012 Imagination Technologies Ltd. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 */ 9 10#ifndef _ASM_METAG_SWITCH_H 11#define _ASM_METAG_SWITCH_H 12 13/* metag SWITCH codes */ 14#define __METAG_SW_PERM_BREAK 0x400002 /* compiled in breakpoint */ 15#define __METAG_SW_SYS_LEGACY 0x440000 /* legacy system calls */ 16#define __METAG_SW_SYS 0x440001 /* system calls */ 17 18/* metag SWITCH instruction encoding */ 19#define __METAG_SW_ENCODING(TYPE) (0xaf000000 | (__METAG_SW_##TYPE)) 20 21#endif /* _ASM_METAG_SWITCH_H */ 22