diff options
author | Martin Reindl <martin@cvs.openbsd.org> | 2006-01-10 19:21:15 +0000 |
---|---|---|
committer | Martin Reindl <martin@cvs.openbsd.org> | 2006-01-10 19:21:15 +0000 |
commit | 40494cd137b5528dca4d977e038c40024d267f57 (patch) | |
tree | bacfe9c37cf8342fc1dc5e3e0ea2e4a598c1c60c | |
parent | 3b16d84227da9afc17b68c93a24b440552cf3122 (diff) |
missing cast to vaddr_t
-rw-r--r-- | sys/arch/hppa64/hppa64/machdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/hppa64/hppa64/machdep.c b/sys/arch/hppa64/hppa64/machdep.c index b76467dfe09..29c22f24a4a 100644 --- a/sys/arch/hppa64/hppa64/machdep.c +++ b/sys/arch/hppa64/hppa64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.3 2005/10/26 18:35:45 martin Exp $ */ +/* $OpenBSD: machdep.c,v 1.4 2006/01/10 19:21:14 martin Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -314,7 +314,8 @@ TODO hpmc/toc/pfr bzero(buf, nbuf * sizeof(struct buf)); /* space has been reserved in pmap_bootstrap() */ - msgbufp = (struct msgbuf *)(ptoa(physmem) - round_page(MSGBUFSIZE)); + msgbufp = (struct msgbuf *)((vaddr_t)ptoa(physmem) - + round_page(MSGBUFSIZE)); initmsgbuf((caddr_t)msgbufp, round_page(MSGBUFSIZE)); msgbufmapped = 1; |