Lines Matching refs:d0
657 movel %pc@(m68k_cputype),%d0
666 btst #CPUB_68060,%d0
675 btst #CPUB_68040,%d0
684 btst #CPUB_68020,%d0
710 clrl %d0
730 movel #_PAGE_CACHE040W,%d0
734 movew #_PAGE_CACHE040,%d0
742 movel %d0,%a0@
776 tstl %d0
784 moveq #0,%d0
787 movel #0xff000000,%d0 /* Hades I/O base addr: 0xff000000 */
789 movel %d0,%a0@
806 tstl %d0
820 tstl %d0
850 tstl %d0
856 tstl %d0
915 movel %a0@(4),%d0
917 cmpl %d0,%d1
920 cmpl %d0,%d1
990 moveq #0,%d0
996 2: movel #0xff000000,%d0 /* Medusa/Hades base addr: 0xff000000 */
997 1: movel %d0,%d3
1177 movel #VIDEOMEMMASK,%d0
1178 andl %pc@(L(mac_videobase)),%d0
1180 mmu_map #VIDEOMEMBASE,%d0,#VIDEOMEMSIZE,%d3
1202 movel #0xfee00000, %d0
1204 lsrl %d1,%d0
1205 mmu_get_root_table_entry %d0
1207 movel #0xfee00000, %d0
1209 lsrl %d1,%d0
1210 andl #PTR_TABLE_SIZE-1, %d0
1211 mmu_get_ptr_table_entry %a0,%d0
1213 movel #0xfee00000, %d0
1215 lsrl %d1,%d0
1216 andl #PAGE_TABLE_SIZE-1, %d0
1217 mmu_get_page_table_entry %a0,%d0
1279 movel %pc@(L(phys_kernel_start)),%d0
1280 subl #PAGE_OFFSET,%d0
1282 subl %d0,%a0
1286 subl %d0,%a0
1288 subl %d0,%a1
1393 movel #~VIDEOMEMMASK,%d0
1394 andl L(mac_videobase),%d0
1395 addl #VIDEOMEMBASE,%d0
1396 movel %d0,L(mac_videobase)
1398 movel %pc@(L(phys_kernel_start)),%d0
1399 subl #PAGE_OFFSET,%d0
1400 subl %d0,L(console_font)
1401 subl %d0,L(console_font_data)
1464 movel #CC6_ENABLE_D+CC6_ENABLE_I,%d0
1466 movec %d0,%cacr
1470 movel #CC6_ENABLE_D+CC6_ENABLE_I+CC6_ENABLE_SB+CC6_PUSH_DPI+CC6_ENABLE_B+CC6_CLRA_B,%d0
1472 movec %d0,%cacr
1474 moveq #1,%d0
1476 movec %d0,%pcr
1482 movel #CC3_ENABLE_DB+CC3_CLR_D+CC3_ENABLE_D+CC3_ENABLE_IB+CC3_CLR_I+CC3_ENABLE_I,%d0
1483 movec %d0,%cacr
1516 * Returns: d0: size (-1 if not found)
1521 movel ARG1,%d0
1525 cmpw %a0@(BIR_TAG),%d0
1529 2: moveq #0,%d0
1530 movew %a0@(BIR_SIZE),%d0
1533 3: moveq #-1,%d0
1624 func_start mmu_print,%a0-%a6/%d0-%d7
1705 moveql #0,%d0
1740 moveml %d0-%d1,%sp@-
1741 movel %a4,%d0
1746 moveml %sp@+,%d0-%d1
1759 addq #1,%d0
1760 cmpib #128,%d0
1764 movec %dtt1,%d0
1765 movel %d0,%d1
1769 movel %d0,%d1
1775 movel %d0,%d6
1778 movec %dtt0,%d0
1779 movel %d0,%d1
1783 movel %d0,%d1
1789 movel %d0,%d6
1825 movel %a5,%d0
1826 andil #0xfffffff0,%d0
1827 movel %d0,%a0
1829 movel #0,%d0
1886 addq #1,%d0
1887 cmpib #128,%d0
1897 moveml %d0-%d1,%sp@-
1898 movel %a4,%d0
1902 moveml %sp@+,%d0-%d1
1924 moveml %d0-%d7/%a0,%sp@-
1935 putn %d0
1953 moveml %sp@+,%d0-%d7/%a0
1997 func_start mmu_map_tt,%d0/%d1/%a0,4
2016 moveq #-1,%d0
2017 lsrl %d1,%d0
2018 lsrl #1,%d0
2022 movel %d0,%d1
2028 lsrl #8,%d0
2029 orl %d0,%d1
2038 movel ARG4,%d0
2039 btst #6,%d0
2099 func_start mmu_map,%d0-%d4/%a0-%a4
2110 movel ARG1,%d0
2111 andl #-(PAGESIZE*PAGE_TABLE_SIZE),%d0
2112 movel %d0,%a3
2122 movel ARG2,%d0
2123 andl #-(PAGESIZE*PAGE_TABLE_SIZE),%d0
2124 movel %d0,%a2
2128 movel ARG4,%d0
2129 orw #_PAGE_PRESENT+_PAGE_ACCESSED+_PAGE_DIRTY,%d0
2130 addw %d0,%a2
2158 movel %a3,%d0
2160 lsrl %d1,%d0
2161 mmu_get_root_table_entry %d0
2165 movel %a3,%d0
2167 lsrl %d1,%d0
2168 andl #PTR_TABLE_SIZE-1,%d0
2169 mmu_get_ptr_table_entry %a0,%d0
2173 movel %a3,%d0
2175 lsrl %d1,%d0
2176 andl #PAGE_TABLE_SIZE-1,%d0
2177 mmu_get_page_table_entry %a0,%d0
2201 movel %a3,%d0
2203 lsrl %d1,%d0
2204 mmu_get_root_table_entry %d0
2209 movel %a3,%d0
2210 andl #(PTR_TABLE_SIZE*PAGE_TABLE_SIZE*PAGESIZE-1)&(-ROOT_TABLE_SIZE),%d0
2241 movel %a3,%d0
2243 lsrl %d1,%d0
2244 andl #PTR_TABLE_SIZE-1,%d0
2245 mmu_get_ptr_table_entry %a0,%d0
2289 func_start mmu_fixup_page_mmu_cache,%d0/%a0
2296 movel ARG1,%d0
2298 lsrl %d1,%d0
2299 mmu_get_root_table_entry %d0
2303 movel ARG1,%d0
2305 lsrl %d1,%d0
2306 andl #PTR_TABLE_SIZE-1,%d0
2307 mmu_get_ptr_table_entry %a0,%d0
2311 movel ARG1,%d0
2313 lsrl %d1,%d0
2314 andl #PAGE_TABLE_SIZE-1,%d0
2315 mmu_get_page_table_entry %a0,%d0
2317 movel %a0@,%d0
2318 andil #_CACHEMASK040,%d0
2319 orl %pc@(m68k_pgtable_cachemode),%d0
2320 movel %d0,%a0@
2333 func_start mmu_temp_map,%d0/%d1/%a0/%a1
2344 movel ARG2,%d0
2346 lsrl %d1,%d0
2347 mmu_get_root_table_entry %d0
2351 movel %a0@,%d0
2352 cmpl %pc@(L(memory_start)),%d0
2357 movel %a1@,%d0
2359 orw #_PAGE_TABLE+_PAGE_ACCESSED,%d0
2360 movel %d0,%a0@
2363 dputn %d0
2366 andw #-ROOT_TABLE_SIZE,%d0
2367 movel %d0,%a0
2371 movel ARG2,%d0
2373 lsrl %d1,%d0
2374 andl #PTR_TABLE_SIZE-1,%d0
2375 lea %a0@(%d0*4),%a0
2380 movel %a0@,%d0
2385 movel %a1@,%d0
2389 orw #_PAGE_TABLE+_PAGE_ACCESSED,%d0
2390 movel %d0,%a0@
2393 dputn %d0
2396 andw #-PTR_TABLE_SIZE,%d0
2397 movel %d0,%a0
2401 movel ARG2,%d0
2403 lsrl %d1,%d0
2404 andl #PAGE_TABLE_SIZE-1,%d0
2405 lea %a0@(%d0*4),%a0
2410 movel ARG1,%d0
2411 andw #-PAGESIZE,%d0
2412 orw #_PAGE_PRESENT+_PAGE_ACCESSED+_PAGE_DIRTY,%d0
2413 movel %d0,%a0@
2414 dputn %d0
2420 func_start mmu_engage,%d0-%d2/%a0-%a3
2422 moveq #ROOT_TABLE_SIZE-1,%d0
2431 dbra %d0,1b
2436 movew #PAGESIZE-1,%d0
2439 dbra %d0,1b
2468 movel #TC_ENABLE+TC_PAGE4K,%d0
2469 movec %d0,%tc /* enable the MMU */
2487 movel #0x0808,%d0
2488 movec %d0,%cacr
2499 movel #0x0808,%d0
2500 movec %d0,%cacr
2515 func_start mmu_get_root_table_entry,%d0/%a1
2535 movel %a0,%d0
2536 andw #-PAGESIZE,%d0
2538 dputn %d0
2541 movel %d0,%a0@
2543 movel %d0,%a0@
2560 movew #PAGESIZE/4-1,%d0
2563 dbra %d0,1b
2571 movel ARG1,%d0
2572 lea %a0@(%d0*4),%a0
2583 func_start mmu_get_ptr_table_entry,%d0/%a1
2593 movel %a0@,%d0
2600 movel %a0@,%d0
2606 andw #7,%d0
2616 movel %a1@,%d0
2619 dputn %d0
2625 orw #_PAGE_TABLE+_PAGE_ACCESSED,%d0
2626 movel %d0,%a0@
2630 andw #-PTR_TABLE_SIZE,%d0
2631 movel %d0,%a0
2632 movel ARG2,%d0
2633 lea %a0@(%d0*4),%a0
2643 func_start mmu_get_page_table_entry,%d0/%a1
2653 movel %a0@,%d0
2665 movel ARG1,%d0
2666 andw #-(PAGESIZE/PAGE_TABLE_SIZE),%d0
2667 movel %d0,%a1
2671 moveq #PAGESIZE/PAGE_TABLE_SIZE/4-1,%d0
2675 dbra %d0,1b
2680 movel %a0@,%d0
2684 andw #-PAGE_TABLE_SIZE,%d0
2685 movel %d0,%a0
2686 movel ARG2,%d0
2687 lea %a0@(%d0*4),%a0
2701 func_start get_new_page,%d0/%a1
2714 movew #PAGESIZE/4-1,%d0
2717 dbra %d0,1b
2817 func_start serial_init,%d0/%d1/%a0/%a1
2822 * d0 = boot info offset
2826 * d0 = init data for serial port
2830 * d0 = init data for serial port
2858 moveb %a1@(LPSG_READ),%d0
2859 bset #5,%d0
2860 moveb %d0,%a1@(LPSG_WRITE)
2864 moveb %a0@,%d0
2870 movel #32,%d0
2872 subq #1,%d0
2876 2: moveb %a1@+,%d0
2878 moveb %d0,%a0@
2903 moveb %a0@(mac_scc_cha_a_ctrl_offset),%d0
2909 movel #35,%d0
2911 subq #1,%d0
2917 5: moveb %a1@+,%d0
2919 moveb %d0,%a0@(mac_scc_cha_a_ctrl_offset)
2927 7: moveb %a1@+,%d0
2929 moveb %d0,%a0@(mac_scc_cha_b_ctrl_offset)
2986 func_start serial_putc,%d0/%d1/%a0/%a1
2988 movel ARG1,%d0
2989 cmpib #'\n',%d0
2998 andw #0x00ff,%d0
2999 oriw #0x0100,%d0
3001 movew %d0,%a0@(CUSTOMBASE+C_SERDAT)
3002 1: movew %a0@(CUSTOMBASE+C_SERDATR),%d0
3003 andw #0x2000,%d0
3017 moveb %d0,%a1@(mac_scc_cha_a_data_offset)
3022 moveb %d0,%a1@(mac_scc_cha_b_data_offset)
3035 moveb %d0,%a1@(LPSG_WRITE)
3037 moveb %a1@(LPSG_READ),%d0
3038 bclr #5,%d0
3039 moveb %d0,%a1@(LPSG_WRITE)
3042 bset #5,%d0
3043 moveb %d0,%a1@(LPSG_WRITE)
3047 moveb %d0,%a1@(LSCC_DATA)
3051 moveb %d0,%a1@(LMFP_UDR)
3061 moveb %d0,M147_SCC_DATA_A
3075 moveml %d0-%d7/%a2-%a6,%sp@-
3092 moveb %d0,M162_SCC_CTRL_A
3108 moveb %d0,M167_CYTDR
3113 moveb %d0,%sp@-
3117 moveml %sp@+,%d0-%d7/%a2-%a6
3129 moveb %d0,BVME_SCC_DATA_A
3136 movel %d0,-(%sp)
3150 move.b %d0,%a0@
3160 moveb %d0,%a1@(LTHRB0)
3161 1: moveb %a1@(LSRB0),%d0
3162 andb #0x4,%d0
3179 moveb %d0,%a1@(DCADATA)
3184 moveb %d0,%a1@(APCIDATA)
3195 func_start puts,%d0/%a0
3201 console_putc %d0
3204 serial_putc %d0
3206 2: moveb %a0@+,%d0
3215 func_start putn,%d0-%d2
3219 movel ARG1,%d0
3221 1: roll #4,%d0
3222 move %d0,%d2
3252 moveml %d0/%d1/%a0,%sp@-
3260 console_putc %d0
3263 serial_putc %d0
3267 moveb %a0@+,%d0
3271 moveml %sp@+,%d0/%d1/%a0
3276 func_start set_leds,%d0/%a0
3277 movel ARG1,%d0
3281 moveb %d0,%a0@(0x1ffff)
3287 lsll #8,%d0
3288 eorw #0xff00,%d0
3289 moveb %d0,%a0@(LCPUCTRL)
3306 func_start console_init,%a0-%a4/%d0-%d7
3334 moveq #-1,%d0 /* Mac_black */
3338 movel %d0,%a1@+
3339 movel %d0,%a1@+
3365 movel %a0@(FONT_DESC_DATA),%d0
3367 addl %a1,%d0
3368 movel %d0,%a4@
3377 movel %d3,%d0 /* screen width in pixels */
3378 divul %a0@(FONT_DESC_WIDTH),%d0 /* d0 = max num chars per row */
3383 movel %d0,%a2@(Lconsole_struct_num_columns)
3400 func_start console_put_penguin,%a0-%a1/%d0-%d7
3406 movel %a0@,%d0
3407 andil #0xffff,%d0
3408 subil #64,%d0 /* snug up against the right edge */
3417 console_plot_pixel %d0,%d1,%d2
3418 addq #1,%d0
3420 console_plot_pixel %d0,%d1,%d2
3421 addq #1,%d0
3424 subil #64,%d0
3441 func_start console_scroll,%a0-%a4/%d0-%d7
3492 moveq #-1,%d0
3494 movel %d0,%a1@+
3495 movel %d0,%a1@+
3496 movel %d0,%a1@+
3497 movel %d0,%a1@+
3498 movel %d0,%a1@+
3499 movel %d0,%a1@+
3500 movel %d0,%a1@+
3501 movel %d0,%a1@+
3508 func_start console_putc,%a0/%a1/%d0-%d7
3527 movel %a0@(Lconsole_struct_cur_row),%d0
3528 addil #1,%d0
3529 movel %d0,%a0@(Lconsole_struct_cur_row)
3531 cmpl %d1,%d0
3533 subil #1,%d0
3534 movel %d0,%a0@(Lconsole_struct_cur_row)
3557 * d0 = cursor column
3562 movel %a0@(Lconsole_struct_cur_column),%d0
3565 cmpl %d1,%d0
3584 * d0 = pixel coordinate, x
3592 mulul %a0@(FONT_DESC_WIDTH),%d0
3606 console_plot_pixel %d0,%d1,%d2
3607 addq #1,%d0
3611 subl %a0@(FONT_DESC_WIDTH),%d0
3620 * d0 = x coordinate
3625 func_start console_plot_pixel,%a0-%a1/%d0-%d4
3629 movel ARG1,%d0
3636 * d0 = x coord becomes byte offset into frame buffer
3640 * d4 = temp of x (d0) for many bit depths
3645 movel %d0,%d4 /* we need the low order 3 bits! */
3646 divul #8,%d0
3647 addal %d0,%a1
3662 movel %d0,%d4 /* we need the low order 2 bits! */
3663 divul #4,%d0
3664 addal %d0,%a1
3684 movel %d0,%d4 /* we need the low order bit! */
3685 divul #2,%d0
3686 addal %d0,%a1
3714 addal %d0,%a1
3727 addal %d0,%a1
3728 addal %d0,%a1