| 
                Last change
                  on this file since 27 was
                  25,
                  checked in by max@…, 8 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.1 KB
           | 
      
      
        
  | Line |   | 
|---|
| 1 | /* | 
|---|
| 2 |  * cpu-regs.h - mips register map | 
|---|
| 3 |  *  | 
|---|
| 4 |  * Copyright (c) 2008,2009,2010,2011,2012 Ghassan Almaless | 
|---|
| 5 |  * Copyright (c) 2011,2012 UPMC Sorbonne Universites | 
|---|
| 6 |  *  | 
|---|
| 7 |  * This file is part of ALMOS-kernel. | 
|---|
| 8 |  * | 
|---|
| 9 |  * ALMOS-kernel is free software; you can redistribute it and/or modify it | 
|---|
| 10 |  * under the terms of the GNU General Public License as published by | 
|---|
| 11 |  * the Free Software Foundation; version 2.0 of the License. | 
|---|
| 12 |  * | 
|---|
| 13 |  * ALMOS-kernel is distributed in the hope that it will be useful, but | 
|---|
| 14 |  * WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 15 |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | 
|---|
| 16 |  * General Public License for more details. | 
|---|
| 17 |  * | 
|---|
| 18 |  * You should have received a copy of the GNU General Public License | 
|---|
| 19 |  * along with ALMOS-kernel; if not, write to the Free Software Foundation, | 
|---|
| 20 |  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | 
|---|
| 21 |  */ | 
|---|
| 22 |  | 
|---|
| 23 | #ifndef _HAL_KENTRY_H_ | 
|---|
| 24 | #define _HAL_KENTRY_H_ | 
|---|
| 25 |  | 
|---|
| 26 | #define      KSP          0 | 
|---|
| 27 | #define      AT           1 | 
|---|
| 28 | #define      V0           2 | 
|---|
| 29 | #define      V1           3 | 
|---|
| 30 | #define      A0           4  | 
|---|
| 31 | #define      A1           5 | 
|---|
| 32 | #define      A2           6 | 
|---|
| 33 | #define      A3           7 | 
|---|
| 34 | #define      T0           8 | 
|---|
| 35 | #define      T1           9 | 
|---|
| 36 | #define      T2           10 | 
|---|
| 37 | #define      T3           11 | 
|---|
| 38 | #define      T4           12 | 
|---|
| 39 | #define      T5           13 | 
|---|
| 40 | #define      T6           14 | 
|---|
| 41 | #define      T7           15 | 
|---|
| 42 | #define      T8           16 | 
|---|
| 43 | #define      T9           17 | 
|---|
| 44 | #define      S0           18 | 
|---|
| 45 | #define      S1           19 | 
|---|
| 46 | #define      S2           20 | 
|---|
| 47 | #define      S3           21 | 
|---|
| 48 | #define      S4           22 | 
|---|
| 49 | #define      S5           23 | 
|---|
| 50 | #define      S6           24 | 
|---|
| 51 | #define      S7           25 | 
|---|
| 52 | #define      S8           26 | 
|---|
| 53 | #define      GP           27 | 
|---|
| 54 | #define      RA           28 | 
|---|
| 55 | #define      EPC          29 | 
|---|
| 56 | #define      CR           30 | 
|---|
| 57 | #define      SP           31 | 
|---|
| 58 | #define      SR           32 | 
|---|
| 59 | #define      LO           33 | 
|---|
| 60 | #define      HI           34 | 
|---|
| 61 | #define      TLS_K1       35 | 
|---|
| 62 | #define      DP_EXT           36   // DATA PADDR EXTENSION | 
|---|
| 63 | #define      MMU_MD           37   // MMU MODE | 
|---|
| 64 | #define      REGS_NR      38 | 
|---|
| 65 |  | 
|---|
| 66 | #define CPU_IN_KERNEL 1 | 
|---|
| 67 |  | 
|---|
| 68 | #endif  /* _HAL_ENTRY_H_ */ | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.