Limit the device field to 5 bits.

The field device in PCI_ADDRESS only takes 5 bits. So if the device number is
more than 32, it will truncated to 5 bits. Before this patch, other pci devices
will be incorrectly probed as processor node.

Change-Id: I64dcd4f4fda7b7080a9905dce580feb829584b94
Signed-off-by: Zheng Bao <>
Signed-off-by: zbao <>
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <>
Reviewed-by: Anton Kochkov <>
1 file changed