mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 17:33:01 +00:00
96f1050d3d
Bill Gatliff & David Brownell pointed out we were missing some copyrights, and licensing terms in some of the files in ./arch/blackfin, so this fixes things, and cleans them up. It also removes: - verbose GPL text(refer to the top level ./COPYING file) - file names (you are looking at the file) - bug url (it's in the ./MAINTAINERS file) - "or later" on GPL-2, when we did not have that right It also allows some Blackfin-specific assembly files to be under a BSD like license (for people to use them outside of Linux). Signed-off-by: Robin Getz <robin.getz@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
53 lines
1.2 KiB
C
53 lines
1.2 KiB
C
/*
|
|
* This file defines the fixed addresses where userspace programs
|
|
* can find atomic code sequences.
|
|
*
|
|
* Copyright 2007-2008 Analog Devices Inc.
|
|
*
|
|
* Licensed under the GPL-2 or later.
|
|
*/
|
|
|
|
#ifndef __BFIN_ASM_FIXED_CODE_H__
|
|
#define __BFIN_ASM_FIXED_CODE_H__
|
|
|
|
#ifdef __KERNEL__
|
|
#ifndef __ASSEMBLY__
|
|
#include <linux/linkage.h>
|
|
#include <linux/ptrace.h>
|
|
extern asmlinkage void finish_atomic_sections(struct pt_regs *regs);
|
|
extern char fixed_code_start;
|
|
extern char fixed_code_end;
|
|
extern int atomic_xchg32(void);
|
|
extern int atomic_cas32(void);
|
|
extern int atomic_add32(void);
|
|
extern int atomic_sub32(void);
|
|
extern int atomic_ior32(void);
|
|
extern int atomic_and32(void);
|
|
extern int atomic_xor32(void);
|
|
extern void safe_user_instruction(void);
|
|
extern void sigreturn_stub(void);
|
|
#endif
|
|
#endif
|
|
|
|
#define FIXED_CODE_START 0x400
|
|
|
|
#define SIGRETURN_STUB 0x400
|
|
|
|
#define ATOMIC_SEQS_START 0x410
|
|
|
|
#define ATOMIC_XCHG32 0x410
|
|
#define ATOMIC_CAS32 0x420
|
|
#define ATOMIC_ADD32 0x430
|
|
#define ATOMIC_SUB32 0x440
|
|
#define ATOMIC_IOR32 0x450
|
|
#define ATOMIC_AND32 0x460
|
|
#define ATOMIC_XOR32 0x470
|
|
|
|
#define ATOMIC_SEQS_END 0x480
|
|
|
|
#define SAFE_USER_INSTRUCTION 0x480
|
|
|
|
#define FIXED_CODE_END 0x490
|
|
|
|
#endif
|