1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Fix compilation on alpha. Pointy hat to Marcel.

This commit is contained in:
Orion Hodson 2003-02-23 01:06:58 +00:00
parent 14dd6717f8
commit 148f84cf1e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111276

View File

@ -1094,7 +1094,7 @@ emu_memalloc(struct sc_info *sc, u_int32_t sz, bus_addr_t *addr)
ofs = 0;
for (idx = start; idx < start + blksz; idx++) {
mem->bmap[idx >> 3] |= 1 << (idx & 7);
tmp = (u_int32_t)((u_int8_t *)&blk->buf_addr + ofs);
tmp = (u_int32_t)(u_long)((u_int8_t *)&blk->buf_addr + ofs);
/* printf("pte[%d] -> %x phys, %x virt\n", idx, tmp, ((u_int32_t)buf) + ofs); */
mem->ptb_pages[idx] = (tmp << 1) | idx;
ofs += EMUPAGESIZE;