diff options
| author | Cameron Grant <cg@FreeBSD.org> | 2000-04-18 19:11:38 +0000 |
|---|---|---|
| committer | Cameron Grant <cg@FreeBSD.org> | 2000-04-18 19:11:38 +0000 |
| commit | 19b6ac092eee4d212698f01d15b048311e73c6b2 (patch) | |
| tree | c8253b6ce17f2e0f3e8b8db2be465f4dccdfc4b8 | |
| parent | 83a15ece20976b929bcc6eeb9a78ed9275691d4a (diff) | |
Notes
| -rw-r--r-- | sys/dev/sound/pci/emu10k1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sound/pci/emu10k1.c b/sys/dev/sound/pci/emu10k1.c index cb87c450a4a4..7b8670c4a267 100644 --- a/sys/dev/sound/pci/emu10k1.c +++ b/sys/dev/sound/pci/emu10k1.c @@ -791,7 +791,7 @@ emu_memalloc(struct sc_info *sc, u_int32_t sz) mem->bmap[idx >> 3] |= 1 << (idx & 7); tmp = (u_int32_t)vtophys((u_int8_t *)buf + ofs); /* printf("pte[%d] -> %x phys, %x virt\n", idx, tmp, ((u_int32_t)buf) + ofs); */ - mem->ptb_pages[idx] = (tmp << 1);/* | idx;*/ + mem->ptb_pages[idx] = (tmp << 1) | idx; ofs += EMUPAGESIZE; } SLIST_INSERT_HEAD(&mem->blocks, blk, link); @@ -1040,7 +1040,7 @@ emu_init(struct sc_info *sc) bzero(sc->mem.silent_page, EMUPAGESIZE); tmp = (u_int32_t)vtophys(sc->mem.silent_page) << 1; for (i = 0; i < MAXPAGES; i++) - sc->mem.ptb_pages[i] = tmp; + sc->mem.ptb_pages[i] = tmp | i; emu_wrptr(sc, 0, PTB, vtophys(sc->mem.ptb_pages)); emu_wrptr(sc, 0, TCB, 0); /* taken from original driver */ |
