]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
x86/boot/e820: Move HIGH_MEMORY define to asm/e820/types.h
authorIngo Molnar <mingo@kernel.org>
Fri, 27 Jan 2017 11:49:28 +0000 (12:49 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 28 Jan 2017 08:33:14 +0000 (09:33 +0100)
The HIGH_MEMORY define was in the API header, while it conceptually
belongs to the other physical memory ranges in the e820/types.h
header.

Move it there - and also convert the 1MB address to hexa, so that
it lines up more nicely with the other memory address values.

No change in functionality.

Cc: Alex Thorlton <athorlton@sgi.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Huang, Ying <ying.huang@intel.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul Jackson <pj@sgi.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Tejun Heo <tj@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Wei Yang <richard.weiyang@gmail.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/e820/api.h
arch/x86/include/asm/e820/types.h

index b45550b662a99e1c9663da1771880cd9c7d2181d..4163a83f1a374b75400c1867e4ee3fc39aedc526 100644 (file)
@@ -48,5 +48,4 @@ static inline bool is_ISA_range(u64 start, u64 end)
 
 #include <linux/ioport.h>
 
-#define HIGH_MEMORY    (1024*1024)
 #endif /* _ASM_E820_API_H */
index 464cfe8273960e0fd300ee1deeaa51553d5fa414..ce0e100b843c2dc8285b67c1b4ad48ba69558e1a 100644 (file)
@@ -74,7 +74,7 @@ struct e820map {
 };
 
 /*
- * Various legacy ranges in physical memory:
+ * Various well-known legacy memory ranges in physical memory:
  */
 #define ISA_START_ADDRESS      0x000a0000
 #define ISA_END_ADDRESS                0x00100000
@@ -82,6 +82,8 @@ struct e820map {
 #define BIOS_BEGIN             0x000a0000
 #define BIOS_END               0x00100000
 
+#define HIGH_MEMORY            0x00100000
+
 #define BIOS_ROM_BASE          0xffe00000
 #define BIOS_ROM_END           0xffffffff