From 8360e27b14ee5b754c3d0951ff35bf2b137121da Mon Sep 17 00:00:00 2001 From: Bill Schmidt Date: Mon, 18 May 2020 15:44:58 -0500 Subject: [PATCH] Fix function call sequence Fixes #102. Signed-off-by: Bill Schmidt --- specification/ch_2.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/ch_2.xml b/specification/ch_2.xml index b8a27e0..21afab8 100644 --- a/specification/ch_2.xml +++ b/specification/ch_2.xml @@ -7983,7 +7983,7 @@ nop extern void function( ); -extern void (*ptrfunc) ( ); +void (*ptrfunc) ( ); ptrfunc = function; @@ -8002,7 +8002,7 @@ ptrfunc = function; .section .text lis r11,ptrfunc@ha lis r9,function@ha -ld r9,function@l(r9) +addi r9,r9,function@l std r9,ptrfunc@l(r11) lis r12,ptrfunc@ha @@ -8043,7 +8043,7 @@ bctrl extern void function( ); -extern void (*ptrfunc) ( ); +void (*ptrfunc) ( ); ptrfunc = function; @@ -8105,7 +8105,7 @@ ld r2,24(r1) extern void function( ); -extern void (*ptrfunc) ( ); +void (*ptrfunc) ( ); ptrfunc = function; @@ -8176,7 +8176,7 @@ ld r2,24(r1) extern void function( ); -extern void (*ptrfunc) ( ); +void (*ptrfunc) ( ); ptrfunc=function;