Home
last modified time | relevance | path

Searched hist:"543128771 c59e9f1ee91c245d342e929d5ba7fa1" (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/include/drivers/arm/
H A Dsp804_delay_timer.h543128771c59e9f1ee91c245d342e929d5ba7fa1 Mon Sep 28 15:32:38 UTC 2015 Sandrine Bailleux <sandrine.bailleux@arm.com> Bug fix in the SP804 dual timer driver

The generic delay timer driver expects a pointer to a timer_ops_t
structure containing the specific timer driver information. It
doesn't make a copy of the structure, instead it just keeps the
pointer. Therefore, this pointer must remain valid over time.

The SP804 driver doesn't satisfy this requirement. The
sp804_timer_init() macro creates a temporary instanciation of the
timer_ops_t structure on the fly and passes it to the generic
delay timer. When this temporary instanciation gets deallocated,
the generic delay timer is left with a pointer to invalid data.

This patch fixes this bug by statically allocating the SP804
timer_ops_t structure.

Change-Id: I8fbf75907583aef06701e3fd9fabe0b2c9bc95bf