The driver is modified to add FreeBSD OS type in the upper nibble of the
fault/reset reason code for appropriate qualification of the reason code.
Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
| sys/dev/mpi3mr/mpi3mr.c | ||
|---|---|---|
| 1182โ1185 | As I see, ioc_num is 8 bit, so I worry that shifting it by 20 bits may result in undefined behavior. BTW why 20 if reset_reason is 16 bit? | |
| sys/dev/mpi3mr/mpi3mr.c | ||
|---|---|---|
| 1182โ1185 | If the LHS is 8 bits variable or if the value of ioc_num itself is assigned after shifting its value by 20 bits, then there would be an | |