source: trunk/hal/x86_64/core/hal_context.c @ 67

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

Create the core/ sub-directory for x86_64.

File size: 2.2 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
36#include <hal_internal.h>
37
38error_t hal_cpu_context_create( struct thread_s * thread )
39{
40        x86_panic((char *)__func__);
41        return 0;
42}
43
44error_t hal_cpu_context_copy( thread_t * dst,
45                              thread_t * src )
46{
47        x86_panic((char *)__func__);
48        return 0;
49}
50
51void hal_cpu_context_destroy( thread_t * thread )
52{
53        x86_panic((char *)__func__);
54}
55
56error_t hal_fpu_context_create( thread_t * thread )
57{
58        x86_panic((char *)__func__);
59        return 0;
60}
61
62error_t hal_fpu_context_copy( thread_t * dst,
63                              thread_t * src )
64{
65        x86_panic((char *)__func__);
66        return 0;
67}
68
69void hal_fpu_context_destroy( thread_t * thread )
70{
71        x86_panic((char *)__func__);
72}
73
74void hal_cpu_context_save( thread_t * thread )
75{
76        x86_panic((char *)__func__);
77}
78
79void hal_cpu_context_restore( thread_t * thread )
80{
81        x86_panic((char *)__func__);
82}
83
84void hal_cpu_context_load( thread_t * thread )
85{
86        x86_panic((char *)__func__);
87}
88
89void hal_fpu_context_save( thread_t * thread )
90{
91        x86_panic((char *)__func__);
92}
93
94void hal_fpu_context_restore( thread_t * thread )
95{
96        x86_panic((char *)__func__);
97}
98
99void hal_fpu_context_dup( xptr_t dst,
100                          xptr_t src )
101{
102        x86_panic((char *)__func__);
103}
104
Note: See TracBrowser for help on using the repository browser.