Changeset f4b961f in mainline


Ignore:
Timestamp:
2006-06-06T17:07:57Z (19 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d1c4b9e
Parents:
f1249e1
Message:

Unaligned userspace test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipcc/ipcc.c

    rf1249e1 rf4b961f  
    6161        printf("j - jump to endless loop\n");
    6262        printf("p - page fault\n");
     63        printf("u - unaligned read\n");
    6364}
    6465
     
    177178}
    178179
     180
     181
    179182int main(void)
    180183{
     
    183186        char c;
    184187        int res;
    185 
     188        volatile long long var;
     189        volatile int var1;
     190       
    186191        printf("********************************\n");
    187192        printf("***********IPC Tester***********\n");
     
    229234                        *((char *)0) = 1;
    230235                        printf("done\n");
    231                 }
    232         }
    233 }
     236                case 'u':
     237                        var1=*( (int *) ( ( (char *)(&var) ) + 1 ) );
     238                        break;
     239                }
     240        }
     241}
Note: See TracChangeset for help on using the changeset viewer.