Paul Menzel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/38645 )
Change subject: drivers/intel/gma/edid: Use unsigned type for count variable ......................................................................
drivers/intel/gma/edid: Use unsigned type for count variable
No real difference in the assembly though.
@@ -799,8 +799,8 @@ .string "i" .byte 0x1 .byte 0x44 - .byte 0x6 - .long 0x4d + .byte 0xf + .long 0x60 .long .LLST25 .long .LVUS25 .uleb128 0xe
Change-Id: I340a2752f955e5e4d2198a81408b3663b1488b80 Signed-off-by: Paul Menzel pmenzel@molgen.mpg.de --- M src/drivers/intel/gma/edid.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/38645/1
diff --git a/src/drivers/intel/gma/edid.c b/src/drivers/intel/gma/edid.c index 4d4aec3..7e6c840 100644 --- a/src/drivers/intel/gma/edid.c +++ b/src/drivers/intel/gma/edid.c @@ -65,7 +65,7 @@
void intel_gmbus_read_edid(u8 *mmio, u8 bus, u8 slave, u8 *edid, u32 edid_size) { - int i; + unsigned int i;
slave &= 0x7f; edid_size &= 0x1fc;
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38645 )
Change subject: drivers/intel/gma/edid: Use unsigned type for count variable ......................................................................
Patch Set 1: Code-Review+1
(1 comment)
https://review.coreboot.org/c/coreboot/+/38645/1/src/drivers/intel/gma/edid.... File src/drivers/intel/gma/edid.c:
https://review.coreboot.org/c/coreboot/+/38645/1/src/drivers/intel/gma/edid.... PS1, Line 68: unsigned int Why not u32, so as to hse the same type as edid_size?
Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38645 )
Change subject: drivers/intel/gma/edid: Use unsigned type for count variable ......................................................................
Patch Set 1: Code-Review+2
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38645 )
Change subject: drivers/intel/gma/edid: Use unsigned type for count variable ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38645/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/38645/1//COMMIT_MSG@12 PS1, Line 12: .string "i" : .byte 0x1 : .byte 0x44 : - .byte 0x6 : - .long 0x4d : + .byte 0xf : + .long 0x60 : .long .LLST25 : .long .LVUS25 : .uleb128 0xe Is this debug info? I don't get it.
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38645 )
Change subject: drivers/intel/gma/edid: Use unsigned type for count variable ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38645/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/38645/1//COMMIT_MSG@12 PS1, Line 12: .string "i" : .byte 0x1 : .byte 0x44 : - .byte 0x6 : - .long 0x4d : + .byte 0xf : + .long 0x60 : .long .LLST25 : .long .LVUS25 : .uleb128 0xe
Is this debug info? I don't get it.
It’s just to show, that the compiler is unable to take advantage of the more specific type information and generates the same code.
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/38645 )
Change subject: drivers/intel/gma/edid: Use unsigned type for count variable ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/38645/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/38645/1//COMMIT_MSG@12 PS1, Line 12: .string "i" : .byte 0x1 : .byte 0x44 : - .byte 0x6 : - .long 0x4d : + .byte 0xf : + .long 0x60 : .long .LLST25 : .long .LVUS25 : .uleb128 0xe
It’s just to show, that the compiler is unable to take advantage of the more specific type informati […]
But you show a hunk of the diff here without context. Something changed and I don't understand what. What segment is this? does it end up in the final binary?
Martin L Roth has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/38645?usp=email )
Change subject: drivers/intel/gma/edid: Use unsigned type for count variable ......................................................................
Abandoned
This patch has not been touched in over 12 months. Anyone who wants to take over work on this patch, please feel free to restore it and do any work needed to get it merged. If you create a new patch based on this work, please credit the original author.