|
Message-ID: <CAFYn=yCPyG1srQC6ZJu+0S1PcLtFbm0-sRxEW2JorJ8jWi5uTg@mail.gmail.com>
Date: Thu, 25 Jul 2013 19:26:03 -0400
From: Yaniv Sapir <yaniv@...pteva.com>
To: john-dev@...ts.openwall.com
Subject: Re: Katja's weekly report #6
Katja,
Here's a piece of code that will be integrated into the e-hal. It should
> ensure the completion of a host write transaction (soft ack). The idea is
> to use a destination address which is in the same endpoint as the
> data-write transactions:
>
> void e_write_ack(unsigned *addr)
> {
> unsigned probe_data;
> probe_data = (*addr); //read old data
> probe_data = ~probe_data; //toggle old data
> *addr = probe_data; //write new toggled data
> while (probe_data != *addr); //keep reading until match is met
> }
>
>
I just realized that this code is for the device side (duh!), not the host
side. But anyway, it should be straight forward to make the equivalent
e-hal version.
Yaniv.
Content of type "text/html" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.