* bootup setup stuff..
*/
+#include <linux/config.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/sched.h>
printk(KERN_DEBUG "%s(%d)\n", __FUNCTION__, state);
/* Restore userland MMU context */
- set_context(current->active_mm->context.id, current->active_mm->pgd);
+ set_context(current->active_mm->context, current->active_mm->pgd);
return 0;
}
*/
static void __init pmac_init_early(void)
{
+#ifdef CONFIG_PPC64
+ /* Initialize hash table, from now on, we can take hash faults
+ * and call ioremap
+ */
+ hpte_init_native();
+#endif
+
/* Enable early btext debug if requested */
if (strstr(cmd_line, "btextdbg")) {
udbg_adb_init_early();
udbg_adb_init(!!strstr(cmd_line, "btextdbg"));
#ifdef CONFIG_PPC64
+ /* Setup interrupt mapping options */
+ ppc64_interrupt_controller = IC_OPEN_PIC;
+
iommu_init_early_dart();
#endif
}
* part of the cacheable linar mapping
*/
alloc_dart_table();
-
- hpte_init_native();
#endif
#ifdef CONFIG_PPC32