Skip to content

Commit

Permalink
Blackfin: gd_t: relocate volatile markings
Browse files Browse the repository at this point in the history
This makes Blackfin behave the same as other ports, and fixes many gcc
warnings that show up with 4.5+:
	board.c:40:1: warning: optimization may eliminate reads and/or
		writes to register variables

Signed-off-by: Mike Frysinger <[email protected]>
  • Loading branch information
vapier committed Apr 22, 2012
1 parent 2790bf6 commit 33e7e60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/blackfin/include/asm/global_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ typedef struct global_data {
#define GD_FLG_DISABLE_CONSOLE 0x00040 /* Disable console (in & out) */
#define GD_FLG_ENV_READY 0x00080 /* Environment imported into hash table */

#define DECLARE_GLOBAL_DATA_PTR register gd_t * volatile gd asm ("P3")
#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("P3")

#endif

0 comments on commit 33e7e60

Please sign in to comment.