source: trunk/hal/x86_64/hal_arch.c @ 44

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

First shot of the x86_64 port. It uses Multiboot V1. Most of the HAL functions
are empty, and several TSAR-specific files and comments remain; they will be
cleaned up later. The Makefile and LD script will come in another commit.

File size: 2.0 KB
RevLine 
[25]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
36static void cpu_default_irq_handler(struct irq_action_s *action)
37{
38
39}
40
41error_t arch_cpu_init( core_t * core )
42{
43        return 0;
44}
45
46error_t arch_cpu_set_irq_entry( core_t   * core,
47                                uint32_t   irq_nr,
48                                struct irq_action_s *action )
49{
50        return 0;
51}
52
53error_t arch_cpu_get_irq_entry( core_t   * core,
54                                uint32_t   irq_nr,
55                                struct irq_action_s **action)
56{
57        return 0;
58}
59       
60error_t arch_set_power_state( core_t * core,
61                              arch_power_state_t state)
62{
63        return 0;
64}
65
66sint_t arch_barrier_init(struct cluster_s *cluster, struct event_s *event, uint_t count)
67{
68        return 0;
69}
70
71sint_t arch_barrier_wait(struct cluster_s *cluster, uint_t barrier_id)
72{
73        return 0;
74}
75
76error_t arch_barrier_destroy(struct cluster_s *cluster, uint_t barrier_id)
77{
78        return 0;
79}
80
81error_t hal_send_ipi( cxy_t    cxy,
82                      lid_t    lid, 
83                      uint32_t val )
84{
85        return 0;
86}
Note: See TracBrowser for help on using the repository browser.