Don't leave Value32 uinitialized (as it's not completely filled)
authorMagliano Andrea <masterblaster@tiscali.it>
Tue, 1 Mar 2011 07:42:05 +0000 (08:42 +0100)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 27 Mar 2011 10:34:00 +0000 (18:34 +0800)
commitd2f2ef3a8fdb729f771e0512efa0b61b4b2287d3
treed1f0dc77eb9099c6ba43edf86ea6a275e2dbbe71
parentc45bda476170608730a57d2008e0c429d75f5a0a
Don't leave Value32 uinitialized (as it's not completely filled)

OsdHardware.c:AcpiOsReadPort() casts Value to (u_int8_t *) resp.
(u_int16_t *) when assigning, thus leaving the upper region of Value32
untouched. If Value32 isn't initialized, random data remains trashing
the whole value.

Without this every bus_space_read_[12] is virtually screwed up.
sys/contrib/dev/acpica-unix/executer/exregion.c