diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-02-12 17:14:23 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-02-13 00:42:36 +0100 |
commit | a391c8f0eef8573fd6b99e6cd264a5f2caa539cb (patch) | |
tree | 4e0835b958dcd51a59ab5a1bf652dec4ea2c544a /parser.y | |
parent | 403007dc55222d4ca1120dd7730baa7579d12d88 (diff) | |
download | mig-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.y | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } ; |