Skip to content

Commit

Permalink
MIPS: BMIPS: Define BMIPS_FIXADDR_TOP in asm/bmips-spaces.h
Browse files Browse the repository at this point in the history
The FIXADDR_TOP value used by mach-bmips is in fact required whenever we
run on BMIPS3300 BMIPS CPUs, and is not machine, but CPU-specific, move
this constant to asm/bmips-spaces.h and use it in mach-bmips/spaces.h.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: blogic@openwrt.org
Cc: cernekee@chromium.org
Cc: jogo@openwrt.org
Patchwork: https://patchwork.linux-mips.org/patch/9968/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Florian Fainelli authored and Ralf Baechle committed Jun 21, 2015
1 parent 5564f09 commit 09a50cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions arch/mips/include/asm/bmips-spaces.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#ifndef __ASM_BMIPS_SPACES_H
#define __ASM_BMIPS_SPACES_H

/* Avoid collisions with system base register (SBR) region on BMIPS3300 */
#define FIXADDR_TOP ((unsigned long)(long)(int)0xff000000)

#endif /* __ASM_BMIPS_SPACES_H */
2 changes: 1 addition & 1 deletion arch/mips/include/asm/mach-bmips/spaces.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#define _ASM_BMIPS_SPACES_H

/* Avoid collisions with system base register (SBR) region on BMIPS3300 */
#define FIXADDR_TOP ((unsigned long)(long)(int)0xff000000)
#include <asm/bmips-spaces.h>

#include <asm/mach-generic/spaces.h>

Expand Down

0 comments on commit 09a50cc

Please sign in to comment.