Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21391
b: refs/heads/master
c: 5b0c057
h: refs/heads/master
i:
  21389: 0842ef2
  21387: 1cf8cf2
  21383: b4c2d72
  21375: d3aa889
v: v3
  • Loading branch information
David S. Miller committed Mar 20, 2006
1 parent 4bf82b6 commit f3e1043
Show file tree
Hide file tree
Showing 7 changed files with 569 additions and 12 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: ac29c11d4cd4fa1fac968e99998a956405732f2f
refs/heads/master: 5b0c0572fcd6204675c5f7ddfa572b5017f817dd
3 changes: 2 additions & 1 deletion trunk/arch/sparc64/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -511,13 +511,14 @@ setup_tba:
sparc64_boot_end:

#include "systbls.S"
#include "sun4v_tlb_miss.S"
#include "ktlb.S"
#include "tsb.S"
#include "etrap.S"
#include "rtrap.S"
#include "winfixup.S"
#include "entry.S"
#include "sun4v_tlb_miss.S"
#include "sun4v_ivec.S"

/*
* The following skip makes sure the trap table in ttable.S is aligned
Expand Down
16 changes: 15 additions & 1 deletion trunk/arch/sparc64/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,19 @@ static void __cpuinit init_one_mondo(unsigned long *pa_ptr, unsigned long type)
}
}

/* Allocate and init the mondo queues for this cpu. */
static void __cpuinit init_one_kbuf(unsigned long *pa_ptr)
{
unsigned long page = get_zeroed_page(GFP_ATOMIC);

if (!page) {
prom_printf("SUN4V: Error, cannot allocate kbuf page.\n");
prom_halt();
}

*pa_ptr = __pa(page);
}

/* Allocate and init the mondo and error queues for this cpu. */
void __cpuinit sun4v_init_mondo_queues(void)
{
int cpu = hard_smp_processor_id();
Expand All @@ -897,7 +909,9 @@ void __cpuinit sun4v_init_mondo_queues(void)
init_one_mondo(&tb->cpu_mondo_pa, HV_CPU_QUEUE_CPU_MONDO);
init_one_mondo(&tb->dev_mondo_pa, HV_CPU_QUEUE_DEVICE_MONDO);
init_one_mondo(&tb->resum_mondo_pa, HV_CPU_QUEUE_RES_ERROR);
init_one_kbuf(&tb->resum_kernel_buf_pa);
init_one_mondo(&tb->nonresum_mondo_pa, HV_CPU_QUEUE_NONRES_ERROR);
init_one_kbuf(&tb->nonresum_kernel_buf_pa);
}

/* Only invoked on boot processor. */
Expand Down
Loading

0 comments on commit f3e1043

Please sign in to comment.