You need to sign in or sign up before continuing.
  • Y
    LoongArch: extable: Add `type` and `data` fields · 82f69454
    Youling Tang 提交于
    mainline inclusion
    from mainline-v6.2-rc1
    commit 26bc8244
    category: feature
    bugzilla: https://gitee.com/openeuler/kernel/issues/I6BWFP
    CVE: NA
    
    --------------------------------
    
    This is a LoongArch port of commit d6e2cc56 ("arm64: extable: add
    `type` and `data` fields").
    
    Subsequent patches will add specialized handlers for fixups, in addition
    to the simple PC fixup we have today. In preparation, this patch adds a
    new `type` field to struct exception_table_entry, and uses this to
    distinguish the fixup and other cases. A `data` field is also added so
    that subsequent patches can associate data specific to each exception
    site (e.g. register numbers).
    
    Handlers are named ex_handler_*() for consistency, following the example
    of x86. At the same time, get_ex_fixup() is split out into a helper so
    that it can be used by other ex_handler_*() functions in the subsequent
    patches.
    Signed-off-by: NYouling Tang <tangyouling@loongson.cn>
    Signed-off-by: NHuacai Chen <chenhuacai@loongson.cn>
    Change-Id: I95ac7a755a8a3389b63b92c1e98a851c1993c0aa
    82f69454
extable.h 1.1 KB