/* * Copyright (c) 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. * * @(#)cpu.h 1.1 (Berkeley) 12/08/86 */ /* * Assorted definitions unique to TAHOE CPU support. */ #define uncache(v) mtpr(PDCS, (caddr_t)(v)) #define movow(a,w) _movow((u_short *)(a), (u_short)(w)) #define movob(a,b) _movob((u_char *)(a), (u_char)(b)) #define resettodr() /* no todr to set */ #ifndef LOCORE #ifdef KERNEL char ckey_cache[NCKEY]; /* 1 =>'s key i may be in code cache */ short ckey_cnt[NCKEY]; /* code key reference count */ char dkey_cache[NDKEY]; /* 1 =>'s key i may be in data cache */ short dkey_cnt[NDKEY]; /* data key reference count */ #endif /* * Statistics maintained for code and * data cache key allocations algorithms. */ struct keystats { long ks_allocs; /* number of keys allocated */ long ks_free; /* key allocated from free slot */ long ks_norefs; /* key marked in use, but refcnt 0 */ long ks_taken; /* key taken from single process */ long ks_shared; /* key taken from multiple processes */ }; #endif long *user_psl; /* user mode psl for ast's */ int intenable; /* interrupts enable startup flag */ int clk_enable; /* clock enable startup flag */ /* * Enable realtime clock. */ #define enablertclock() (clk_enable = 1)