source: trunk/hal/x86_64/hal_context.c @ 31

Last change on this file since 31 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: 1.9 KB
Line 
1/*
2 * hal_context.c - implementation of Thread Context API for TSAR-MIPS32
3 *
4 * Author  Alain Greiner    (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 <hal_types.h>
25#include <memcpy.h>
26#include <thread.h>
27#include <string.h>
28#include <process.h>
29#include <printk.h>
30#include <vmm.h>
31#include <core.h>
32#include <cluster.h>
33
34#include <hal_context.h>
35
36error_t hal_cpu_context_create( struct thread_s * thread )
37{
38    return 0;
39}
40
41error_t hal_cpu_context_copy( thread_t * dst,
42                              thread_t * src )
43{
44    return 0;
45}
46
47void hal_cpu_context_destroy( thread_t * thread )
48{
49
50
51}
52
53error_t hal_fpu_context_create( thread_t * thread )
54{
55    return 0;
56}
57
58error_t hal_fpu_context_copy( thread_t * dst,
59                              thread_t * src )
60{
61    return 0;
62}
63
64void hal_fpu_context_destroy( thread_t * thread )
65{
66
67}
68
69void hal_cpu_context_save( thread_t * thread )
70{
71
72}
73 
74void hal_cpu_context_restore( thread_t * thread )
75{
76
77}
78
79void hal_cpu_context_load( thread_t * thread )
80{
81
82}
83
84void hal_fpu_context_save( thread_t * thread )
85{
86
87}
88
89void hal_fpu_context_restore( thread_t * thread )
90{
91
92}
93
94void hal_fpu_context_dup( xptr_t dst,
95                          xptr_t src )
96{
97
98}
99
Note: See TracBrowser for help on using the repository browser.