nosun4c.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * nosun4c.c: This file is a bunch of dummies for SMP compiles,
  3. * so that it does not need sun4c and avoid ifdefs.
  4. *
  5. * Copyright (C) 1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
  6. */
  7. #include <linux/kernel.h>
  8. #include <linux/mm.h>
  9. #include <linux/init.h>
  10. #include <asm/pgtable.h>
  11. static char shouldnothappen[] __initdata = "32bit SMP kernel only supports sun4m and sun4d\n";
  12. /* Dummies */
  13. struct sun4c_mmu_ring {
  14. unsigned long xxx1[3];
  15. unsigned char xxx2[2];
  16. int xxx3;
  17. };
  18. struct sun4c_mmu_ring sun4c_kernel_ring;
  19. struct sun4c_mmu_ring sun4c_kfree_ring;
  20. unsigned long sun4c_kernel_faults;
  21. unsigned long *sun4c_memerr_reg;
  22. static void __init should_not_happen(void)
  23. {
  24. prom_printf(shouldnothappen);
  25. prom_halt();
  26. }
  27. pte_t *sun4c_pte_offset(pmd_t * dir, unsigned long address)
  28. {
  29. return NULL;
  30. }
  31. pte_t *sun4c_pte_offset_kernel(pmd_t *dir, unsigned long address)
  32. {
  33. return NULL;
  34. }
  35. void sun4c_update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t *ptep)
  36. {
  37. }
  38. void __init sun4c_probe_vac(void)
  39. {
  40. should_not_happen();
  41. }
  42. void __init sun4c_probe_memerr_reg(void)
  43. {
  44. should_not_happen();
  45. }