Ignore:
Timestamp:
Dec 10, 2008, 7:31:39 PM (15 years ago)
Author:
rosiere
Message:

Almost complete design
with Test and test platform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/Environment/Sim2OS/src/Sim2OS_service_write.cpp

    r81 r88  
    1212      }
    1313 
    14     int         fd       = (int)          arguments[1];
     14    int         fd       = static_cast<int>(reinterpret_cast<int64_t>(arguments[1]));
    1515    const void *buf      = (const void *) convert_address(arguments[2]);
    1616    ssize_t     count    = (ssize_t)      arguments[3];
     
    2222    std::cout << "\n\t***** service : write         *****"        << std::endl;
    2323    std::cout << "\tfd        : " <<             (unsigned int) fd     << std::endl;
    24     std::cout << "\tbuf       : " << std::hex << (unsigned int) buf    << std::endl;
     24    std::cout << "\tbuf       : " << std::hex << static_cast<int32_t>(reinterpret_cast<int64_t>(buf))    << std::endl;
    2525  //std::cout << "\tbuf       : " << std::dec << (char *)       buf    << std::endl;
    2626    std::cout << "\tcount     : " << std::dec << (unsigned int) count  << std::endl;
    27     std::cout << "\tresult    : " <<             (unsigned int) result << std::endl;
     27    std::cout << "\tresult    : " << static_cast<int32_t>(reinterpret_cast<int64_t>(result)) << std::endl;
    2828    std::cout << "\terrno     : " <<             (unsigned int) error  << std::endl;
    2929   
Note: See TracChangeset for help on using the changeset viewer.