Ignore:
Timestamp:
Mar 28, 2014, 10:48:51 AM (10 years ago)
Author:
alain
Message:

Bug fix in both _tty_rx_isr() and _bdv_isr():
The ISR must do nothing it the status indicates that
there is no pending ISR.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/display/main_cma.c

    r295 r297  
    2020                      x, y, lpid, giet_proctime() );
    2121
    22     //////////////////////////////////////////
    2322    fd = giet_fat_open( "misc/images.raw", 0 );
    24     if ( fd < 0 )
    25     {
    26         giet_tty_printf("\n*** echec giet_fat_open for misc/images.raw at cycle %d\n",
    27                         giet_proctime() );
    28         giet_exit();
    29     }
    30     else
    31     {
    32         giet_tty_printf("\ngiet_fat_open completed for misc/images.raw at cycle %d\n",
    33                         giet_proctime() );
    34     }
     23    if ( fd < 0 ) giet_exit("echec giet_fat_open for misc/images.raw");
    3524
    36     ////////////////////////////////////////
     25    giet_tty_printf("\ngiet_fat_open completed for misc/images.raw at cycle %d\n",
     26                    giet_proctime() );
     27
    3728    giet_fb_cma_init( buf0, buf1, 128*128 );
    3829
     
    4233    while ( blocks_to_skip < 10 * NBLOCKS )
    4334    {
    44         ///////////////////////////////////////////////////
    4535        giet_fat_read( fd, buf0, NBLOCKS, blocks_to_skip );
    4636
     
    4838                            giet_proctime() );
    4939
    50         ///////////////////////
    5140        giet_fb_cma_write( 0 );
    5241
     
    5645        blocks_to_skip = blocks_to_skip + NBLOCKS;
    5746
    58         ///////////////////////////////////////////////////
    5947        giet_fat_read( fd, buf1, NBLOCKS, blocks_to_skip );
    6048
     
    6250                            giet_proctime() );
    6351
    64         ///////////////////////
    6552        giet_fb_cma_write( 1 );
    6653       
     
    7158    }
    7259
    73     ///////////////////
    7460    giet_fb_cma_stop();
    7561
    76     giet_tty_printf("\n*** Task display exit at cycle %d ***\n", giet_proctime());
    77 
    78     giet_exit();
     62    giet_exit("display completed");
    7963}
Note: See TracChangeset for help on using the changeset viewer.