Skip to content

Commit

Permalink
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git…
Browse files Browse the repository at this point in the history
…/paulus/powerpc

* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
  [POWERPC] Fix powermac late initcall to only run on powermac
  [POWERPC] PowerPC: Prevent data exception in kernel space (32-bit)
  • Loading branch information
Linus Torvalds committed Jun 20, 2007
2 parents 8acff0a + c5f226c commit c53ab5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/powerpc/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,14 +279,13 @@ int __kprobes do_page_fault(struct pt_regs *regs, unsigned long address,
#endif /* CONFIG_8xx */

if (is_exec) {
#ifdef CONFIG_PPC64
#if !(defined(CONFIG_4xx) || defined(CONFIG_BOOKE))
/* protection fault */
if (error_code & DSISR_PROTFAULT)
goto bad_area;
if (!(vma->vm_flags & VM_EXEC))
goto bad_area;
#endif
#if defined(CONFIG_4xx) || defined(CONFIG_BOOKE)
#else
pte_t *ptep;
pmd_t *pmdp;

Expand Down
3 changes: 3 additions & 0 deletions arch/powerpc/platforms/powermac/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,9 @@ static int initializing = 1;

static int pmac_late_init(void)
{
if (!machine_is(powermac))
return -ENODEV;

initializing = 0;
/* this is udbg (which is __init) and we can later use it during
* cpu hotplug (in smp_core99_kick_cpu) */
Expand Down

0 comments on commit c53ab5d

Please sign in to comment.