On 08/07/12 19:30, Wolfgang Denk wrote:
Most architectures keep the global data pointer (gd) in a register.
This may, or may not be. You should not make any assumptions on how
gd is implemented.
The comment did, the code didn't, as long as gd was a pointer (which
should be a safe assumption)
Dear Leif Lindholm,
In message <50214a38.3000...@arm.com> you wrote:
> Most architectures keep the global data pointer (gd) in a register.
This may, or may not be. You should not make any assumptions on how
gd is implemented.
> When using the external app API, because they are calling us rather
Most architectures keep the global data pointer (gd) in a register.
When using the external app API, because they are calling us rather
than we calling them, this register can be corrupted.
The attached (trivial) patch saves the gd pointer at api_init(),
and restores it on every entry to syscall(
3 matches
Mail list logo