I need to define a structure who's elements are unaligned(no space in between like with __attribute__((packed))) but the structure itself needs to be 4kb aligned. How do I do that?
Here's my first guess, but I don't know how to check to see if it's aligned correctly:
Code:typedef struct page_struct{ unsigned int entry[1024] __attribute__((packed)); } __attribute__((aligned(4096))) page_dir_t page_table_t;



LinkBack URL
About LinkBacks



