Lines Matching +full:2 +full:a0

50  * 2) Increase use of subroutines to perform functions
287 /* #define FONT_8x16 */ /* 2nd choice */
303 CPUTYPE_060 = 2 /* indicates an 060 */
320 TTR_FCB2 = 0x0040 /* function code base bit 2 */
323 TTR_FCM2 = 0x0004 /* function code mask bit 2 */
445 func_define mmu_temp_map,2
448 func_define mmu_get_ptr_table_entry,2
449 func_define mmu_get_page_table_entry,2
601 movel %a0@,%a1@
605 movel %a0@,%a1@
609 movel %a0@,%a1@
613 movel %a0@,%a1@
627 movel %a0@,%a1@
631 movel %a0@,%a1@
635 movel %a0@,%a1@
639 movel %a0@,%a1@
643 movel %a0@,%a1@
653 movel %a0@,%a1@
682 jeq 2f
686 2:
698 lea %pc@(L(cputype)),%a0
699 movel %d1,%a0@
747 lea %pc@(m68k_supervisor_cachemode),%a0
748 movel %d0,%a0@
749 lea %pc@(m68k_pgtable_cachemode),%a0
750 movel %d1,%a0@
784 movel %a0@,%d3
785 lea %pc@(atari_mch_type),%a0
786 movel %d3,%a0@
794 1: lea %pc@(L(iobase)),%a0
795 movel %d0,%a0@
814 movel %a0@,%d3
815 lea %pc@(vme_brdtype),%a0
816 movel %d3,%a0@
833 movel %sp@+,%a0
837 movel %a0@+,%a1@+
838 movel %a0@+,%a1@+
839 movel %a0@+,%a1@+
840 movel %a0@+,%a1@+
841 movel %a0@+,%a1@+
842 movel %a0@+,%a1@+
843 movel %a0@+,%a1@+
844 movel %a0@+,%a1@+
858 movel %a0@,%d3
859 lea %pc@(L(uartbase)),%a0
860 movel %d3,%a0@
864 movel %a0@,%d3
865 lea %pc@(L(uart_scode)),%a0
866 movel %d3,%a0@
902 lea %pc@(L(phys_kernel_start)),%a0
906 movel %a1,%a0@
921 movel %a0@(4),%d0
930 lea %pc@(m68k_init_mapped_size),%a0
931 movel %d1,%a0@
999 jbeq 2f
1002 2: movel #0xff000000,%d0 /* Medusa/Hades base addr: 0xff000000 */
1157 * By the way 2, the code currently maps in a bunch of
1174 jbra 2f
1177 2:
1217 mmu_get_ptr_table_entry %a0,%d0
1223 mmu_get_page_table_entry %a0,%d0
1233 movel %d3,%a0@+
1235 movel %d3,%a0@+
1294 lea %pc@(_stext),%a0
1295 subl %d0,%a0
1296 mmu_fixup_page_mmu_cache %a0
1298 movel %pc@(L(kernel_end)),%a0
1299 subl %d0,%a0
1302 bra 2f
1304 mmu_fixup_page_mmu_cache %a0
1305 addw #PAGESIZE,%a0
1306 2:
1307 cmpl %a0,%a1
1333 * 2. The Program Counter does not map through the MMU. The processor
1335 * Clearly, 2 is bad.
1421 is_not_hp300(2f)
1432 jbra 2f
1439 2:
1530 * a0: data pointer (end-of-records if not found)
1535 lea %pc@(_end),%a0
1536 1: tstw %a0@(BIR_TAG)
1538 cmpw %a0@(BIR_TAG),%d0
1539 jeq 2f
1540 addw %a0@(BIR_SIZE),%a0
1542 2: moveq #0,%d0
1543 movew %a0@(BIR_SIZE),%d0
1544 lea %a0@(BIR_DATA),%a0
1547 lea %a0@(BIR_SIZE),%a0
1635 #define putZc(z,n) jbne 1f; putc z; jbra 2f; 1: putc n; 2:
1637 func_start mmu_print,%a0-%a6/%d0-%d7
1640 lea %pc@(L(mmu_print_data)),%a0
1641 movel #MMU_PRINT_UNINITED,%a0@(mmu_next_valid)
1669 2: putn %d7
1716 movel %a5,%a0 /* a0 has the address of the root table ptr */
1723 movel %a0@+,%d6
1840 movel %d0,%a0
1846 movel %a0@+,%d6
1919 moveml %a0/%d7,%sp@-
1921 lea %pc@(L(mmu_print_data)),%a0
1922 tstl %a0@(mmu_next_valid)
1925 movel #MMU_PRINT_INVALID,%a0@(mmu_next_valid)
1932 moveml %sp@+,%a0/%d7
1937 moveml %d0-%d7/%a0,%sp@-
1939 lea %pc@(L(mmu_print_data)),%a0
1941 tstl %a0@(mmu_next_valid)
1944 cmpl %a0@(mmu_next_physical),%d1
1956 movel #MMU_PRINT_VALID,%a0@(mmu_next_valid)
1958 movel %d1,%a0@(mmu_next_physical)
1963 addl %d7,%a0@(mmu_next_physical)
1966 moveml %sp@+,%d0-%d7/%a0
1976 is_not_atari(2f)
1979 2:
1991 is_not_040_or_060(2f)
1994 2: putc '3'
2010 func_start mmu_map_tt,%d0/%d1/%a0,4
2056 1: lea STACK,%a0
2058 movel %d1,%a0@
2062 pmove %a0@,%tt0
2063 jra 2f
2064 1: pmove %a0@,%tt1
2065 2: .chip 68k
2080 jra 2f
2083 2: .chip 68k
2107 * NOTE-2
2112 func_start mmu_map,%d0-%d4/%a0-%a4
2182 mmu_get_ptr_table_entry %a0,%d0
2190 mmu_get_page_table_entry %a0,%d0
2194 tstl %a0@
2199 movel %a2,%a0@
2200 2:
2206 lea %a3@(-1),%a0
2207 cmpl %a0,%a4
2236 tstl %a0@
2246 movel %a2,%a0@
2258 mmu_get_ptr_table_entry %a0,%d0
2262 tstl %a0@
2271 movel %a2,%a0@
2279 lea %a3@(-1),%a0
2280 cmpl %a0,%a4
2302 func_start mmu_fixup_page_mmu_cache,%d0/%a0
2320 mmu_get_ptr_table_entry %a0,%d0
2328 mmu_get_page_table_entry %a0,%d0
2330 movel %a0@,%d0
2333 movel %d0,%a0@
2346 func_start mmu_temp_map,%d0/%d1/%a0/%a1
2364 movel %a0@,%d0
2373 movel %d0,%a0@
2380 movel %d0,%a0
2388 lea %a0@(%d0*4),%a0
2389 dputn %a0
2393 movel %a0@,%d0
2403 movel %d0,%a0@
2410 movel %d0,%a0
2418 lea %a0@(%d0*4),%a0
2419 dputn %a0
2426 movel %d0,%a0@
2433 func_start mmu_engage,%d0-%d2/%a0-%a3
2437 lea %pc@(L(kernel_pgdir_ptr)),%a0
2438 movel %a0@,%a2
2440 movel %a1,%a0@
2441 movel %a2,%a0
2443 movel %a0@+,%a1@+
2446 lea %pc@(L(temp_mmap_mem)),%a0
2447 movel %a1,%a0@
2454 lea %pc@(1b),%a0
2457 cmpl %a0,%a1
2460 mmu_temp_map %a0,%a0
2461 mmu_temp_map %a0,%a1
2463 addw #PAGESIZE,%a0
2465 mmu_temp_map %a0,%a0
2466 mmu_temp_map %a0,%a1
2497 lea %pc@(L(mmu_engage_030_temp)),%a0
2498 movel #0x80000002,%a0@
2499 movel %a3,%a0@(4)
2502 pmove %a0@,%srp
2508 movel #0x82c07760,%a0@(8)
2509 pmove %a0@(8),%tc /* enable the MMU */
2511 1: movel %a2,%a0@(4)
2514 pmove %a0@,%srp
2536 movel %pc@(L(kernel_pgdir_ptr)),%a0
2537 tstl %a0
2538 jne 2f
2547 addw #PAGESIZE-1,%a0
2548 movel %a0,%d0
2553 lea %pc@(L(memory_start)),%a0
2554 movel %d0,%a0@
2555 lea %pc@(L(kernel_end)),%a0
2556 movel %d0,%a0@
2562 lea %pc@(_stext),%a0
2564 movel %a0,%a1@
2572 movel %a0,%a1
2579 movel %a0,%a1@
2581 dputn %a0
2583 2:
2585 lea %a0@(%d0*4),%a0
2588 dputn %a0
2605 movel ARG1,%a0
2606 movel %a0@,%d0
2607 jne 2f
2612 lea %pc@(L(mmu_num_pointer_tables)),%a0
2613 movel %a0@,%d0
2614 addql #1,%a0@
2625 movel %a0,%a1@
2637 movel ARG1,%a0
2639 movel %d0,%a0@
2640 2:
2644 movel %d0,%a0
2646 lea %a0@(%d0*4),%a0
2649 dputn %a0
2665 movel ARG1,%a0
2666 movel %a0@,%d0
2667 jne 2f
2674 addw #_PAGE_TABLE+_PAGE_ACCESSED,%a0
2686 movel %a0,%a1@+
2687 lea %a0@(PAGE_TABLE_SIZE*4),%a0
2692 movel ARG1,%a0
2693 movel %a0@,%d0
2694 2:
2698 movel %d0,%a0
2700 lea %a0@(%d0*4),%a0
2703 dputn %a0
2720 lea %pc@(L(memory_start)),%a0
2721 movel %a0@,%a1
2722 addl #PAGESIZE,%a0@
2726 movel %a1,%a0
2732 dputn %a0
2783 .byte 14,2,14,3 /* use master clock for BRG, enable */
2830 func_start serial_init,%d0/%d1/%a0/%a1
2834 * a0 = pointer to boot info record
2837 * a0 = address of SCC
2841 * a0 = address of SCC
2851 lea %pc@(L(custom)),%a0
2852 movel #-ZTWOBASE,%a0@
2855 movew %a0@,CUSTOMBASE+C_SERPER-ZTWOBASE
2875 lea %a1@(LSCC_CTRL),%a0
2877 moveb %a0@,%d0
2879 moveb #9,%a0@
2880 moveb #0xc0,%a0@
2884 2:
2886 jne 2b
2889 2: moveb %a1@+,%d0
2891 moveb %d0,%a0@
2892 moveb %a1@+,%a0@
2893 jra 2b
2894 3: clrb %a0@
2899 moveb #2,%a1@(LMFP_TDDR)
2914 movel %pc@(L(mac_sccbase)),%a0
2916 moveb %a0@(mac_scc_cha_a_ctrl_offset),%d0
2918 moveb #9,%a0@(mac_scc_cha_a_ctrl_offset)
2919 moveb #0xc0,%a0@(mac_scc_cha_a_ctrl_offset)
2932 moveb %d0,%a0@(mac_scc_cha_a_ctrl_offset)
2933 moveb %a1@+,%a0@(mac_scc_cha_a_ctrl_offset)
2942 moveb %d0,%a0@(mac_scc_cha_b_ctrl_offset)
2943 moveb %a1@+,%a0@(mac_scc_cha_b_ctrl_offset)
2952 is_not_q40(2f)
2959 bne 2f /*nodbg*/
2962 bne 2f /*nodbg*/
2965 bne 2f /*nodbg*/
2968 bne 2f /*nodbg*/
2973 2:
2999 func_start serial_putc,%d0/%d1/%a0/%a1
3010 is_not_amiga(2f)
3013 movel %pc@(L(custom)),%a0
3014 movew %d0,%a0@(CUSTOMBASE+C_SERDAT)
3015 1: movew %a0@(CUSTOMBASE+C_SERDATR),%d0
3019 2:
3028 3: btst #2,%a1@(mac_scc_cha_a_ctrl_offset)
3033 4: btst #2,%a1@(mac_scc_cha_b_ctrl_offset)
3058 3: btst #2,%a1@(LSCC_CTRL)
3071 is_not_mvme147(2f)
3072 1: btst #2,M147_SCC_CTRL_A
3076 2:
3080 is_not_mvme16x(2f)
3096 6: btst #2,M162_SCC_CTRL_A
3132 2:
3136 is_not_bvme6000(2f)
3140 1: btst #2,BVME_SCC_CTRL_A
3144 2:
3148 is_not_sun3x(2f)
3154 2:
3158 is_not_q40(2f)
3160 beq 2f
3162 move.l %a1@,%a0
3163 move.b %d0,%a0@
3164 addq.l #4,%a0
3165 move.l %a0,%a1@
3167 2:
3171 is_not_apollo(2f)
3178 2:
3188 jeq 2f
3194 2: moveb %a1@(APCILSR),%d1 /* Output to APCI */
3196 beq 2b
3216 func_start puts,%d0/%a0
3218 movel ARG1,%a0
3219 jra 2f
3227 2: moveb %a0@+,%d0
3247 jls 2f
3249 2:
3273 moveml %d0/%d1/%a0,%sp@-
3276 movel %sp@(22),%a0 /* char *s */
3278 jra 2f
3287 2: jeq 3f
3288 moveb %a0@+,%d0
3292 moveml %sp@+,%d0/%d1/%a0
3297 func_start set_leds,%d0/%a0
3301 movel %pc@(L(iobase)),%a0
3302 moveb %d0,%a0@(0x1ffff)
3303 jra 2f
3307 movel %pc@(L(iobase)),%a0
3310 moveb %d0,%a0@(LCPUCTRL)
3312 2:
3327 func_start console_init,%a0-%a4/%d0-%d7
3330 * a0 = pointer to boot_info
3366 lea %pc@(font_vga_8x8),%a0
3368 lea %pc@(font_vga_8x16),%a0
3370 lea %pc@(font_vga_6x11),%a0
3372 lea %pc@(font_vga_8x8),%a0
3374 lea 0,%a0
3382 movel %a0,%a1@ /* store pointer to struct fbcon_font_desc in console_font */
3383 tstl %a0
3386 movel %a0@(FONT_DESC_DATA),%d0
3397 /* ASSERT: a0 = contents of Lconsole_font */
3399 divul %a0@(FONT_DESC_WIDTH),%d0 /* d0 = max num chars per row */
3402 divul %a0@(FONT_DESC_HEIGHT),%d1 /* d1 = max num rows */
3422 func_start console_put_penguin,%a0-%a1/%d0-%d7
3427 lea %pc@(L(mac_dimensions)),%a0
3428 movel %a0@,%d0
3463 func_start console_scroll,%a0-%a4/%d0-%d7
3464 lea %pc@(L(mac_videobase)),%a0
3465 movel %a0@,%a1
3467 lea %pc@(L(mac_rowbytes)),%a0
3468 movel %a0@,%d5
3469 movel %pc@(L(console_font)),%a0
3470 tstl %a0
3472 mulul %a0@(FONT_DESC_HEIGHT),%d5 /* account for # scan lines per character */
3478 lea %pc@(L(mac_dimensions)),%a0
3479 movel %a0@,%d3
3488 lea %pc@(L(mac_rowbytes)),%a0
3489 movel %a0@,%d6
3490 movel %pc@(L(console_font)),%a0
3491 subl %a0@(FONT_DESC_HEIGHT),%d4 /* we're not scrolling the top row! */
3507 lea %pc@(L(mac_rowbytes)),%a0
3508 movel %a0@,%d6
3509 movel %pc@(L(console_font)),%a0
3510 mulul %a0@(FONT_DESC_HEIGHT),%d6 /* scan line bytes x font height */
3530 func_start console_putc,%a0/%a1/%d0-%d7
3536 lea %pc@(L(console_globals)),%a0
3544 clrl %a0@(Lconsole_struct_cur_column) /* implicit \r */
3546 movel %a0@(Lconsole_struct_cur_row),%d0
3547 movel %a0@(Lconsole_struct_num_rows),%d1
3554 movel %d0,%a0@(Lconsole_struct_cur_row)
3560 clrl %a0@(Lconsole_struct_cur_column)
3566 * a0 = pointer to console globals
3573 movel %a0@(Lconsole_struct_cur_column),%d0
3574 movel %a0@(Lconsole_struct_cur_row),%d1
3578 * a0 = address of pointer to font data (fbcon_font_desc)
3580 movel %pc@(L(console_font)),%a0
3583 /* ASSERT: a0 = contents of Lconsole_font */
3584 mulul %a0@(FONT_DESC_HEIGHT),%d7 /* d7 = index into font data */
3596 /* ASSERT: a0 = contents of Lconsole_font */
3597 mulul %a0@(FONT_DESC_WIDTH),%d0
3598 mulul %a0@(FONT_DESC_HEIGHT),%d1
3599 movel %a0@(FONT_DESC_HEIGHT),%d7 /* Load fbcon_font_desc.height into d7 */
3604 /* ASSERT: a0 = contents of Lconsole_font */
3605 movel %a0@(FONT_DESC_WIDTH),%d6 /* Load fbcon_font_desc.width into d6 */
3615 /* ASSERT: a0 = contents of Lconsole_font */
3616 subl %a0@(FONT_DESC_WIDTH),%d0
3622 * a0 = pointer to console globals
3627 lea %pc@(L(console_globals)),%a0
3629 movel %a0@(Lconsole_struct_cur_column),%d0
3631 movel %d0,%a0@(Lconsole_struct_cur_column) /* Update cursor pos */
3632 movel %a0@(Lconsole_struct_num_columns),%d1
3647 func_start console_plot_pixel,%a0-%a1/%d0-%d4
3682 cmpb #2,%d3
3684 movel %d0,%d4 /* we need the low order 2 bits! */
3707 divul #2,%d0
3712 lsll #2,%d4 /* ! */