mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 07:43:04 +01:00 
			
		
		
		
	* i8086 far data memory model fix for except_buf_size
git-svn-id: trunk@27371 -
This commit is contained in:
		
							parent
							
								
									56277b18db
								
							
						
					
					
						commit
						66d7beb7fe
					
				@ -382,11 +382,15 @@ implementation
 | 
			
		||||
*****************************************************************************}
 | 
			
		||||
 | 
			
		||||
    procedure get_exception_temps(list:TAsmList;var t:texceptiontemps);
 | 
			
		||||
     const
 | 
			
		||||
       EXCEPT_BUF_SIZE = 3*sizeof(pint);
 | 
			
		||||
     var
 | 
			
		||||
       except_buf_size: longint;
 | 
			
		||||
     begin
 | 
			
		||||
        { todo: is there a way to retrieve the except_buf_size from the size of
 | 
			
		||||
          the TExceptAddr record from the system unit (like we do for jmp_buf_size),
 | 
			
		||||
          without moving TExceptAddr to the interface part? }
 | 
			
		||||
        except_buf_size:=voidpointertype.size*2+sizeof(pint);
 | 
			
		||||
        get_jumpbuf_size;
 | 
			
		||||
        tg.GetTemp(list,EXCEPT_BUF_SIZE,sizeof(pint),tt_persistent,t.envbuf);
 | 
			
		||||
        tg.GetTemp(list,except_buf_size,sizeof(pint),tt_persistent,t.envbuf);
 | 
			
		||||
        tg.GetTemp(list,jmp_buf_size,jmp_buf_align,tt_persistent,t.jmpbuf);
 | 
			
		||||
        tg.GetTemp(list,sizeof(pint),sizeof(pint),tt_persistent,t.reasonbuf);
 | 
			
		||||
      end;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user