[PATCH] HSD #1508031235-1: Override udelay for secure section
Marek Vasut
marex at denx.de
Mon May 9 13:17:10 CEST 2022
On 5/9/22 06:59, dinesh.maniyam at intel.com wrote:
Drop the HSD from subject, use ARM: socfpga: tags .
[...]
> +__always_inline void __udelay(unsigned long usec)
> +{
> + /* get current timestamp */
> + u64 tmp = __get_time_stamp() + __usec_to_tick(usec);
> +
> + while (__get_time_stamp() < tmp + 1) /* loop till event */
> + ;
Please handle wrap-around here.
More information about the U-Boot
mailing list