aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/mm/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc64/mm/init.c')
-rw-r--r--arch/sparc64/mm/init.c87
1 files changed, 0 insertions, 87 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c
index 83a76a2eb71e..668b7bba90e8 100644
--- a/arch/sparc64/mm/init.c
+++ b/arch/sparc64/mm/init.c
@@ -761,93 +761,6 @@ out:
761 smp_new_mmu_context_version(); 761 smp_new_mmu_context_version();
762} 762}
763 763
764void sparc_ultra_dump_itlb(void)
765{
766 int slot;
767
768 if (tlb_type == spitfire) {
769 printk ("Contents of itlb: ");
770 for (slot = 0; slot < 14; slot++) printk (" ");
771 printk ("%2x:%016lx,%016lx\n",
772 0,
773 spitfire_get_itlb_tag(0), spitfire_get_itlb_data(0));
774 for (slot = 1; slot < 64; slot+=3) {
775 printk ("%2x:%016lx,%016lx %2x:%016lx,%016lx %2x:%016lx,%016lx\n",
776 slot,
777 spitfire_get_itlb_tag(slot), spitfire_get_itlb_data(slot),
778 slot+1,
779 spitfire_get_itlb_tag(slot+1), spitfire_get_itlb_data(slot+1),
780 slot+2,
781 spitfire_get_itlb_tag(slot+2), spitfire_get_itlb_data(slot+2));
782 }
783 } else if (tlb_type == cheetah || tlb_type == cheetah_plus) {
784 printk ("Contents of itlb0:\n");
785 for (slot = 0; slot < 16; slot+=2) {
786 printk ("%2x:%016lx,%016lx %2x:%016lx,%016lx\n",
787 slot,
788 cheetah_get_litlb_tag(slot), cheetah_get_litlb_data(slot),
789 slot+1,
790 cheetah_get_litlb_tag(slot+1), cheetah_get_litlb_data(slot+1));
791 }
792 printk ("Contents of itlb2:\n");
793 for (slot = 0; slot < 128; slot+=2) {
794 printk ("%2x:%016lx,%016lx %2x:%016lx,%016lx\n",
795 slot,
796 cheetah_get_itlb_tag(slot), cheetah_get_itlb_data(slot),
797 slot+1,
798 cheetah_get_itlb_tag(slot+1), cheetah_get_itlb_data(slot+1));
799 }
800 }
801}
802
803void sparc_ultra_dump_dtlb(void)
804{
805 int slot;
806
807 if (tlb_type == spitfire) {
808 printk ("Contents of dtlb: ");
809 for (slot = 0; slot < 14; slot++) printk (" ");
810 printk ("%2x:%016lx,%016lx\n", 0,
811 spitfire_get_dtlb_tag(0), spitfire_get_dtlb_data(0));
812 for (slot = 1; slot < 64; slot+=3) {
813 printk ("%2x:%016lx,%016lx %2x:%016lx,%016lx %2x:%016lx,%016lx\n",
814 slot,
815 spitfire_get_dtlb_tag(slot), spitfire_get_dtlb_data(slot),
816 slot+1,
817 spitfire_get_dtlb_tag(slot+1), spitfire_get_dtlb_data(slot+1),
818 slot+2,
819 spitfire_get_dtlb_tag(slot+2), spitfire_get_dtlb_data(slot+2));
820 }
821 } else if (tlb_type == cheetah || tlb_type == cheetah_plus) {
822 printk ("Contents of dtlb0:\n");
823 for (slot = 0; slot < 16; slot+=2) {
824 printk ("%2x:%016lx,%016lx %2x:%016lx,%016lx\n",
825 slot,
826 cheetah_get_ldtlb_tag(slot), cheetah_get_ldtlb_data(slot),
827 slot+1,
828 cheetah_get_ldtlb_tag(slot+1), cheetah_get_ldtlb_data(slot+1));
829 }
830 printk ("Contents of dtlb2:\n");
831 for (slot = 0; slot < 512; slot+=2) {
832 printk ("%2x:%016lx,%016lx %2x:%016lx,%016lx\n",
833 slot,
834 cheetah_get_dtlb_tag(slot, 2), cheetah_get_dtlb_data(slot, 2),
835 slot+1,
836 cheetah_get_dtlb_tag(slot+1, 2), cheetah_get_dtlb_data(slot+1, 2));
837 }
838 if (tlb_type == cheetah_plus) {
839 printk ("Contents of dtlb3:\n");
840 for (slot = 0; slot < 512; slot+=2) {
841 printk ("%2x:%016lx,%016lx %2x:%016lx,%016lx\n",
842 slot,
843 cheetah_get_dtlb_tag(slot, 3), cheetah_get_dtlb_data(slot, 3),
844 slot+1,
845 cheetah_get_dtlb_tag(slot+1, 3), cheetah_get_dtlb_data(slot+1, 3));
846 }
847 }
848 }
849}
850
851extern unsigned long cmdline_memory_size; 764extern unsigned long cmdline_memory_size;
852 765
853/* Find a free area for the bootmem map, avoiding the kernel image 766/* Find a free area for the bootmem map, avoiding the kernel image