source: trunk/hal/x86_64/core/hal_arch.c @ 51

Last change on this file since 51 was 51, checked in by max@…, 5 years ago

Create the core/ sub-directory for x86_64.

File size: 2.3 KB
Line 
1/*
2 * hal_arch.c - General purpose code for x86.
3 *
4 * Authors   Maxime Villard  (2016)
5 *
6 * Copyright (c) UPMC Sorbonne Universites
7 *
8 * This file is part of ALMOS-MKH.
9 *
10 * ALMOS-MKH.is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; version 2.0 of the License.
13 *
14 * ALMOS-MKH.is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 * General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with ALMOS-MKH.; if not, write to the Free Software Foundation,
21 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23
24#include <errno.h>
25#include <types.h>
26#include <thread.h>
27#include <core.h>
28#include <system.h>
29#include <kmem.h>
30#include <chdev.h>
31#include <cluster.h>
32#include <soclib_xicu.h>
33#include <kdmsg.h>
34#include <arch.h>
35
36#include <hal_internal.h>
37
38static void cpu_default_irq_handler(struct irq_action_s *action)
39{
40        x86_panic((char *)__func__);
41}
42
43error_t arch_cpu_init( core_t * core )
44{
45        x86_panic((char *)__func__);
46        return 0;
47}
48
49error_t arch_cpu_set_irq_entry( core_t   * core,
50                                uint32_t   irq_nr,
51                                struct irq_action_s *action )
52{
53        x86_panic((char *)__func__);
54        return 0;
55}
56
57error_t arch_cpu_get_irq_entry( core_t   * core,
58                                uint32_t   irq_nr,
59                                struct irq_action_s **action)
60{
61        x86_panic((char *)__func__);
62        return 0;
63}
64       
65error_t arch_set_power_state( core_t * core,
66                              arch_power_state_t state)
67{
68        x86_panic((char *)__func__);
69        return 0;
70}
71
72sint_t arch_barrier_init(struct cluster_s *cluster, struct event_s *event, uint_t count)
73{
74        x86_panic((char *)__func__);
75        return 0;
76}
77
78sint_t arch_barrier_wait(struct cluster_s *cluster, uint_t barrier_id)
79{
80        x86_panic((char *)__func__);
81        return 0;
82}
83
84error_t arch_barrier_destroy(struct cluster_s *cluster, uint_t barrier_id)
85{
86        x86_panic((char *)__func__);
87        return 0;
88}
89
90error_t hal_send_ipi( cxy_t    cxy,
91                      lid_t    lid, 
92                      uint32_t val )
93{
94        x86_panic((char *)__func__);
95        return 0;
96}
Note: See TracBrowser for help on using the repository browser.