still my serial problem.
Now on 64bit.
In 32bit the size of the c structure serial_struct is 60 byte.
With #PB_Structure_AlignC I get the same size of my structure.
In Debian and Ubuntu x64 I get a size of 72 bytes with a C program
and a size of 4 for int.
In PB I get a size of 120 bytes for the same structure.
What to hell is going on there
Why is int 4 bytes inside of C ? I expected 8 and PB also uses 8 bytes for .i
Here is my structure
Code: Select all
Structure serial_struct Align #PB_Structure_AlignC
type.i
line.i
port.i
irq.i
flags.i
xmit_fifo_size.i
custom_divisor.i
baud_base.i
close_delay.u
io_type.b
reserved_char.b[1]
hub6.i
closing_wait.u
closing_wait2.u
*iomem_base
iomem_reg_shift.u
port_high.i
iomap_base.l
EndStructureAnd in x86 it works correct.
In x64 it fails.
Any ideas ?
Bernd

