From 94b38efc1d80ae2854d29af44c6d5918a2cb40cd Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 5 Jan 2017 14:16:07 +0100 Subject: sys: allow to specify number of pages for vma type Allows to write vma[4] or vma[5-10] to specify desired number of pages. --- sys/decl.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/decl.go') diff --git a/sys/decl.go b/sys/decl.go index 63fca61b7..322158b92 100644 --- a/sys/decl.go +++ b/sys/decl.go @@ -143,6 +143,8 @@ func (t *BufferType) Align() uintptr { type VmaType struct { TypeCommon + RangeBegin int64 // in pages + RangeEnd int64 } func (t *VmaType) Size() uintptr { -- cgit mrf-deployment