Example #1
0
static int WriteMemory( PTR386 *addr, unsigned long req, void *buf )
{
    if( IsProtSeg( addr->selector ) ) {
        return( dbg_pwrite( addr, req, buf ) );
    } else {
        return( dbg_rwrite( RealAddr( addr ), req, buf ) );
    }
}
Example #2
0
//OBSOLETE - use ReqMachine_data
unsigned ReqAddr_info()
{
    addr_info_req       *acc;
    addr_info_ret       *ret;

    _DBG(("AccAddrInfo\r\n"));
    acc = GetInPtr( 0 );
    ret = GetOutPtr( 0 );
    ret->is_32 = IsProtSeg( acc->in_addr.segment );
    return( sizeof( *ret ) );
}
Example #3
0
//OBSOLETE - use ReqMachine_data
trap_retval ReqAddr_info( void )
{
    addr_info_req       *acc;
    addr_info_ret       *ret;

    _DBG(("AccAddrInfo\r\n"));
    acc = GetInPtr( 0 );
    ret = GetOutPtr( 0 );
    ret->is_big = IsProtSeg( acc->in_addr.segment );
    return( sizeof( *ret ) );
}
Example #4
0
unsigned ReqMachine_data()
{
    machine_data_req    *acc;
    machine_data_ret    *ret;
    unsigned_8          *data;

    acc = GetInPtr( 0 );
    ret = GetOutPtr( 0 );
    data = GetOutPtr( sizeof( *ret ) );
    ret->cache_start = 0;
    ret->cache_end = ~(addr_off)0;
    *data = IsProtSeg( acc->addr.segment ) ? X86AC_BIG : 0;
    return( sizeof( *ret ) + sizeof( *data ) );
}