Last change
on this file since 28 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:
688 bytes
|
Line | |
---|
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 |
---|
19 | typedef 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 | |
---|
31 | kheader: |
---|
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.