sparc32 have real trap_init() implementation
but the __init marker is missing, so add it to these three platforms.
Signed-off-by: Jisheng Zhang
---
Since v1:
- add __init marker to trap_init() for alpha, microblaze and sparc32
- adjust the generic weak NOP trap_init() location to make it sits with
On Wed, 14 Apr 2021 17:27:57 +0800
Jisheng Zhang wrote:
> CAUTION: Email originated externally, do not click links or open attachments
> unless you recognize the sender and know the content is safe.
>
>
> On Wed, 14 Apr 2021 11:10:42 +0200
> Christophe Leroy wrote:
>
&g
On Wed, 14 Apr 2021 11:10:42 +0200
Christophe Leroy wrote:
>
> Le 14/04/2021 à 10:58, Jisheng Zhang a écrit :
> > Many architectures implement the trap_init() as NOP, since there is
> > no such default for trap_init(), this empty stub is duplicated among
> > these
Many architectures implement the trap_init() as NOP, since there is
no such default for trap_init(), this empty stub is duplicated among
these architectures. Provide a generic but weak NOP implementation
to drop the empty stubs of trap_init() in these architectures.
Signed-off-by: Jisheng Zhang
en we may only compile stuff on a very few arches.
>
> Lets cast this multiply to u64 type which prevents overflow.
Reviewed-by: Jisheng Zhang
>
> Tested-by: Vineet Gupta
> Reported-by: Vineet Gupta # ARC STAR 9001306872
> HSDK, sdio: board crashes when copying big f
On Mon, 26 Feb 2018 20:27:22 + Alexey Brodkin wrote:
> Hi Andy,
>
> On Mon, 2018-02-26 at 20:30 +0200, Andy Shevchenko wrote:
> > On Mon, Feb 26, 2018 at 7:14 PM, Evgeniy Didin
> > wrote:
> > > On Mon, 2018-02-26 at 18:53 +0200, Andy Shevchenko wrote:
> > > > On Mon, Feb 26, 2018 at 5:14
On Mon, 26 Feb 2018 17:34:11 +0300 Evgeniy Didin wrote:
> For some 32-bit architectures calculation of DTO and STO timeout can be
> incorrect
> due to multiply overflow. Lets prevent this by casting multiply and result to
> u64.
>
> Suggested by Jisheng Zhang.
> Switch
On Thu, 22 Feb 2018 16:34:18 +0300 Evgeniy Didin wrote:
> In commit 9d9491a7da2a ("mmc: dw_mmc: Fix the DTO timeout calculation") have
> been made
> changes which cause multiply overflow for 32-bit systems.
> The broken timeout calculations caused false interrupt latency warnings
> and stacktrace