• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 Institute of Parallel And Distributed Systems (IPADS), Shanghai Jiao Tong University (SJTU)
3  * Licensed under the Mulan PSL v2.
4  * You can use this software according to the terms and conditions of the Mulan PSL v2.
5  * You may obtain a copy of Mulan PSL v2 at:
6  *     http://license.coscl.org.cn/MulanPSL2
7  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
8  * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
9  * PURPOSE.
10  * See the Mulan PSL v2 for more details.
11  */
12 #ifndef MM_EXTABLE_H
13 #define MM_EXTABLE_H
14 
15 #include <common/types.h>
16 
17 struct exception_table_entry {
18     vaddr_t insn, fixup;
19 };
20 
21 extern struct exception_table_entry *_extable_start;
22 extern struct exception_table_entry *_extable_end;
23 
24 const struct exception_table_entry *search_extable(vaddr_t addr);
25 
26 bool fixup_exception(vaddr_t address, vaddr_t *fix_addr);
27 
28 #endif /* MM_EXTABLE_H */