Skip to content

Commit

Permalink
[ARM] 3261/2: remove phys_ram from struct machine_desc (part 3)
Browse files Browse the repository at this point in the history
Patch from Nicolas Pitre

This field is redundent since it must be equal to PHYS_OFFSET anyway.

There is no reference to it anymore so remove it at last.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Nicolas Pitre authored and Russell King committed Mar 21, 2006
1 parent 71dccd0 commit a61ea93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
7 changes: 3 additions & 4 deletions arch/arm/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@
#define PROCINFO_INITFUNC 12

#define MACHINFO_TYPE 0
#define MACHINFO_PHYSRAM 4
#define MACHINFO_PHYSIO 8
#define MACHINFO_PGOFFIO 12
#define MACHINFO_NAME 16
#define MACHINFO_PHYSIO 4
#define MACHINFO_PGOFFIO 8
#define MACHINFO_NAME 12

#define KERNEL_RAM_ADDR (PAGE_OFFSET + TEXT_OFFSET)

Expand Down
5 changes: 1 addition & 4 deletions include/asm-arm/mach/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,16 @@

#ifndef __ASSEMBLY__

#include <linux/compiler.h>

struct tag;
struct meminfo;
struct sys_timer;

struct machine_desc {
/*
* Note! The first five elements are used
* Note! The first four elements are used
* by assembler code in head-armv.S
*/
unsigned int nr; /* architecture number */
unsigned int __deprecated phys_ram; /* start of physical ram */
unsigned int phys_io; /* start of physical io */
unsigned int io_pg_offst; /* byte offset for io
* page tabe entry */
Expand Down

0 comments on commit a61ea93

Please sign in to comment.