Lines Matching +full:1 +full:a0

49  * 1) Remove register dependency through-out the file.
302 CPUTYPE_040 = 1 /* indicates an 040 */
321 TTR_FCB1 = 0x0020 /* function code base bit 1 */
324 TTR_FCM1 = 0x0002 /* function code mask bit 1 */
427 move_stack "(\nr-1)",\arg2,\arg3,\arg4
444 func_define mmu_fixup_page_mmu_cache,1
447 func_define mmu_get_root_table_entry,1
466 func_define serial_putc,1
467 func_define console_putc,1
495 func_define putn,1
551 the console is running. Writing a 1 bit turns the corresponding LED
569 bras 1f /* Jump over bootinfo version numbers */
581 1: jra __start
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@
673 jeq 1f
677 1:
698 lea %pc@(L(cputype)),%a0
699 movel %d1,%a0@
735 is_not_060(1f)
739 1:
747 lea %pc@(m68k_supervisor_cachemode),%a0
748 movel %d0,%a0@
749 lea %pc@(m68k_pgtable_cachemode),%a0
750 movel %d1,%a0@
783 jbmi 1f
784 movel %a0@,%d3
785 lea %pc@(atari_mch_type),%a0
786 movel %d3,%a0@
787 1:
792 jbne 1f
794 1: lea %pc@(L(iobase)),%a0
795 movel %d0,%a0@
813 jbmi 1f
814 movel %a0@,%d3
815 lea %pc@(vme_brdtype),%a0
816 movel %d3,%a0@
817 1:
827 jpl 1f
833 movel %sp@+,%a0
834 1:
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@+
857 jbmi 1f
858 movel %a0@,%d3
859 lea %pc@(L(uartbase)),%a0
860 movel %d3,%a0@
863 jbmi 1f
864 movel %a0@,%d3
865 lea %pc@(L(uart_scode)),%a0
866 movel %d3,%a0@
867 1:
902 lea %pc@(L(phys_kernel_start)),%a0
906 movel %a1,%a0@
921 movel %a0@(4),%d0
924 jls 1f
925 lsrl #1,%d1
927 jls 1f
928 lsrl #1,%d1
929 1:
930 lea %pc@(m68k_init_mapped_size),%a0
931 movel %d1,%a0@
948 is_not_040_or_060(1f)
958 mmu_map_tt #1,#0x40000000,#0x20000000,#_PAGE_NOCACHE_S
962 1:
967 mmu_map_tt #1,#0x40000000,#0x20000000,#_PAGE_NOCACHE030
1001 jbne 1f
1003 1: movel %d0,%d3
1038 mmu_map_tt #1,#0xff000000,#0x01000000,#_PAGE_NOCACHE_S
1053 is_040(1f)
1062 1:
1084 mmu_map_tt #1,#0xe0000000,#0x20000000,#_PAGE_NOCACHE030
1108 mmu_map_tt #1,#0xe0000000,#0x20000000,#_PAGE_NOCACHE_S
1128 mmu_map_tt #1,#0xe0000000,#0x20000000,#_PAGE_NOCACHE_S
1171 is_not_040_or_060(1f)
1175 1:
1192 mmu_map_tt #1,#0xf8000000,#0x08000000,%d3
1216 andl #PTR_TABLE_SIZE-1, %d0
1217 mmu_get_ptr_table_entry %a0,%d0
1222 andl #PAGE_TABLE_SIZE-1, %d0
1223 mmu_get_page_table_entry %a0,%d0
1229 movel #((0x200000 >> 13)-1), %d1
1231 1:
1233 movel %d3,%a0@+
1235 movel %d3,%a0@+
1237 dbra %d1,1b
1240 mmu_map_tt #1,#0x40000000,#0x40000000,#_PAGE_NOCACHE_S
1248 mmu_map_tt #1,#0xFF000000,#0x01000000,#_PAGE_NOCACHE_S
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
1303 1:
1304 mmu_fixup_page_mmu_cache %a0
1305 addw #PAGESIZE,%a0
1307 cmpl %a0,%a1
1308 jgt 1b
1325 * 1. The Program Counter falls within the logical address space of
1336 * It doesn't take a wiz kid to figure you want 1.A.
1338 * There are two possible 1.A. states (we now ignore the other above states):
1362 * stack!). This temporary mapping will only require 1 pointer table
1391 is_not_amiga(1f)
1394 1:
1398 is_not_atari(1f)
1401 1:
1405 is_not_mac(1f)
1417 1:
1430 is_040(1f)
1437 1: movew #0,0xf05f400e
1443 is_not_sun3x(1f)
1447 1:
1451 is_not_apollo(1f)
1457 1:
1487 moveq #1,%d0
1529 * Returns: d0: size (-1 if not found)
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
1540 addw %a0@(BIR_SIZE),%a0
1541 jra 1b
1543 movew %a0@(BIR_SIZE),%d0
1544 lea %a0@(BIR_DATA),%a0
1546 3: moveq #-1,%d0
1547 lea %a0@(BIR_SIZE),%a0
1631 #define MMU_PRINT_INVALID -1
1632 #define MMU_PRINT_VALID 1
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)
1660 subql #1,%d5 | they (might) work
1662 1: tstl %d5
1664 subq #1,%d5
1666 btst #1,%d7
1667 jbeq 1b
1676 subq #1,%d4
1678 btst #1,%d7
1688 subq #1,%d3
1694 subq #1,%d2
1698 movel #8+1+8+1+1,%d2
1706 movel #8+1,%d2
1712 jbra 1b
1716 movel %a5,%a0 /* a0 has the address of the root table ptr */
1723 movel %a0@+,%d6
1724 btst #1,%d6
1736 btst #1,%d6
1762 addq #1,%d2
1767 addq #1,%d1
1772 addq #1,%d0
1780 jbeq 1f /* No, bail out */
1790 1:
1794 jbeq 1f /* No, bail out */
1804 1:
1840 movel %d0,%a0
1846 movel %a0@+,%d6
1847 btst #1,%d6 /* is it a table ptr? */
1850 jbeq 1f /* no */
1853 1:
1864 btst #1,%d6 /* is it a table ptr? */
1867 jbeq 1f /* no */
1870 1:
1889 addq #1,%d2
1894 addq #1,%d1
1899 addq #1,%d0
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
1972 is_not_amiga(1f)
1975 1:
1987 is_not_060(1f)
1990 1:
2010 func_start mmu_map_tt,%d0/%d1/%a0,4
2029 moveq #-1,%d0
2031 lsrl #1,%d0
2053 jeq 1f
2056 1: lea STACK,%a0
2058 movel %d1,%a0@
2061 jne 1f
2062 pmove %a0@,%tt0
2064 1: pmove %a0@,%tt1
2077 jne 1f
2081 1: movec %d1,%itt1
2112 func_start mmu_map,%d0-%d4/%a0-%a4
2131 subql #1,%a4
2181 andl #PTR_TABLE_SIZE-1,%d0
2182 mmu_get_ptr_table_entry %a0,%d0
2189 andl #PAGE_TABLE_SIZE-1,%d0
2190 mmu_get_page_table_entry %a0,%d0
2194 tstl %a0@
2199 movel %a2,%a0@
2206 lea %a3@(-1),%a0
2207 cmpl %a0,%a4
2223 andl #(PTR_TABLE_SIZE*PAGE_TABLE_SIZE*PAGESIZE-1)&(-ROOT_TABLE_SIZE),%d0
2224 jne 1f
2228 lea %a3@(PTR_TABLE_SIZE*PAGE_TABLE_SIZE*PAGESIZE-1),%a1
2230 jcs 1f
2232 addql #1,%a1
2236 tstl %a0@
2246 movel %a2,%a0@
2251 1:
2257 andl #PTR_TABLE_SIZE-1,%d0
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
2319 andl #PTR_TABLE_SIZE-1,%d0
2320 mmu_get_ptr_table_entry %a0,%d0
2327 andl #PAGE_TABLE_SIZE-1,%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
2366 jcc 1f
2373 movel %d0,%a0@
2375 1:
2380 movel %d0,%a0
2387 andl #PTR_TABLE_SIZE-1,%d0
2388 lea %a0@(%d0*4),%a0
2389 dputn %a0
2393 movel %a0@,%d0
2394 jne 1f
2403 movel %d0,%a0@
2405 1:
2410 movel %d0,%a0
2417 andl #PAGE_TABLE_SIZE-1,%d0
2418 lea %a0@(%d0*4),%a0
2419 dputn %a0
2426 movel %d0,%a0@
2433 func_start mmu_engage,%d0-%d2/%a0-%a3
2435 moveq #ROOT_TABLE_SIZE-1,%d0
2437 lea %pc@(L(kernel_pgdir_ptr)),%a0
2438 movel %a0@,%a2
2440 movel %a1,%a0@
2441 movel %a2,%a0
2442 1:
2443 movel %a0@+,%a1@+
2444 dbra %d0,1b
2446 lea %pc@(L(temp_mmap_mem)),%a0
2447 movel %a1,%a0@
2449 movew #PAGESIZE-1,%d0
2450 1:
2452 dbra %d0,1b
2454 lea %pc@(1b),%a0
2455 movel #1b,%a1
2457 cmpl %a0,%a1
2458 jeq 1f
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
2467 1:
2483 jmp 1f:l
2484 1: nop
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 */
2510 jmp 1f:l
2511 1: movel %a2,%a0@(4)
2514 pmove %a0@,%srp
2536 movel %pc@(L(kernel_pgdir_ptr)),%a0
2537 tstl %a0
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@
2568 addql #1,%a1@
2572 movel %a0,%a1
2573 movew #PAGESIZE/4-1,%d0
2574 1:
2576 dbra %d0,1b
2579 movel %a0,%a1@
2581 dputn %a0
2585 lea %a0@(%d0*4),%a0
2588 dputn %a0
2605 movel ARG1,%a0
2606 movel %a0@,%d0
2612 lea %pc@(L(mmu_num_pointer_tables)),%a0
2613 movel %a0@,%d0
2614 addql #1,%a0@
2620 jne 1f
2625 movel %a0,%a1@
2626 1:
2637 movel ARG1,%a0
2639 movel %d0,%a0@
2644 movel %d0,%a0
2646 lea %a0@(%d0*4),%a0
2649 dputn %a0
2665 movel ARG1,%a0
2666 movel %a0@,%d0
2674 addw #_PAGE_TABLE+_PAGE_ACCESSED,%a0
2684 moveq #PAGESIZE/PAGE_TABLE_SIZE/4-1,%d0
2685 1:
2686 movel %a0,%a1@+
2687 lea %a0@(PAGE_TABLE_SIZE*4),%a0
2688 dbra %d0,1b
2692 movel ARG1,%a0
2693 movel %a0@,%d0
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
2727 movew #PAGESIZE/4-1,%d0
2728 1:
2730 dbra %d0,1b
2732 dputn %a0
2753 .byte 4,0x44 /* x16, 1 stopbit, no parity */
2758 .byte 12,1,13,0 /* 38400 baud */
2759 .byte 14,1 /* Baud rate generator enable */
2762 .byte -1
2777 .byte 4,0x44 /* x16, 1 stopbit, no parity */
2786 .byte -1
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
2850 is_not_amiga(1f)
2851 lea %pc@(L(custom)),%a0
2852 movel #-ZTWOBASE,%a0@
2855 movew %a0@,CUSTOMBASE+C_SERPER-ZTWOBASE
2857 1:
2875 lea %a1@(LSCC_CTRL),%a0
2877 moveb %a0@,%d0
2879 moveb #9,%a0@
2880 moveb #0xc0,%a0@
2885 subq #1,%d0
2891 moveb %d0,%a0@
2892 moveb %a1@+,%a0@
2894 3: clrb %a0@
2896 bclr #1,%a1@(LMFP_TSR)
2900 orb #1,%a1@(LMFP_TDCDR)
2901 bset #1,%a1@(LMFP_TSR)
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)
2924 subq #1,%d0
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)
2999 func_start serial_putc,%d0/%d1/%a0/%a1
3003 jbne 1f
3007 1:
3013 movel %pc@(L(custom)),%a0
3014 movew %d0,%a0@(CUSTOMBASE+C_SERDAT)
3015 1: movew %a0@(CUSTOMBASE+C_SERDATR),%d0
3017 jeq 1b
3072 1: btst #2,M147_SCC_CTRL_A
3073 jeq 1b
3090 jeq 1f | No tag - use the Bug
3125 1:
3140 1: btst #2,BVME_SCC_CTRL_A
3141 jeq 1b
3162 move.l %a1@,%a0
3163 move.b %d0,%a0@
3164 addq.l #4,%a0
3165 move.l %a0,%a1@
3174 1: moveb %a1@(LSRB0),%d0
3176 beq 1b
3189 1: moveb %a1@(DCALSR),%d1 /* Output to DCA */
3191 beq 1b
3203 is_not_virt(1f)
3207 1:
3216 func_start puts,%d0/%a0
3218 movel ARG1,%a0
3220 1:
3227 2: moveb %a0@+,%d0
3228 jne 1b
3242 1: roll #4,%d0
3248 addb #'A'-('9'+1),%d2
3256 dbra %d1,1b
3273 moveml %d0/%d1/%a0,%sp@-
3276 movel %sp@(18),%a0 /* fetch parameter */
3279 1:
3286 subq #1,%d1
3288 moveb %a0@+,%d0
3289 jne 1b
3292 moveml %sp@+,%d0/%d1/%a0
3297 func_start set_leds,%d0/%a0
3300 is_not_hp300(1f)
3301 movel %pc@(L(iobase)),%a0
3302 moveb %d0,%a0@(0x1ffff)
3305 1:
3307 movel %pc@(L(iobase)),%a0
3310 moveb %d0,%a0@(LCPUCTRL)
3327 func_start console_init,%a0-%a4/%d0-%d7
3330 * a0 = pointer to boot_info
3355 moveq #-1,%d0 /* Mac_black */
3356 subq #1,%d6
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
3384 jeq 1f
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 */
3417 1:
3421 func_start console_put_penguin,%a0-%a1/%d0-%d7
3426 lea %pc@(L(mac_dimensions)),%a0
3427 movel %a0@,%d0
3439 addq #1,%d0
3442 addq #1,%d0
3446 addq #1,%d1
3462 func_start console_scroll,%a0-%a4/%d0-%d7
3463 lea %pc@(L(mac_videobase)),%a0
3464 movel %a0@,%a1
3466 lea %pc@(L(mac_rowbytes)),%a0
3467 movel %a0@,%d5
3468 movel %pc@(L(console_font)),%a0
3469 tstl %a0
3470 jeq 1f
3471 mulul %a0@(FONT_DESC_HEIGHT),%d5 /* account for # scan lines per character */
3477 lea %pc@(L(mac_dimensions)),%a0
3478 movel %a0@,%d3
3487 lea %pc@(L(mac_rowbytes)),%a0
3488 movel %a0@,%d6
3489 movel %pc@(L(console_font)),%a0
3490 subl %a0@(FONT_DESC_HEIGHT),%d4 /* we're not scrolling the top row! */
3493 subq #1,%d6
3506 lea %pc@(L(mac_rowbytes)),%a0
3507 movel %a0@,%d6
3508 movel %pc@(L(console_font)),%a0
3509 mulul %a0@(FONT_DESC_HEIGHT),%d6 /* scan line bytes x font height */
3511 subq #1,%d6
3513 moveq #-1,%d0
3525 1:
3529 func_start console_putc,%a0/%a1/%d0-%d7
3539 jbne 1f
3543 1:
3544 lea %pc@(L(console_globals)),%a0
3548 movel %a0@(Lconsole_struct_cur_row),%d0
3549 addil #1,%d0
3550 movel %d0,%a0@(Lconsole_struct_cur_row)
3551 movel %a0@(Lconsole_struct_num_rows),%d1
3553 jcs 1f
3554 subil #1,%d0
3555 movel %d0,%a0@(Lconsole_struct_cur_row)
3557 1:
3563 clrl %a0@(Lconsole_struct_cur_column)
3567 cmpib #1,%d7
3569 clrl %a0@(Lconsole_struct_cur_row)
3570 clrl %a0@(Lconsole_struct_cur_column)
3576 * a0 = pointer to console globals
3583 movel %a0@(Lconsole_struct_cur_column),%d0
3584 addql #1,%a0@(Lconsole_struct_cur_column)
3585 movel %a0@(Lconsole_struct_num_columns),%d1
3587 jcs 1f
3589 1:
3590 movel %a0@(Lconsole_struct_cur_row),%d1
3594 * a0 = address of pointer to font data (fbcon_font_desc)
3596 movel %pc@(L(console_font)),%a0
3599 /* ASSERT: a0 = contents of Lconsole_font */
3600 mulul %a0@(FONT_DESC_HEIGHT),%d7 /* d7 = index into font data */
3607 * d2 = (bit 0) 1/0 for white/black (!) pixel on screen
3612 /* ASSERT: a0 = contents of Lconsole_font */
3613 mulul %a0@(FONT_DESC_WIDTH),%d0
3614 mulul %a0@(FONT_DESC_HEIGHT),%d1
3615 movel %a0@(FONT_DESC_HEIGHT),%d7 /* Load fbcon_font_desc.height into d7 */
3616 subq #1,%d7
3620 /* ASSERT: a0 = contents of Lconsole_font */
3621 movel %a0@(FONT_DESC_WIDTH),%d6 /* Load fbcon_font_desc.width into d6 */
3622 subql #1,%d6
3625 lslb #1,%d3
3626 scsb %d2 /* convert 1 bit into a byte */
3628 addq #1,%d0
3631 /* ASSERT: a0 = contents of Lconsole_font */
3632 subl %a0@(FONT_DESC_WIDTH),%d0
3633 addq #1,%d1
3643 * d2 = (bit 0) 1/0 for white/black (!)
3646 func_start console_plot_pixel,%a0-%a1/%d0-%d4
3659 * d2 = black or white (0/1)
3664 cmpb #1,%d3
3672 andb #1,%d2
3689 lsll #1,%d4 /* ! */
3690 andb #1,%d2
3693 addq #1,%d4
3698 addq #1,%d4
3709 andb #1,%d4
3710 eorb #1,%d4
3712 andb #1,%d2
3715 addq #1,%d4
3717 addq #1,%d4
3719 addq #1,%d4
3724 addq #1,%d4
3726 addq #1,%d4
3728 addq #1,%d4
3737 andb #1,%d2
3751 andb #1,%d2
3866 .long -1