nosun4c.c 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. unsigned long __init sun4c_paging_init(unsigned long start_mem, unsigned long end_mem)
  28. {
  29. should_not_happen();
  30. return 0;
  31. }
  32. void __init ld_mmu_sun4c(void)
  33. {
  34. should_not_happen();
  35. }
  36. void sun4c_mapioaddr(unsigned long physaddr, unsigned long virt_addr, int bus_type, int rdonly)
  37. {
  38. }
  39. void sun4c_unmapioaddr(unsigned long virt_addr)
  40. {
  41. }
  42. void sun4c_complete_all_stores(void)
  43. {
  44. }
  45. pte_t *sun4c_pte_offset(pmd_t * dir, unsigned long address)
  46. {
  47. return NULL;
  48. }
  49. pte_t *sun4c_pte_offset_kernel(pmd_t *dir, unsigned long address)
  50. {
  51. return NULL;
  52. }
  53. void sun4c_update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t *ptep)
  54. {
  55. }
  56. void __init sun4c_probe_vac(void)
  57. {
  58. should_not_happen();
  59. }
  60. void __init sun4c_probe_memerr_reg(void)
  61. {
  62. should_not_happen();
  63. }