Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c012eeb authored by Mike Frysinger's avatar Mike Frysinger Committed by Bryan Wu
Browse files

Blackfin arch: move fixed code defines into fixed_code.h as very few things...


Blackfin arch: move fixed code defines into fixed_code.h as very few things actually need to know these details

Signed-off-by: default avatarMike Frysinger <vapier.adi@gmail.com>
Signed-off-by: default avatarBryan Wu <cooloney@kernel.org>
parent 9216bbc8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
include include/asm-generic/Kbuild.asm

header-y += fixed_code.h
unifdef-y += fixed_code.h
+0 −13
Original line number Diff line number Diff line
@@ -70,19 +70,6 @@ extern void evt14_softirq(void);
extern asmlinkage void asm_do_IRQ(unsigned int irq, struct pt_regs *regs);
extern int bfin_internal_set_wake(unsigned int irq, unsigned int state);

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);

extern void *l1_data_A_sram_alloc(size_t);
extern void *l1_data_B_sram_alloc(size_t);
extern void *l1_inst_sram_alloc(size_t);
+24 −0
Original line number Diff line number Diff line
/* This file defines the fixed addresses where userspace programs can find
   atomic code sequences.  */

#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
@@ -20,3 +42,5 @@
#define SAFE_USER_INSTRUCTION   0x480

#define FIXED_CODE_END		0x490

#endif