Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88603
b: refs/heads/master
c: 2785c8d
h: refs/heads/master
i:
  88601: 9d0b4cd
  88599: edc7a1e
v: v3
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Apr 17, 2008
1 parent c23093f commit 5b4d75d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a2beab31b167bd8ba49bb84944e07ac096f2ab0a
refs/heads/master: 2785c8d052278228cc3806233c09295088f83d42
4 changes: 4 additions & 0 deletions trunk/arch/x86/kernel/setup_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,10 @@ void __init setup_arch(char **cmdline_p)
if (efi_enabled)
efi_init();

#ifdef CONFIG_PARAVIRT
vsmp_init();
#endif

dmi_scan_machine();

io_delay_init();
Expand Down
11 changes: 5 additions & 6 deletions trunk/arch/x86/kernel/vsmp_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
#include <asm/pci-direct.h>
#include <asm/io.h>

static void __init vsmp_init(void)
void __init vsmp_init(void)
{
void *address;
unsigned int cap, ctl;
unsigned int cap, ctl, cfg;

if (!early_pci_allowed())
return;
Expand All @@ -32,7 +32,8 @@ static void __init vsmp_init(void)
return;

/* set vSMP magic bits to indicate vSMP capable kernel */
address = ioremap(read_pci_config(0, 0x1f, 0, PCI_BASE_ADDRESS_0), 8);
cfg = read_pci_config(0, 0x1f, 0, PCI_BASE_ADDRESS_0);
address = early_ioremap(cfg, 8);
cap = readl(address);
ctl = readl(address + 4);
printk(KERN_INFO "vSMP CTL: capabilities:0x%08x control:0x%08x\n",
Expand All @@ -45,8 +46,6 @@ static void __init vsmp_init(void)
printk(KERN_INFO "vSMP CTL: control set to:0x%08x\n", ctl);
}

iounmap(address);
early_iounmap(address, 8);
return;
}

core_initcall(vsmp_init);
4 changes: 4 additions & 0 deletions trunk/include/asm-x86/setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
#define COMMAND_LINE_SIZE 2048

#ifndef __ASSEMBLY__

/* Interrupt control for vSMPowered x86_64 systems */
void vsmp_init(void);

char *machine_specific_memory_setup(void);
#ifndef CONFIG_PARAVIRT
#define paravirt_post_allocator_init() do {} while (0)
Expand Down

0 comments on commit 5b4d75d

Please sign in to comment.