Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116748
b: refs/heads/master
c: 089d552
h: refs/heads/master
v: v3
  • Loading branch information
Kyle McMartin authored and Kyle McMartin committed Oct 10, 2008
1 parent d9b155b commit 4b7ae9c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 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: 24b574d052a1996bac42fbd56715ab602092c291
refs/heads/master: 089d55289db5d58d938d73b47a415b2b82ee19ac
2 changes: 1 addition & 1 deletion trunk/arch/parisc/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ $pgt_fill_loop:
copy %r0,%r2

/* And the RFI Target address too */
load32 start_kernel,%r11
load32 start_parisc,%r11

/* And the initial task pointer */
load32 init_thread_union,%r6
Expand Down
27 changes: 26 additions & 1 deletion trunk/arch/parisc/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,31 @@ static int __init parisc_init(void)

return 0;
}

arch_initcall(parisc_init);

void start_parisc(void)
{
extern void start_kernel(void);

int ret, cpunum;
struct pdc_coproc_cfg coproc_cfg;

cpunum = smp_processor_id();

set_firmware_width_unlocked();

ret = pdc_coproc_cfg_unlocked(&coproc_cfg);
if (ret >= 0 && coproc_cfg.ccr_functional) {
mtctl(coproc_cfg.ccr_functional, 10);

cpu_data[cpunum].fp_rev = coproc_cfg.revision;
cpu_data[cpunum].fp_model = coproc_cfg.model;

asm volatile ("fstd %fr0,8(%sp)");
} else {
panic("must have an fpu to boot linux");
}

start_kernel();
// not reached
}

0 comments on commit 4b7ae9c

Please sign in to comment.