Ignore:
Timestamp:
Jan 29, 2018, 5:40:34 PM (6 years ago)
Author:
alain
Message:

Introduce sys_fg() , sys_display() , sys_wait() syscalls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/syscalls/sys_get_config.c

    r410 r421  
    3535int sys_get_config( uint32_t * x_size,
    3636                    uint32_t * y_size,
     37                    uint32_t * y_width,
    3738                    uint32_t * ncores )
    3839{
     
    4041    uint32_t  k_x_size;
    4142    uint32_t  k_y_size;
     43    uint32_t  k_y_width;
    4244    uint32_t  k_ncores;
    4345
     
    4850
    4951    // check buffer in user space
    50     error |= vmm_v2p_translate( false , x_size , &paddr );
    51     error |= vmm_v2p_translate( false , y_size , &paddr );
    52     error |= vmm_v2p_translate( false , ncores , &paddr );
     52    error |= vmm_v2p_translate( false , x_size  , &paddr );
     53    error |= vmm_v2p_translate( false , y_size  , &paddr );
     54    error |= vmm_v2p_translate( false , y_width , &paddr );
     55    error |= vmm_v2p_translate( false , ncores  , &paddr );
    5356
    5457        if( error )
     
    6164
    6265    // get parameters
    63         k_x_size = LOCAL_CLUSTER->x_size;
    64         k_y_size = LOCAL_CLUSTER->y_size;
    65         k_ncores = LOCAL_CLUSTER->cores_nr;
     66        k_x_size  = LOCAL_CLUSTER->x_size;
     67        k_y_size  = LOCAL_CLUSTER->y_size;
     68        k_y_width = LOCAL_CLUSTER->y_width;
     69        k_ncores  = LOCAL_CLUSTER->cores_nr;
    6670
    6771    // copy to user space
    68         hal_copy_to_uspace( x_size , &k_x_size , sizeof(uint32_t) );
    69         hal_copy_to_uspace( y_size , &k_y_size , sizeof(uint32_t) );
    70         hal_copy_to_uspace( ncores , &k_ncores , sizeof(uint32_t) );
     72        hal_copy_to_uspace( x_size  , &k_x_size  , sizeof(uint32_t) );
     73        hal_copy_to_uspace( y_size  , &k_y_size  , sizeof(uint32_t) );
     74        hal_copy_to_uspace( y_width , &k_y_width , sizeof(uint32_t) );
     75        hal_copy_to_uspace( ncores  , &k_ncores  , sizeof(uint32_t) );
    7176
    7277        return 0;
Note: See TracChangeset for help on using the changeset viewer.