diff options
author | gallatin <gallatin@FreeBSD.org> | 2001-10-20 21:05:14 +0000 |
---|---|---|
committer | gallatin <gallatin@FreeBSD.org> | 2001-10-20 21:05:14 +0000 |
commit | d9b89a94d8f1dd075b6beef41c238b2d7b6571cb (patch) | |
tree | b048eaa7a4b0109bea163f71d7f603cefd7001c7 /sys/alpha/pci/t2.c | |
parent | 6142cabba696919546cbbbb627926db7d4d84738 (diff) | |
download | FreeBSD-src-d9b89a94d8f1dd075b6beef41c238b2d7b6571cb.zip FreeBSD-src-d9b89a94d8f1dd075b6beef41c238b2d7b6571cb.tar.gz |
- splhigh()/splx() -> critical_enter()/critical_exit()
- fix KV macro in t2_pci.c to include the sable_lynx_base variable
so that the T2 CSRs can be found on lynxes. Current should be
bootable on lynxes now.
Diffstat (limited to 'sys/alpha/pci/t2.c')
-rw-r--r-- | sys/alpha/pci/t2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/alpha/pci/t2.c b/sys/alpha/pci/t2.c index dcd9ec4..c8ade0c 100644 --- a/sys/alpha/pci/t2.c +++ b/sys/alpha/pci/t2.c @@ -118,14 +118,14 @@ t2_set_hae_mem(void *arg, u_int32_t pa) msb = pa & 0xf8000000; pa -= msb; msb >>= 27; /* t2 puts high bits in the bottom of the register */ - s = splhigh(); + s = critical_enter(); if (msb != t2_hae_mem[hose]) { t2_hae_mem[hose] = msb; t2_csr[hose]->hae0_1 = t2_hae_mem[hose]; alpha_mb(); t2_hae_mem[hose] = t2_csr[hose]->hae0_1; } - splx(s); + critical_exit(s); } return pa; } |