Subversion Repositories HelenOS-historic

Rev

Rev 680 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 680 Rev 693
Line 11... Line 11...
11
#define __ASM__
11
#define __ASM__
12
#include <arch/boot/boot.h>
12
#include <arch/boot/boot.h>
13
#include <arch/mm/page.h>
13
#include <arch/mm/page.h>
14
 
14
 
15
SECTIONS {
15
SECTIONS {
16
	.unmapped BOOTSTRAP_OFFSET: AT (BOOTSTRAP_OFFSET) {
16
	.unmapped BOOT_OFFSET: AT (0) {
17
		unmapped_ktext_start = .;
17
		unmapped_ktext_start = .;
18
		*(K_TEXT_START);
18
		*(K_TEXT_START);
19
		*(K_TEXT_START_2);
-
 
20
		unmapped_ktext_end = .;
19
		unmapped_ktext_end = .;
21
	
20
	
22
		unmapped_kdata_start = .;
21
		unmapped_kdata_start = .;
23
		*(K_DATA_START);
22
		*(K_DATA_START);
24
		unmapped_kdata_end = .;
23
		unmapped_kdata_end = .;
25
	}
24
	}
26
	
25
	
27
	.mapped (PA2KA(BOOT_OFFSET+BOOTSTRAP_OFFSET)+SIZEOF(.unmapped)): AT (BOOTSTRAP_OFFSET+SIZEOF(.unmapped)) { 
26
	.mapped (PA2KA(BOOT_OFFSET)+SIZEOF(.unmapped)): AT (SIZEOF(.unmapped)) { 
28
		ktext_start = .;
27
		ktext_start = .;
29
		*(.text);
28
		*(.text);
30
		ktext_end = .;
29
		ktext_end = .;
31
		
30
		
32
		kdata_start = .;
31
		kdata_start = .;
33
		*(.data);			/* initialized data */
32
		*(.data);			/* initialized data */
34
		*(.rodata*);			/* string literals */
33
		*(.rodata*);			/* string literals */
35
		*(COMMON);			/* global variables */
34
		*(COMMON);			/* global variables */
36
		hardcoded_load_address = .;
35
		hardcoded_load_address = .;
37
		LONG(PA2KA(BOOT_OFFSET+BOOTSTRAP_OFFSET));
36
		LONG(PA2KA(BOOT_OFFSET));
38
		hardcoded_ktext_size = .;
37
		hardcoded_ktext_size = .;
39
		LONG((ktext_end - ktext_start) + (unmapped_ktext_end - unmapped_ktext_start));
38
		LONG((ktext_end - ktext_start) + (unmapped_ktext_end - unmapped_ktext_start));
40
		hardcoded_kdata_size = .;
39
		hardcoded_kdata_size = .;
41
		LONG((kdata_end - kdata_start) + (unmapped_kdata_end - unmapped_kdata_start));
40
		LONG((kdata_end - kdata_start) + (unmapped_kdata_end - unmapped_kdata_start));
42
		hardcoded_unmapped_ktext_size = .;
41
		hardcoded_unmapped_ktext_size = .;
Line 51... Line 50...
51
 
50
 
52
	/DISCARD/ : {
51
	/DISCARD/ : {
53
		*(.note.GNU-stack);		
52
		*(.note.GNU-stack);		
54
		*(.comment);
53
		*(.comment);
55
	}
54
	}
56
 
-
 
57
	
55
	
58
	_hardcoded_kernel_size = (ktext_end - ktext_start) + (unmapped_ktext_end - unmapped_ktext_start) + (kdata_end - kdata_start) + (unmapped_kdata_end - unmapped_kdata_start);
-
 
59
	_hardcoded_unmapped_size = (unmapped_ktext_end - unmapped_ktext_start) + (unmapped_kdata_end - unmapped_kdata_start);
-
 
-
 
56
#ifdef CONFIG_SMP	
60
	
57
	
-
 
58
	_hardcoded_unmapped_size = (unmapped_ktext_end - unmapped_ktext_start) + (unmapped_kdata_end - unmapped_kdata_start);
61
	e820table_boot = KA2PA(e820table) - BOOT_OFFSET;
59
	ap_boot = unmapped_ap_boot - BOOT_OFFSET + AP_BOOT_OFFSET;
62
	e820counter_boot = KA2PA(e820counter) - BOOT_OFFSET;
60
	ap_gdtr = unmapped_ap_gdtr - BOOT_OFFSET + AP_BOOT_OFFSET;
63
	real_bootstrap_gdtr = PA2KA(real_bootstrap_gdtr_boot);
61
	protected_ap_gdtr = PA2KA(ap_gdtr);
-
 
62
 
-
 
63
#endif /* CONFIG_SMP */
-
 
64
 
64
}
65
}