Skip to content

Commit

Permalink
sparc: use trapbase in setup_arch
Browse files Browse the repository at this point in the history
start and trapbase point to the same address.
But using start to assing to sparc_ttable looked confusing.

Replace this with the use of trapbase.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sam Ravnborg authored and David S. Miller committed Jan 5, 2011
1 parent 2fe74fa commit e405ae7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/sparc/kernel/setup_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ static void __init boot_flags_init(char *commands)

extern void sun4c_probe_vac(void);
extern char cputypval;
extern unsigned long start, end;

extern unsigned short root_flags;
extern unsigned short root_dev;
Expand All @@ -210,7 +209,7 @@ void __init setup_arch(char **cmdline_p)
int i;
unsigned long highest_paddr;

sparc_ttable = (struct tt_entry *) &start;
sparc_ttable = (struct tt_entry *) &trapbase;

/* Initialize PROM console and command line. */
*cmdline_p = prom_getbootargs();
Expand Down

0 comments on commit e405ae7

Please sign in to comment.