aboutsummaryrefslogtreecommitdiff
path: root/parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'parser.y')
-rw-r--r--parser.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/parser.y b/parser.y
index 03c5ec8..ccf4726 100644
--- a/parser.y
+++ b/parser.y
@@ -212,6 +212,10 @@ Subsystem : SubsystemStart SubsystemMods
IsKernelUser ? ", KernelUser" : "",
IsKernelServer ? ", KernelServer" : "");
}
+ if (IsKernelUser || IsKernelServer) {
+ port_size = vm_offset_size;
+ port_size_in_bits = vm_offset_size_in_bits;
+ }
init_type();
}
;
@@ -237,16 +241,12 @@ SubsystemMod : syKernelUser
if (IsKernelUser)
warn("duplicate KernelUser keyword");
IsKernelUser = true;
- port_size = vm_offset_size;
- port_size_in_bits = vm_offset_size_in_bits;
}
| syKernelServer
{
if (IsKernelServer)
warn("duplicate KernelServer keyword");
IsKernelServer = true;
- port_size = vm_offset_size;
- port_size_in_bits = vm_offset_size_in_bits;
}
;