diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-10-30 15:36:33 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-10-30 15:36:33 +0000 |
commit | fd05125e3ec4fab9284b606d45a68a018d77627e (patch) | |
tree | 1347446338835bb3641acba17d5c913225255260 /sys/dev/usb/if_run.c | |
parent | 62811e7f886358e9487f8b47fb1e6cc694d39e28 (diff) |
fix a 10 year old bug in the memory allocator, which affected only sparc.
sparc has 4 byte long, but needs 8 byte alignment. recently the DIR
struct was changed to contain some off_t, which needs 8 byte alignment.
turns out the allocator calculated the bias for alignment, and then
subtracted out it's private linkage storage afterwards. on hppa this
worked because a 8-byte object can be loaded at a 4-byte boundary; on
all other architectures the situation was either 4/4 or 8/8.
thanks for a bit of help from drahn
Diffstat (limited to 'sys/dev/usb/if_run.c')
0 files changed, 0 insertions, 0 deletions