Subversion Repositories HelenOS

Rev

Rev 337 | Rev 406 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 337 Rev 381
Line 19... Line 19...
19
	.unmapped BOOTSTRAP_OFFSET: AT (BOOTSTRAP_OFFSET) {
19
	.unmapped BOOTSTRAP_OFFSET: AT (BOOTSTRAP_OFFSET) {
20
		unmapped_ktext_start = .;
20
		unmapped_ktext_start = .;
21
		*(K_TEXT_START);
21
		*(K_TEXT_START);
22
		*(K_TEXT_START_2);
22
		*(K_TEXT_START_2);
23
		unmapped_ktext_end = .;
23
		unmapped_ktext_end = .;
24
		
24
	
25
		unmapped_kdata_start = .;
25
		unmapped_kdata_start = .;
26
		*(K_DATA_START);
26
		*(K_DATA_START);
27
		LONG(0xdeadbeaf);		/* TODO: remove 0xdeadbeaf */
-
 
28
		unmapped_kdata_end = .;
27
		unmapped_kdata_end = .;
-
 
28
		
-
 
29
		LONG(0xdeadbeaf);		/* TODO: remove 0xdeadbeaf */						
29
	}
30
	}
30
	
31
	
31
	.mapped (PA2KA(BOOT_OFFSET+BOOTSTRAP_OFFSET)+SIZEOF(.unmapped)): AT (BOOTSTRAP_OFFSET+SIZEOF(.unmapped)) { 
32
	.mapped (PA2KA(BOOT_OFFSET+BOOTSTRAP_OFFSET)+SIZEOF(.unmapped)): AT (BOOTSTRAP_OFFSET+SIZEOF(.unmapped)) { 
32
		ktext_start = .;
33
		ktext_start = .;
33
		*(BOOT_DATA);
34
		*(BOOT_DATA);
Line 47... Line 48...
47
		hardcoded_unmapped_ktext_size = .;
48
		hardcoded_unmapped_ktext_size = .;
48
		LONG(unmapped_ktext_end - unmapped_ktext_start);
49
		LONG(unmapped_ktext_end - unmapped_ktext_start);
49
		hardcoded_unmapped_kdata_size = .;
50
		hardcoded_unmapped_kdata_size = .;
50
		LONG(unmapped_kdata_end - unmapped_kdata_start);
51
		LONG(unmapped_kdata_end - unmapped_kdata_start);
51
		*(.bss);			/* uninitialized static variables */
52
		*(.bss);			/* uninitialized static variables */
52
		*(.note.GNU-stack);
-
 
53
                *(.comment);
-
 
54
 
-
 
55
		symbol_table = .;
53
		symbol_table = .;
56
		*(symtab.*);            	/* Symbol table, must be LAST symbol! */
54
		*(symtab.*);            	/* Symbol table, must be LAST symbol! */
57
 
55
 
58
		kdata_end = .;
56
		kdata_end = .;
59
	}
57
	}
-
 
58
 
-
 
59
	/DISCARD/ : {
-
 
60
		*(.note.GNU-stack);		
-
 
61
		*(.comment);
-
 
62
	}
-
 
63
 
60
	
64
	
61
	_hardcoded_kernel_size = (ktext_end - ktext_start) + (unmapped_ktext_end - unmapped_ktext_start) + (kdata_end - kdata_start) + (unmapped_kdata_end - unmapped_kdata_start);
65
	_hardcoded_kernel_size = (ktext_end - ktext_start) + (unmapped_ktext_end - unmapped_ktext_start) + (kdata_end - kdata_start) + (unmapped_kdata_end - unmapped_kdata_start);
62
	_hardcoded_unmapped_size = (unmapped_ktext_end - unmapped_ktext_start) + (unmapped_kdata_end - unmapped_kdata_start);
66
	_hardcoded_unmapped_size = (unmapped_ktext_end - unmapped_ktext_start) + (unmapped_kdata_end - unmapped_kdata_start);
63
	
67
	
64
	e820table_boot = KA2PA(e820table) - BOOT_OFFSET;
68
	e820table_boot = KA2PA(e820table) - BOOT_OFFSET;