aboutsummaryrefslogtreecommitdiff
path: root/parser.y
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-02-12 17:14:23 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-13 00:42:36 +0100
commita391c8f0eef8573fd6b99e6cd264a5f2caa539cb (patch)
tree4e0835b958dcd51a59ab5a1bf652dec4ea2c544a /parser.y
parent403007dc55222d4ca1120dd7730baa7579d12d88 (diff)
downloadmig-a391c8f0eef8573fd6b99e6cd264a5f2caa539cb.tar.gz
mig-a391c8f0eef8573fd6b99e6cd264a5f2caa539cb.tar.bz2
mig-a391c8f0eef8573fd6b99e6cd264a5f2caa539cb.zip
Introduce complex_alignof to replace word_size
Remove the concept of word_size since it is meaningless in some architectures. This is also done in preparation to possibly introduce 8-byte aligned messages. Message-Id: <Y+lkv0uMo/3+hbCb@jupiter.tail36e24.ts.net>
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;
}
;