Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 25 Jul 2013 19:26:03 -0400
From: Yaniv Sapir <>
Subject: Re: Katja's weekly report #6


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.


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.