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_open.cpp

    r81 r88  
    1313   
    1414    const char *pathname = (const char *) convert_address(arguments[1]);
    15     int         flags    = (int)          arguments[2];
    16     mode_t      mode     = (mode_t)       arguments[3];
     15    int         flags    = static_cast<int   >(reinterpret_cast<int64_t>(arguments[2]));
     16    mode_t      mode     = static_cast<mode_t>(reinterpret_cast<int64_t>(arguments[3]));
    1717    void *      result   = (void *)       open(pathname,flags,mode);
    1818    error                = errno;
     
    2626    std::cout << "\tmode  /10 : " << std::dec << (unsigned int) mode     << std::endl;
    2727    std::cout << "\tmode  /16 : " << std::hex << (unsigned int) mode     << std::endl;
    28     std::cout << "\tresult    : " << std::dec << (unsigned int) result  << std::endl;
     28    std::cout << "\tresult    : " << static_cast<int32_t>(reinterpret_cast<int64_t>(result)) << std::endl;
    2929    std::cout << "\terrno     : " <<             (unsigned int) error    << std::endl;
    3030   
Note: See TracChangeset for help on using the changeset viewer.