Ignore:
Timestamp:
Dec 10, 2008, 7:31:39 PM (16 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_read.cpp

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