Skip to content

Commit 1a9389c

Browse files
author
Kruti Pendharkar
committed
Change to common header file not applicable to open-vm-tools.
1 parent 91a97f2 commit 1a9389c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

open-vm-tools/lib/include/vm_basic_defs.h

+7
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,13 @@ Max(int a, int b)
331331
BYTES_2_PAGES(_size))
332332
#endif
333333

334+
#ifndef VM_PAGES_SPANNED_4KB
335+
#define VM_PAGES_SPANNED_4KB(_addr, _size) \
336+
(BYTES_2_PAGES_4KB(PAGE_OFFSET_4KB(_addr) + PAGE_OFFSET_4KB(_size) + \
337+
(PAGE_SIZE_4KB - 1)) + \
338+
BYTES_2_PAGES_4KB(_size))
339+
#endif
340+
334341
#ifndef KBYTES_SHIFT
335342
#define KBYTES_SHIFT 10
336343
#endif

0 commit comments

Comments
 (0)