summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64/stand/libsa/pdc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hppa64/stand/libsa/pdc.c')
-rw-r--r--sys/arch/hppa64/stand/libsa/pdc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/hppa64/stand/libsa/pdc.c b/sys/arch/hppa64/stand/libsa/pdc.c
index 5ff24400bb8..252a0bd72bf 100644
--- a/sys/arch/hppa64/stand/libsa/pdc.c
+++ b/sys/arch/hppa64/stand/libsa/pdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pdc.c,v 1.2 2011/03/13 00:13:52 deraadt Exp $ */
+/* $OpenBSD: pdc.c,v 1.3 2013/03/23 16:08:28 deraadt Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -50,6 +50,7 @@
* Utah $Hdr: pdc.c 1.8 92/03/14$
*/
+#include <sys/param.h>
#include <sys/time.h>
#include "libsa.h"
#include <sys/reboot.h>
@@ -59,7 +60,6 @@
#include <machine/pdc.h>
#include <machine/iomod.h>
#include <machine/nvm.h>
-#include <machine/param.h>
#include <machine/cpufunc.h>
#include "dev_hppa64.h"
@@ -139,7 +139,7 @@ iodcstrategy(devdata, rw, blk, size, buf, rsize)
#endif
blk += dp->fsoff;
- blk <<= DEV_BSHIFT;
+ blk *= DEV_BSIZE;
if ((pzdev->pz_class & PCL_CLASS_MASK) == PCL_SEQU) {
/* rewind and re-read to seek */
if (blk < dp->last_blk) {