Lines Matching full:d0
663 movel %pc@(m68k_cputype),%d0
672 btst #CPUB_68060,%d0
681 btst #CPUB_68040,%d0
690 btst #CPUB_68020,%d0
716 clrl %d0
736 movel #_PAGE_CACHE040W,%d0
740 movew #_PAGE_CACHE040,%d0
748 movel %d0,%a0@
782 tstl %d0
790 moveq #0,%d0
793 movel #0xff000000,%d0 /* Hades I/O base addr: 0xff000000 */
795 movel %d0,%a0@
812 tstl %d0
826 tstl %d0
856 tstl %d0
862 tstl %d0
921 movel %a0@(4),%d0
923 cmpl %d0,%d1
926 cmpl %d0,%d1
996 moveq #0,%d0
1002 2: movel #0xff000000,%d0 /* Medusa/Hades base addr: 0xff000000 */
1003 1: movel %d0,%d3
1183 movel #VIDEOMEMMASK,%d0
1184 andl %pc@(L(mac_videobase)),%d0
1186 mmu_map #VIDEOMEMBASE,%d0,#VIDEOMEMSIZE,%d3
1208 movel #0xfee00000, %d0
1210 lsrl %d1,%d0
1211 mmu_get_root_table_entry %d0
1213 movel #0xfee00000, %d0
1215 lsrl %d1,%d0
1216 andl #PTR_TABLE_SIZE-1, %d0
1217 mmu_get_ptr_table_entry %a0,%d0
1219 movel #0xfee00000, %d0
1221 lsrl %d1,%d0
1222 andl #PAGE_TABLE_SIZE-1, %d0
1223 mmu_get_page_table_entry %a0,%d0
1292 movel %pc@(L(phys_kernel_start)),%d0
1293 subl #PAGE_OFFSET,%d0
1295 subl %d0,%a0
1299 subl %d0,%a0
1301 subl %d0,%a1
1406 movel #~VIDEOMEMMASK,%d0
1407 andl L(mac_videobase),%d0
1408 addl #VIDEOMEMBASE,%d0
1409 movel %d0,L(mac_videobase)
1411 movel %pc@(L(phys_kernel_start)),%d0
1412 subl #PAGE_OFFSET,%d0
1413 subl %d0,L(console_font)
1414 subl %d0,L(console_font_data)
1477 movel #CC6_ENABLE_D+CC6_ENABLE_I,%d0
1479 movec %d0,%cacr
1483 movel #CC6_ENABLE_D+CC6_ENABLE_I+CC6_ENABLE_SB+CC6_PUSH_DPI+CC6_ENABLE_B+CC6_CLRA_B,%d0
1485 movec %d0,%cacr
1487 moveq #1,%d0
1489 movec %d0,%pcr
1495 movel #CC3_ENABLE_DB+CC3_CLR_D+CC3_ENABLE_D+CC3_ENABLE_IB+CC3_CLR_I+CC3_ENABLE_I,%d0
1496 movec %d0,%cacr
1529 * Returns: d0: size (-1 if not found)
1534 movel ARG1,%d0
1538 cmpw %a0@(BIR_TAG),%d0
1542 2: moveq #0,%d0
1543 movew %a0@(BIR_SIZE),%d0
1546 3: moveq #-1,%d0
1637 func_start mmu_print,%a0-%a6/%d0-%d7
1718 moveql #0,%d0
1753 moveml %d0-%d1,%sp@-
1754 movel %a4,%d0
1759 moveml %sp@+,%d0-%d1
1772 addq #1,%d0
1773 cmpib #128,%d0
1777 movec %dtt1,%d0
1778 movel %d0,%d1
1782 movel %d0,%d1
1788 movel %d0,%d6
1791 movec %dtt0,%d0
1792 movel %d0,%d1
1796 movel %d0,%d1
1802 movel %d0,%d6
1838 movel %a5,%d0
1839 andil #0xfffffff0,%d0
1840 movel %d0,%a0
1842 movel #0,%d0
1899 addq #1,%d0
1900 cmpib #128,%d0
1910 moveml %d0-%d1,%sp@-
1911 movel %a4,%d0
1915 moveml %sp@+,%d0-%d1
1937 moveml %d0-%d7/%a0,%sp@-
1948 putn %d0
1966 moveml %sp@+,%d0-%d7/%a0
2010 func_start mmu_map_tt,%d0/%d1/%a0,4
2029 moveq #-1,%d0
2030 lsrl %d1,%d0
2031 lsrl #1,%d0
2035 movel %d0,%d1
2041 lsrl #8,%d0
2042 orl %d0,%d1
2051 movel ARG4,%d0
2052 btst #6,%d0
2112 func_start mmu_map,%d0-%d4/%a0-%a4
2123 movel ARG1,%d0
2124 andl #-(PAGESIZE*PAGE_TABLE_SIZE),%d0
2125 movel %d0,%a3
2135 movel ARG2,%d0
2136 andl #-(PAGESIZE*PAGE_TABLE_SIZE),%d0
2137 movel %d0,%a2
2141 movel ARG4,%d0
2142 orw #_PAGE_PRESENT+_PAGE_ACCESSED+_PAGE_DIRTY,%d0
2143 addw %d0,%a2
2171 movel %a3,%d0
2173 lsrl %d1,%d0
2174 mmu_get_root_table_entry %d0
2178 movel %a3,%d0
2180 lsrl %d1,%d0
2181 andl #PTR_TABLE_SIZE-1,%d0
2182 mmu_get_ptr_table_entry %a0,%d0
2186 movel %a3,%d0
2188 lsrl %d1,%d0
2189 andl #PAGE_TABLE_SIZE-1,%d0
2190 mmu_get_page_table_entry %a0,%d0
2214 movel %a3,%d0
2216 lsrl %d1,%d0
2217 mmu_get_root_table_entry %d0
2222 movel %a3,%d0
2223 andl #(PTR_TABLE_SIZE*PAGE_TABLE_SIZE*PAGESIZE-1)&(-ROOT_TABLE_SIZE),%d0
2254 movel %a3,%d0
2256 lsrl %d1,%d0
2257 andl #PTR_TABLE_SIZE-1,%d0
2258 mmu_get_ptr_table_entry %a0,%d0
2302 func_start mmu_fixup_page_mmu_cache,%d0/%a0
2309 movel ARG1,%d0
2311 lsrl %d1,%d0
2312 mmu_get_root_table_entry %d0
2316 movel ARG1,%d0
2318 lsrl %d1,%d0
2319 andl #PTR_TABLE_SIZE-1,%d0
2320 mmu_get_ptr_table_entry %a0,%d0
2324 movel ARG1,%d0
2326 lsrl %d1,%d0
2327 andl #PAGE_TABLE_SIZE-1,%d0
2328 mmu_get_page_table_entry %a0,%d0
2330 movel %a0@,%d0
2331 andil #_CACHEMASK040,%d0
2332 orl %pc@(m68k_pgtable_cachemode),%d0
2333 movel %d0,%a0@
2346 func_start mmu_temp_map,%d0/%d1/%a0/%a1
2357 movel ARG2,%d0
2359 lsrl %d1,%d0
2360 mmu_get_root_table_entry %d0
2364 movel %a0@,%d0
2365 cmpl %pc@(L(memory_start)),%d0
2370 movel %a1@,%d0
2372 orw #_PAGE_TABLE+_PAGE_ACCESSED,%d0
2373 movel %d0,%a0@
2376 dputn %d0
2379 andw #-ROOT_TABLE_SIZE,%d0
2380 movel %d0,%a0
2384 movel ARG2,%d0
2386 lsrl %d1,%d0
2387 andl #PTR_TABLE_SIZE-1,%d0
2388 lea %a0@(%d0*4),%a0
2393 movel %a0@,%d0
2398 movel %a1@,%d0
2402 orw #_PAGE_TABLE+_PAGE_ACCESSED,%d0
2403 movel %d0,%a0@
2406 dputn %d0
2409 andw #-PTR_TABLE_SIZE,%d0
2410 movel %d0,%a0
2414 movel ARG2,%d0
2416 lsrl %d1,%d0
2417 andl #PAGE_TABLE_SIZE-1,%d0
2418 lea %a0@(%d0*4),%a0
2423 movel ARG1,%d0
2424 andw #-PAGESIZE,%d0
2425 orw #_PAGE_PRESENT+_PAGE_ACCESSED+_PAGE_DIRTY,%d0
2426 movel %d0,%a0@
2427 dputn %d0
2433 func_start mmu_engage,%d0-%d2/%a0-%a3
2435 moveq #ROOT_TABLE_SIZE-1,%d0
2444 dbra %d0,1b
2449 movew #PAGESIZE-1,%d0
2452 dbra %d0,1b
2481 movel #TC_ENABLE+TC_PAGE4K,%d0
2482 movec %d0,%tc /* enable the MMU */
2500 movel #0x0808,%d0
2501 movec %d0,%cacr
2512 movel #0x0808,%d0
2513 movec %d0,%cacr
2528 func_start mmu_get_root_table_entry,%d0/%a1
2548 movel %a0,%d0
2549 andw #-PAGESIZE,%d0
2551 dputn %d0
2554 movel %d0,%a0@
2556 movel %d0,%a0@
2573 movew #PAGESIZE/4-1,%d0
2576 dbra %d0,1b
2584 movel ARG1,%d0
2585 lea %a0@(%d0*4),%a0
2596 func_start mmu_get_ptr_table_entry,%d0/%a1
2606 movel %a0@,%d0
2613 movel %a0@,%d0
2619 andw #7,%d0
2629 movel %a1@,%d0
2632 dputn %d0
2638 orw #_PAGE_TABLE+_PAGE_ACCESSED,%d0
2639 movel %d0,%a0@
2643 andw #-PTR_TABLE_SIZE,%d0
2644 movel %d0,%a0
2645 movel ARG2,%d0
2646 lea %a0@(%d0*4),%a0
2656 func_start mmu_get_page_table_entry,%d0/%a1
2666 movel %a0@,%d0
2678 movel ARG1,%d0
2679 andw #-(PAGESIZE/PAGE_TABLE_SIZE),%d0
2680 movel %d0,%a1
2684 moveq #PAGESIZE/PAGE_TABLE_SIZE/4-1,%d0
2688 dbra %d0,1b
2693 movel %a0@,%d0
2697 andw #-PAGE_TABLE_SIZE,%d0
2698 movel %d0,%a0
2699 movel ARG2,%d0
2700 lea %a0@(%d0*4),%a0
2714 func_start get_new_page,%d0/%a1
2727 movew #PAGESIZE/4-1,%d0
2730 dbra %d0,1b
2830 func_start serial_init,%d0/%d1/%a0/%a1
2835 * d0 = boot info offset
2839 * d0 = init data for serial port
2843 * d0 = init data for serial port
2871 moveb %a1@(LPSG_READ),%d0
2872 bset #5,%d0
2873 moveb %d0,%a1@(LPSG_WRITE)
2877 moveb %a0@,%d0
2883 movel #32,%d0
2885 subq #1,%d0
2889 2: moveb %a1@+,%d0
2891 moveb %d0,%a0@
2916 moveb %a0@(mac_scc_cha_a_ctrl_offset),%d0
2922 movel #35,%d0
2924 subq #1,%d0
2930 5: moveb %a1@+,%d0
2932 moveb %d0,%a0@(mac_scc_cha_a_ctrl_offset)
2940 7: moveb %a1@+,%d0
2942 moveb %d0,%a0@(mac_scc_cha_b_ctrl_offset)
2999 func_start serial_putc,%d0/%d1/%a0/%a1
3001 movel ARG1,%d0
3002 cmpib #'\n',%d0
3011 andw #0x00ff,%d0
3012 oriw #0x0100,%d0
3014 movew %d0,%a0@(CUSTOMBASE+C_SERDAT)
3015 1: movew %a0@(CUSTOMBASE+C_SERDATR),%d0
3016 andw #0x2000,%d0
3030 moveb %d0,%a1@(mac_scc_cha_a_data_offset)
3035 moveb %d0,%a1@(mac_scc_cha_b_data_offset)
3048 moveb %d0,%a1@(LPSG_WRITE)
3050 moveb %a1@(LPSG_READ),%d0
3051 bclr #5,%d0
3052 moveb %d0,%a1@(LPSG_WRITE)
3055 bset #5,%d0
3056 moveb %d0,%a1@(LPSG_WRITE)
3060 moveb %d0,%a1@(LSCC_DATA)
3064 moveb %d0,%a1@(LMFP_UDR)
3074 moveb %d0,M147_SCC_DATA_A
3088 moveml %d0-%d7/%a2-%a6,%sp@-
3105 moveb %d0,M162_SCC_CTRL_A
3121 moveb %d0,M167_CYTDR
3126 moveb %d0,%sp@-
3130 moveml %sp@+,%d0-%d7/%a2-%a6
3142 moveb %d0,BVME_SCC_DATA_A
3149 movel %d0,-(%sp)
3163 move.b %d0,%a0@
3173 moveb %d0,%a1@(LTHRB0)
3174 1: moveb %a1@(LSRB0),%d0
3175 andb #0x4,%d0
3192 moveb %d0,%a1@(DCADATA)
3197 moveb %d0,%a1@(APCIDATA)
3206 movel %d0,%a1@(GF_PUT_CHAR)
3216 func_start puts,%d0/%a0
3222 console_putc %d0
3225 serial_putc %d0
3227 2: moveb %a0@+,%d0
3236 func_start putn,%d0-%d2
3240 movel ARG1,%d0
3242 1: roll #4,%d0
3243 move %d0,%d2
3273 moveml %d0/%d1/%a0,%sp@-
3281 console_putc %d0
3284 serial_putc %d0
3288 moveb %a0@+,%d0
3292 moveml %sp@+,%d0/%d1/%a0
3297 func_start set_leds,%d0/%a0
3298 movel ARG1,%d0
3302 moveb %d0,%a0@(0x1ffff)
3308 lsll #8,%d0
3309 eorw #0xff00,%d0
3310 moveb %d0,%a0@(LCPUCTRL)
3327 func_start console_init,%a0-%a4/%d0-%d7
3355 moveq #-1,%d0 /* Mac_black */
3359 movel %d0,%a1@+
3360 movel %d0,%a1@+
3386 movel %a0@(FONT_DESC_DATA),%d0
3388 addl %a1,%d0
3389 movel %d0,%a4@
3398 movel %d3,%d0 /* screen width in pixels */
3399 divul %a0@(FONT_DESC_WIDTH),%d0 /* d0 = max num chars per row */
3404 movel %d0,%a2@(Lconsole_struct_num_columns)
3421 func_start console_put_penguin,%a0-%a1/%d0-%d7
3427 movel %a0@,%d0
3428 andil #0xffff,%d0
3429 subil #64,%d0 /* snug up against the right edge */
3438 console_plot_pixel %d0,%d1,%d2
3439 addq #1,%d0
3441 console_plot_pixel %d0,%d1,%d2
3442 addq #1,%d0
3445 subil #64,%d0
3462 func_start console_scroll,%a0-%a4/%d0-%d7
3513 moveq #-1,%d0
3515 movel %d0,%a1@+
3516 movel %d0,%a1@+
3517 movel %d0,%a1@+
3518 movel %d0,%a1@+
3519 movel %d0,%a1@+
3520 movel %d0,%a1@+
3521 movel %d0,%a1@+
3522 movel %d0,%a1@+
3529 func_start console_putc,%a0/%a1/%d0-%d7
3548 movel %a0@(Lconsole_struct_cur_row),%d0
3549 addil #1,%d0
3550 movel %d0,%a0@(Lconsole_struct_cur_row)
3552 cmpl %d1,%d0
3554 subil #1,%d0
3555 movel %d0,%a0@(Lconsole_struct_cur_row)
3578 * d0 = cursor column
3583 movel %a0@(Lconsole_struct_cur_column),%d0
3586 cmpl %d1,%d0
3605 * d0 = pixel coordinate, x
3613 mulul %a0@(FONT_DESC_WIDTH),%d0
3627 console_plot_pixel %d0,%d1,%d2
3628 addq #1,%d0
3632 subl %a0@(FONT_DESC_WIDTH),%d0
3641 * d0 = x coordinate
3646 func_start console_plot_pixel,%a0-%a1/%d0-%d4
3650 movel ARG1,%d0
3657 * d0 = x coord becomes byte offset into frame buffer
3661 * d4 = temp of x (d0) for many bit depths
3666 movel %d0,%d4 /* we need the low order 3 bits! */
3667 divul #8,%d0
3668 addal %d0,%a1
3683 movel %d0,%d4 /* we need the low order 2 bits! */
3684 divul #4,%d0
3685 addal %d0,%a1
3705 movel %d0,%d4 /* we need the low order bit! */
3706 divul #2,%d0
3707 addal %d0,%a1
3735 addal %d0,%a1
3748 addal %d0,%a1
3749 addal %d0,%a1