summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/ufsread.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/common/ufsread.c')
-rw-r--r--sys/boot/common/ufsread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/boot/common/ufsread.c b/sys/boot/common/ufsread.c
index 46a2878..8d674ae 100644
--- a/sys/boot/common/ufsread.c
+++ b/sys/boot/common/ufsread.c
@@ -28,6 +28,8 @@
#include <ufs/ufs/dinode.h>
#include <ufs/ffs/fs.h>
+#undef cgbase
+#define cgbase(fs, c) ((ufs2_daddr_t)((fs)->fs_fpg * (c)))
/*
* We use 4k `virtual' blocks for filesystem data, whatever the actual
OpenPOWER on IntegriCloud