Skip to content

Commit 2b04be7

Browse files
committed
Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86: fix asm/e820.h for userspace inclusion x86: fix numaq_tsc_disable x86: fix kernel_physical_mapping_init() for large x86 systems
2 parents bdec6ca + 2567d71 commit 2b04be7

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎arch/x86/kernel/numaq_32.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ int __init get_memcfg_numaq(void)
9696
void __init numaq_tsc_disable(void)
9797
{
9898
if (!found_numaq)
99-
return -1;
99+
return;
100100

101101
if (num_online_nodes() > 1) {
102102
printk(KERN_DEBUG "NUMAQ: disabling TSC\n");

‎arch/x86/mm/init_64.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ static unsigned long __init kernel_physical_mapping_init(unsigned long start,
644644
unsigned long pud_phys;
645645
pud_t *pud;
646646

647-
next = start + PGDIR_SIZE;
647+
next = (start + PGDIR_SIZE) & PGDIR_MASK;
648648
if (next > end)
649649
next = end;
650650

‎include/asm-x86/e820.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ struct e820map {
5959
struct e820entry map[E820_X_MAX];
6060
};
6161

62+
#ifdef __KERNEL__
6263
/* see comment in arch/x86/kernel/e820.c */
6364
extern struct e820map e820;
6465
extern struct e820map e820_saved;
@@ -115,7 +116,7 @@ extern void setup_memory_map(void);
115116
extern char *default_machine_specific_memory_setup(void);
116117
extern char *machine_specific_memory_setup(void);
117118
extern char *memory_setup(void);
118-
119+
#endif /* __KERNEL__ */
119120
#endif /* __ASSEMBLY__ */
120121

121122
#define ISA_START_ADDRESS 0xa0000

0 commit comments

Comments
 (0)