ts-7000
[Top] [All Lists]

[ts-7000] Re: TS-GSM1 on TS-7260

To:
Subject: [ts-7000] Re: TS-GSM1 on TS-7260
From: "Matt Godbolt" <>
Date: Tue, 01 Aug 2006 16:29:35 -0000
>    unsigned char state;
>    unsigned char *start;
>    int fd = open("/dev/mem", O_RDWR);
>    printf("%d;",fd);
>    start = mmap(0, getpagesize(), PROT_READ|PROT_WRITE, MAP_SHARED, fd,
> BASE);

At the risk of slightly labouring the point (this has been covered
before), and with it being unlikely this is your root issue, you're
missing the O_SYNC flag from the /dev/mem which means it's possible
that you're reading the hardware via the processor's data cache (which
is out of date w.r.t. the hardware most of the time).

I don't have any further information on the modem I'm afraid, but
having been bitted by the lack of O_STAT flag I felt qualified to pipe
up on that subject at least! :)

Matt
-==-





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU