Changeset 636 for trunk/user


Ignore:
Timestamp:
Jul 1, 2019, 9:34:16 AM (5 years ago)
Author:
alain
Message:

Fix a bug in list_remote_add_first() and list_remote_add_last() functions,
used by the physical memory allocator, that corrupted the PPM state.

Location:
trunk/user
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/fft/fft.c

    r635 r636  
    8787// parameters
    8888
    89 #define DEFAULT_M               8               // 256 data points
     89#define DEFAULT_M               12              // 4096 data points
    9090#define USE_DQT_BARRIER         0               // use DDT barrier if non zero
    9191#define MODE                    COSIN           // DATA array initialisation mode
     
    471471    // build file name
    472472    if( USE_DQT_BARRIER )
    473     snprintf( name , 64 , "fft_dqt_%d_%d_%d_%d", x_size , y_size , ncores , N );
     473    snprintf( name , 64 , "fft_dqt_%d_%d_%d", N , x_size * y_size , ncores );
    474474    else
    475     snprintf( name , 64 , "fft_smp_%d_%d_%d_%d", x_size , y_size , ncores , N );
     475    snprintf( name , 64 , "fft_smp_%d_%d_%d", N , x_size * y_size , ncores );
    476476
    477477    // build pathname
  • trunk/user/ksh/ksh.c

    r635 r636  
    66// This application implements a minimal shell for ALMOS-MKH.
    77//
    8 // This user KSH process contains two POSIX threads:
     8// This user process contains two POSIX threads:
    99// - the "main" thread contains the infinite loop implementing
    1010//   the children processes termination monitoring, using the wait() syscall.
     
    11861186        char           cmd[CMD_MAX_SIZE];               // buffer for one command
    11871187
    1188 /* 1. first direct command
     1188// 1. first direct command
    11891189if( sem_wait( &semaphore ) )
    11901190{
     
    11991199strcpy( cmd , "load bin/user/sort.elf" );
    12001200execute( cmd );
    1201 */
    1202 
    1203 
    1204 
    1205 /* 2. second direct command
     1201//
     1202
     1203
     1204
     1205// 2. second direct command
    12061206if( sem_wait( &semaphore ) )
    12071207{
     
    12161216strcpy( cmd , "load bin/user/fft.elf" );
    12171217execute( cmd );
    1218 */
     1218//
    12191219
    12201220
  • trunk/user/sort/sort.c

    r635 r636  
    5454#include <hal_macros.h>
    5555
    56 #define ARRAY_LENGTH        128        // number of items
     56#define ARRAY_LENGTH        2048       // number of items
    5757#define MAX_THREADS         1024       // 16 * 16 * 4
    5858
Note: See TracChangeset for help on using the changeset viewer.