Re: [PATCH v2] sh: prefer _THIS_IP_ to current_text_addr
From: Andrew Morton
Date: Wed Aug 01 2018 - 17:55:36 EST
On Wed, 1 Aug 2018 11:53:31 -0700 Nick Desaulniers <ndesaulniers@xxxxxxxxxx> wrote:
> As part of the effort to reduce the code duplication between _THIS_IP_
> and current_text_addr(), let's consolidate callers of
> current_text_addr() to use _THIS_IP_.
Why not switch everything to current_text_addr()? _THIS_IP_ is ugly ;)
Several architectures (s390, sparc, sh, ...) do funky things in their
current_text_addr(). Does the generic kernel.h implementation of
current_text_addr() work OK on those architectures?