Hi, guys hptiop driver in the 7.1 release has a little bug. Because this issue the Raid-manage GUI program which we provided can NOT work anymore.
So we give the patch: Index: hptiop.h =================================================================== --- hptiop.h (revision 186851) +++ hptiop.h (working copy) @@ -260,7 +260,7 @@ unsigned long lpOutBuffer; /* output data buffer */ u_int32_t nOutBufferSize; /* size of output data buffer */ unsigned long lpBytesReturned; /* count of HPT_U8s returned */ -}; +}__attribute__((packed)); #define HPT_IOCTL_FLAG_OPEN 1 #define HPT_CTL_CODE_BSD_TO_IOP(x) ((x)-0xff00) ==================================================================== -wsw /************************************************************************/ 大家好: hptiop的驱动在7.1发行版中有个小错误。 这个小错误导致了我们提供的阵列管理程序无法运行。 我们给出了补丁: Index: hptiop.h =================================================================== --- hptiop.h (revision 186851) +++ hptiop.h (working copy) @@ -260,7 +260,7 @@ unsigned long lpOutBuffer; /* output data buffer */ u_int32_t nOutBufferSize; /* size of output data buffer */ unsigned long lpBytesReturned; /* count of HPT_U8s returned */ -}; +}__attribute__((packed)); #define HPT_IOCTL_FLAG_OPEN 1 #define HPT_CTL_CODE_BSD_TO_IOP(x) ((x)-0xff00) ==================================================================== -wsw
_______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"