source: trunk/hal/x86_64/hal_do_exceptions.c @ 50

Last change on this file since 50 was 48, checked in by max@…, 7 years ago

Put panics everywhere

File size: 1.6 KB
Line 
1/*
2 * hal_do_exception.c - implementation of exception handler for TSAR-MIPS32
3 *
4 * Authors  Ghassan Almaless (2008,2009,2010,2011,2012)
5 *          Alain Greiner (2016)
6 *
7 * Copyright (c) UPMC Sorbonne Universites
8 *
9 * This file is part of ALMOS-MKH.
10 *
11 * ALMOS-MKH.is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; version 2.0 of the License.
14 *
15 * ALMOS-MKH.is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 * General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with ALMOS-MKH.; if not, write to the Free Software Foundation,
22 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 */
24
25#include <hal_internal.h>
26
27#include <types.h>
28#include <task.h>
29#include <thread.h>
30#include <kdmsg.h>
31#include <pmm.h>
32#include <vmm.h>
33#include <errno.h>
34#include <scheduler.h>
35#include <cpu.h>
36#include <spinlock.h>
37#include <distlock.h>
38#include <cpu-trace.h>
39#include <cpu-regs.h>
40
41static error_t fpu_exception_handler( reg_t    * regs_tbl )
42{
43        x86_panic((char *)__func__);
44        return 0;
45}
46
47static error_t mmu_exception_handler( uint32_t   excp_code, 
48                                      uint32_t   bad_vaddr )
49{
50        x86_panic((char *)__func__);
51        return 0;
52}
53
54void hal_do_exception( thread_t * this, 
55                       gid_t      gid, 
56                       reg_t    * regs_tbl )
57{
58        x86_panic((char *)__func__);
59}
Note: See TracBrowser for help on using the repository browser.