Lines Matching refs:d0

667 	movel	%pc@(m68k_cputype),%d0
676 btst #CPUB_68060,%d0
685 btst #CPUB_68040,%d0
694 btst #CPUB_68020,%d0
720 clrl %d0
740 movel #_PAGE_CACHE040W,%d0
744 movew #_PAGE_CACHE040,%d0
752 movel %d0,%a0@
786 tstl %d0
794 moveq #0,%d0
797 movel #0xff000000,%d0 /* Hades I/O base addr: 0xff000000 */
799 movel %d0,%a0@
816 tstl %d0
830 tstl %d0
860 tstl %d0
866 tstl %d0
925 movel %a0@(4),%d0
927 cmpl %d0,%d1
930 cmpl %d0,%d1
1000 moveq #0,%d0
1006 2: movel #0xff000000,%d0 /* Medusa/Hades base addr: 0xff000000 */
1007 1: movel %d0,%d3
1187 movel #VIDEOMEMMASK,%d0
1188 andl %pc@(L(mac_videobase)),%d0
1190 mmu_map #VIDEOMEMBASE,%d0,#VIDEOMEMSIZE,%d3
1212 movel #0xfee00000, %d0
1214 lsrl %d1,%d0
1215 mmu_get_root_table_entry %d0
1217 movel #0xfee00000, %d0
1219 lsrl %d1,%d0
1220 andl #PTR_TABLE_SIZE-1, %d0
1221 mmu_get_ptr_table_entry %a0,%d0
1223 movel #0xfee00000, %d0
1225 lsrl %d1,%d0
1226 andl #PAGE_TABLE_SIZE-1, %d0
1227 mmu_get_page_table_entry %a0,%d0
1296 movel %pc@(L(phys_kernel_start)),%d0
1297 subl #PAGE_OFFSET,%d0
1299 subl %d0,%a0
1303 subl %d0,%a0
1305 subl %d0,%a1
1410 movel #~VIDEOMEMMASK,%d0
1411 andl L(mac_videobase),%d0
1412 addl #VIDEOMEMBASE,%d0
1413 movel %d0,L(mac_videobase)
1415 movel %pc@(L(phys_kernel_start)),%d0
1416 subl #PAGE_OFFSET,%d0
1417 subl %d0,L(console_font)
1418 subl %d0,L(console_font_data)
1481 movel #CC6_ENABLE_D+CC6_ENABLE_I,%d0
1483 movec %d0,%cacr
1487 movel #CC6_ENABLE_D+CC6_ENABLE_I+CC6_ENABLE_SB+CC6_PUSH_DPI+CC6_ENABLE_B+CC6_CLRA_B,%d0
1489 movec %d0,%cacr
1491 moveq #1,%d0
1493 movec %d0,%pcr
1499 movel #CC3_ENABLE_DB+CC3_CLR_D+CC3_ENABLE_D+CC3_ENABLE_IB+CC3_CLR_I+CC3_ENABLE_I,%d0
1500 movec %d0,%cacr
1538 movel ARG1,%d0
1542 cmpw %a0@(BIR_TAG),%d0
1546 2: moveq #0,%d0
1547 movew %a0@(BIR_SIZE),%d0
1550 3: moveq #-1,%d0
1641 func_start mmu_print,%a0-%a6/%d0-%d7
1722 moveql #0,%d0
1757 moveml %d0-%d1,%sp@-
1758 movel %a4,%d0
1763 moveml %sp@+,%d0-%d1
1776 addq #1,%d0
1777 cmpib #128,%d0
1781 movec %dtt1,%d0
1782 movel %d0,%d1
1786 movel %d0,%d1
1792 movel %d0,%d6
1795 movec %dtt0,%d0
1796 movel %d0,%d1
1800 movel %d0,%d1
1806 movel %d0,%d6
1842 movel %a5,%d0
1843 andil #0xfffffff0,%d0
1844 movel %d0,%a0
1846 movel #0,%d0
1903 addq #1,%d0
1904 cmpib #128,%d0
1914 moveml %d0-%d1,%sp@-
1915 movel %a4,%d0
1919 moveml %sp@+,%d0-%d1
1941 moveml %d0-%d7/%a0,%sp@-
1952 putn %d0
1970 moveml %sp@+,%d0-%d7/%a0
2014 func_start mmu_map_tt,%d0/%d1/%a0,4
2033 moveq #-1,%d0
2034 lsrl %d1,%d0
2035 lsrl #1,%d0
2039 movel %d0,%d1
2045 lsrl #8,%d0
2046 orl %d0,%d1
2055 movel ARG4,%d0
2056 btst #6,%d0
2116 func_start mmu_map,%d0-%d4/%a0-%a4
2127 movel ARG1,%d0
2128 andl #-(PAGESIZE*PAGE_TABLE_SIZE),%d0
2129 movel %d0,%a3
2139 movel ARG2,%d0
2140 andl #-(PAGESIZE*PAGE_TABLE_SIZE),%d0
2141 movel %d0,%a2
2145 movel ARG4,%d0
2146 orw #_PAGE_PRESENT+_PAGE_ACCESSED+_PAGE_DIRTY,%d0
2147 addw %d0,%a2
2175 movel %a3,%d0
2177 lsrl %d1,%d0
2178 mmu_get_root_table_entry %d0
2182 movel %a3,%d0
2184 lsrl %d1,%d0
2185 andl #PTR_TABLE_SIZE-1,%d0
2186 mmu_get_ptr_table_entry %a0,%d0
2190 movel %a3,%d0
2192 lsrl %d1,%d0
2193 andl #PAGE_TABLE_SIZE-1,%d0
2194 mmu_get_page_table_entry %a0,%d0
2218 movel %a3,%d0
2220 lsrl %d1,%d0
2221 mmu_get_root_table_entry %d0
2226 movel %a3,%d0
2227 andl #(PTR_TABLE_SIZE*PAGE_TABLE_SIZE*PAGESIZE-1)&(-ROOT_TABLE_SIZE),%d0
2258 movel %a3,%d0
2260 lsrl %d1,%d0
2261 andl #PTR_TABLE_SIZE-1,%d0
2262 mmu_get_ptr_table_entry %a0,%d0
2306 func_start mmu_fixup_page_mmu_cache,%d0/%a0
2313 movel ARG1,%d0
2315 lsrl %d1,%d0
2316 mmu_get_root_table_entry %d0
2320 movel ARG1,%d0
2322 lsrl %d1,%d0
2323 andl #PTR_TABLE_SIZE-1,%d0
2324 mmu_get_ptr_table_entry %a0,%d0
2328 movel ARG1,%d0
2330 lsrl %d1,%d0
2331 andl #PAGE_TABLE_SIZE-1,%d0
2332 mmu_get_page_table_entry %a0,%d0
2334 movel %a0@,%d0
2335 andil #_CACHEMASK040,%d0
2336 orl %pc@(m68k_pgtable_cachemode),%d0
2337 movel %d0,%a0@
2350 func_start mmu_temp_map,%d0/%d1/%a0/%a1
2361 movel ARG2,%d0
2363 lsrl %d1,%d0
2364 mmu_get_root_table_entry %d0
2368 movel %a0@,%d0
2369 cmpl %pc@(L(memory_start)),%d0
2374 movel %a1@,%d0
2376 orw #_PAGE_TABLE+_PAGE_ACCESSED,%d0
2377 movel %d0,%a0@
2380 dputn %d0
2383 andw #-ROOT_TABLE_SIZE,%d0
2384 movel %d0,%a0
2388 movel ARG2,%d0
2390 lsrl %d1,%d0
2391 andl #PTR_TABLE_SIZE-1,%d0
2392 lea %a0@(%d0*4),%a0
2397 movel %a0@,%d0
2402 movel %a1@,%d0
2406 orw #_PAGE_TABLE+_PAGE_ACCESSED,%d0
2407 movel %d0,%a0@
2410 dputn %d0
2413 andw #-PTR_TABLE_SIZE,%d0
2414 movel %d0,%a0
2418 movel ARG2,%d0
2420 lsrl %d1,%d0
2421 andl #PAGE_TABLE_SIZE-1,%d0
2422 lea %a0@(%d0*4),%a0
2427 movel ARG1,%d0
2428 andw #-PAGESIZE,%d0
2429 orw #_PAGE_PRESENT+_PAGE_ACCESSED+_PAGE_DIRTY,%d0
2430 movel %d0,%a0@
2431 dputn %d0
2437 func_start mmu_engage,%d0-%d2/%a0-%a3
2439 moveq #ROOT_TABLE_SIZE-1,%d0
2448 dbra %d0,1b
2453 movew #PAGESIZE-1,%d0
2456 dbra %d0,1b
2485 movel #TC_ENABLE+TC_PAGE4K,%d0
2486 movec %d0,%tc /* enable the MMU */
2504 movel #0x0808,%d0
2505 movec %d0,%cacr
2516 movel #0x0808,%d0
2517 movec %d0,%cacr
2532 func_start mmu_get_root_table_entry,%d0/%a1
2552 movel %a0,%d0
2553 andw #-PAGESIZE,%d0
2555 dputn %d0
2558 movel %d0,%a0@
2560 movel %d0,%a0@
2577 movew #PAGESIZE/4-1,%d0
2580 dbra %d0,1b
2588 movel ARG1,%d0
2589 lea %a0@(%d0*4),%a0
2600 func_start mmu_get_ptr_table_entry,%d0/%a1
2610 movel %a0@,%d0
2617 movel %a0@,%d0
2623 andw #7,%d0
2633 movel %a1@,%d0
2636 dputn %d0
2642 orw #_PAGE_TABLE+_PAGE_ACCESSED,%d0
2643 movel %d0,%a0@
2647 andw #-PTR_TABLE_SIZE,%d0
2648 movel %d0,%a0
2649 movel ARG2,%d0
2650 lea %a0@(%d0*4),%a0
2660 func_start mmu_get_page_table_entry,%d0/%a1
2670 movel %a0@,%d0
2682 movel ARG1,%d0
2683 andw #-(PAGESIZE/PAGE_TABLE_SIZE),%d0
2684 movel %d0,%a1
2688 moveq #PAGESIZE/PAGE_TABLE_SIZE/4-1,%d0
2692 dbra %d0,1b
2697 movel %a0@,%d0
2701 andw #-PAGE_TABLE_SIZE,%d0
2702 movel %d0,%a0
2703 movel ARG2,%d0
2704 lea %a0@(%d0*4),%a0
2718 func_start get_new_page,%d0/%a1
2731 movew #PAGESIZE/4-1,%d0
2734 dbra %d0,1b
2834 func_start serial_init,%d0/%d1/%a0/%a1
2875 moveb %a1@(LPSG_READ),%d0
2876 bset #5,%d0
2877 moveb %d0,%a1@(LPSG_WRITE)
2881 moveb %a0@,%d0
2887 movel #32,%d0
2889 subq #1,%d0
2893 2: moveb %a1@+,%d0
2895 moveb %d0,%a0@
2920 moveb %a0@(mac_scc_cha_a_ctrl_offset),%d0
2926 movel #35,%d0
2928 subq #1,%d0
2934 5: moveb %a1@+,%d0
2936 moveb %d0,%a0@(mac_scc_cha_a_ctrl_offset)
2944 7: moveb %a1@+,%d0
2946 moveb %d0,%a0@(mac_scc_cha_b_ctrl_offset)
3003 func_start serial_putc,%d0/%d1/%a0/%a1
3005 movel ARG1,%d0
3006 cmpib #'\n',%d0
3015 andw #0x00ff,%d0
3016 oriw #0x0100,%d0
3018 movew %d0,%a0@(CUSTOMBASE+C_SERDAT)
3019 1: movew %a0@(CUSTOMBASE+C_SERDATR),%d0
3020 andw #0x2000,%d0
3034 moveb %d0,%a1@(mac_scc_cha_a_data_offset)
3039 moveb %d0,%a1@(mac_scc_cha_b_data_offset)
3052 moveb %d0,%a1@(LPSG_WRITE)
3054 moveb %a1@(LPSG_READ),%d0
3055 bclr #5,%d0
3056 moveb %d0,%a1@(LPSG_WRITE)
3059 bset #5,%d0
3060 moveb %d0,%a1@(LPSG_WRITE)
3064 moveb %d0,%a1@(LSCC_DATA)
3068 moveb %d0,%a1@(LMFP_UDR)
3078 moveb %d0,M147_SCC_DATA_A
3092 moveml %d0-%d7/%a2-%a6,%sp@-
3109 moveb %d0,M162_SCC_CTRL_A
3125 moveb %d0,M167_CYTDR
3130 moveb %d0,%sp@-
3134 moveml %sp@+,%d0-%d7/%a2-%a6
3146 moveb %d0,BVME_SCC_DATA_A
3153 movel %d0,-(%sp)
3167 move.b %d0,%a0@
3177 moveb %d0,%a1@(LTHRB0)
3178 1: moveb %a1@(LSRB0),%d0
3179 andb #0x4,%d0
3196 moveb %d0,%a1@(DCADATA)
3201 moveb %d0,%a1@(APCIDATA)
3210 movel %d0,%a1@(GF_PUT_CHAR)
3220 func_start puts,%d0/%a0
3226 console_putc %d0
3229 serial_putc %d0
3231 2: moveb %a0@+,%d0
3240 func_start putn,%d0-%d2
3244 movel ARG1,%d0
3246 1: roll #4,%d0
3247 move %d0,%d2
3277 moveml %d0/%d1/%a0,%sp@-
3285 console_putc %d0
3288 serial_putc %d0
3292 moveb %a0@+,%d0
3296 moveml %sp@+,%d0/%d1/%a0
3301 func_start set_leds,%d0/%a0
3302 movel ARG1,%d0
3306 moveb %d0,%a0@(0x1ffff)
3312 lsll #8,%d0
3313 eorw #0xff00,%d0
3314 moveb %d0,%a0@(LCPUCTRL)
3331 func_start console_init,%a0-%a4/%d0-%d7
3359 moveq #-1,%d0 /* Mac_black */
3363 movel %d0,%a1@+
3364 movel %d0,%a1@+
3390 movel %a0@(FONT_DESC_DATA),%d0
3392 addl %a1,%d0
3393 movel %d0,%a4@
3402 movel %d3,%d0 /* screen width in pixels */
3403 divul %a0@(FONT_DESC_WIDTH),%d0 /* d0 = max num chars per row */
3408 movel %d0,%a2@(Lconsole_struct_num_columns)
3425 func_start console_put_penguin,%a0-%a1/%d0-%d7
3431 movel %a0@,%d0
3432 andil #0xffff,%d0
3433 subil #64,%d0 /* snug up against the right edge */
3442 console_plot_pixel %d0,%d1,%d2
3443 addq #1,%d0
3445 console_plot_pixel %d0,%d1,%d2
3446 addq #1,%d0
3449 subil #64,%d0
3466 func_start console_scroll,%a0-%a4/%d0-%d7
3517 moveq #-1,%d0
3519 movel %d0,%a1@+
3520 movel %d0,%a1@+
3521 movel %d0,%a1@+
3522 movel %d0,%a1@+
3523 movel %d0,%a1@+
3524 movel %d0,%a1@+
3525 movel %d0,%a1@+
3526 movel %d0,%a1@+
3533 func_start console_putc,%a0/%a1/%d0-%d7
3552 movel %a0@(Lconsole_struct_cur_row),%d0
3553 addil #1,%d0
3554 movel %d0,%a0@(Lconsole_struct_cur_row)
3556 cmpl %d1,%d0
3558 subil #1,%d0
3559 movel %d0,%a0@(Lconsole_struct_cur_row)
3587 movel %a0@(Lconsole_struct_cur_column),%d0
3590 cmpl %d1,%d0
3617 mulul %a0@(FONT_DESC_WIDTH),%d0
3631 console_plot_pixel %d0,%d1,%d2
3632 addq #1,%d0
3636 subl %a0@(FONT_DESC_WIDTH),%d0
3650 func_start console_plot_pixel,%a0-%a1/%d0-%d4
3654 movel ARG1,%d0
3670 movel %d0,%d4 /* we need the low order 3 bits! */
3671 divul #8,%d0
3672 addal %d0,%a1
3687 movel %d0,%d4 /* we need the low order 2 bits! */
3688 divul #4,%d0
3689 addal %d0,%a1
3709 movel %d0,%d4 /* we need the low order bit! */
3710 divul #2,%d0
3711 addal %d0,%a1
3739 addal %d0,%a1
3752 addal %d0,%a1
3753 addal %d0,%a1