m32r: subtract textlen instead of adding in function m32r_flat_get_addr_from_rp
PATCH 1/1 m32r: subtract textlen instead of adding in function m32r_flat_get_addr_from_rp
This patch fixes the message stating in this function to substract textlen for return value of case FLAT_M32R_LO16_DATA in the switch statement for this function.
Signed-off-by Nicholas Krause <[email protected]>
--- arch/m32r/include/asm/flat.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
arch/m32r/include/asm/flat.h +1 -3
@@ -83,10 +83,8 @@ static inline unsigned long m32r_flat_get_addr_from_rp (unsigned long *rp,case FLAT_M32R_LO16 :return htonl (*rp) &0xFFFF ;case FLAT_M32R_LO16_DATA : -/* FIXME: The return value will decrease by textlen -at m32r_flat_put_addr_at_rp () */ textlen_for_m32r_lo16_data = textlen; -return (htonl (*rp) &0xFFFF ) + textlen; +return (htonl (*rp) &0xFFFF ) - textlen;case FLAT_M32R_16 :return htons (*(unsigned short *)rp) &0xFFFF ;case FLAT_M32R_24 :
Signature · 1 line
1.9.1