Blame view

kernel/linux-imx6_3.14.28/arch/mn10300/mm/extable.c 705 Bytes
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  /* MN10300 In-kernel exception handling
   *
   * Copyright (C) 2007 Matsushita Electric Industrial Co., Ltd.
   * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
   *
   * This program is free software; you can redistribute it and/or
   * modify it under the terms of the GNU General Public Licence
   * as published by the Free Software Foundation; either version
   * 2 of the Licence, or (at your option) any later version.
   */
  #include <linux/module.h>
  #include <linux/spinlock.h>
  #include <asm/uaccess.h>
  
  int fixup_exception(struct pt_regs *regs)
  {
  	const struct exception_table_entry *fixup;
  
  	fixup = search_exception_tables(regs->pc);
  	if (fixup) {
  		regs->pc = fixup->fixup;
  		return 1;
  	}
  
  	return 0;
  }