Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Struct parsing produces incorrect size for structs containing conditional defines #2

Open
jkehne opened this issue Oct 8, 2013 · 0 comments

Comments

@jkehne
Copy link
Member

jkehne commented Oct 8, 2013

When parsing a C struct containing conditional #defines in its definition, idl4 will calculate the struct's size to be 4 bytes larger than it actually is. If such a struct is used as a parameter in an interface, this will result in all parameters following that struct to be skewed by one MR (the stub code will copy the correct payload, but set the number of untyped words in the message one too high).
This affects all L4 system structs containing the __PLUS32-macro from l4/types.h (e.g. L4_ThreadId_t).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant