File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -89,10 +89,10 @@ def __init__(self):
89
89
self .MODULES_VADDR = self ._PAGE_END (self .VA_BITS_MIN )
90
90
self .MODULES_END = self .MODULES_VADDR + self .MODULES_VSIZE
91
91
92
- self .VMEMMAP_SHIFT = (self .PAGE_SHIFT - self .STRUCT_PAGE_MAX_SHIFT )
93
- self .VMEMMAP_SIZE = (( self ._PAGE_END ( self . VA_BITS_MIN ) - self .PAGE_OFFSET ) >> self .VMEMMAP_SHIFT )
94
- self .VMEMMAP_START = (- (1 << ( self . VA_BITS - self . VMEMMAP_SHIFT ) )) & 0xffffffffffffffff
95
- self .VMEMMAP_END = self .VMEMMAP_START + self .VMEMMAP_SIZE
92
+ self .VMEMMAP_RANGE = self . _PAGE_END (self .VA_BITS_MIN ) - self .PAGE_OFFSET
93
+ self .VMEMMAP_SIZE = (self .VMEMMAP_RANGE >> self .PAGE_SHIFT ) * self .struct_page_size
94
+ self .VMEMMAP_END = (- (1 * 1024 * 1024 * 1024 )) & 0xffffffffffffffff
95
+ self .VMEMMAP_START = self .VMEMMAP_END - self .VMEMMAP_SIZE
96
96
97
97
self .VMALLOC_START = self .MODULES_END
98
98
self .VMALLOC_END = self .VMEMMAP_START - 256 * 1024 * 1024
You can’t perform that action at this time.
0 commit comments