source: trunk/hal/tsar_mips32/__kheader.S @ 12

Last change on this file since 12 was 1, checked in by alain, 8 years ago

First import

File size: 688 bytes
RevLine 
[1]1#include <cpu-regs.h>
2#define _ALMOS_ASM_
3#include <boot-info.h>
4
5#FIXME: can't we make it in C
6        .section  .kheader, "ax",@progbits
7       
8        .extern __ktext_start
9        .extern __entry_end
10        .extern __ktext_end
11        .extern __kdata_start
12        .extern __kdata_end
13        .extern __virtual_end
14        .extern kern_init
15        .ent kheader
16        .global kheader
17
18#if 0
19typedef struct kernel_info_s
20{
21        uint_t signature;/*1*/
22        uint_t text_start;/*2*/
23        uint_t text_end;/*3*/
24        uint_t data_start;/*4*/
25        uint_t data_end;/*5*/
26        uint_t virtual_end;/*6*/
27        uint_t kern_init;/*7*/
28}kernel_info_t;
29#endif
30
31kheader:       
32        header: .word KERNEL_SIGNATURE, __ktext_start, __ktext_end, __kdata_start, __kdata_end, __virtual_end, kern_init
33       
34        .end kheader
Note: See TracBrowser for help on using the repository browser.