Subversion Repositories HelenOS-historic

Rev

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

Rev 951 Rev 957
Line 5... Line 5...
5
 *  kernel data
5
 *  kernel data
6
 *
6
 *
7
 */
7
 */
8
 
8
 
9
#define __ASM__
9
#define __ASM__
-
 
10
#include <arch/boot/boot.h>
-
 
11
#include <arch/mm/page.h>
10
 
12
 
11
ENTRY(kernel_image_start)
13
ENTRY(kernel_image_start)
12
 
14
 
13
SECTIONS {
15
SECTIONS {
14
	.image 0x400000: AT (0x400000) { 
16
	.image PA2KA(BOOT_OFFSET): AT (0) { 
15
		ktext_start = .;
17
		ktext_start = .;
16
		*(K_TEXT_START)
18
		*(K_TEXT_START)
17
		*(.text);
19
		*(.text);
18
		ktext_end = .;
20
		ktext_end = .;
19
		
21
		
Line 28... Line 30...
28
		hardcoded_ktext_size = .;
30
		hardcoded_ktext_size = .;
29
		LONG(ktext_end - ktext_start);	
31
		LONG(ktext_end - ktext_start);	
30
		hardcoded_kdata_size = .;
32
		hardcoded_kdata_size = .;
31
		LONG(kdata_end - kdata_start);
33
		LONG(kdata_end - kdata_start);
32
		hardcoded_load_address = .;
34
		hardcoded_load_address = .;
33
		LONG(0x400000);
35
		LONG(PA2KA(BOOT_OFFSET));
34
		*(.bss);		/* uninitialized static variables */	
36
		*(.bss);		/* uninitialized static variables */	
35
		*(COMMON); 		/* global variables */
37
		*(COMMON); 		/* global variables */
36
 
38
 
37
		symbol_table = .;
39
		symbol_table = .;
38
		*(symtab.*);            /* Symbol table, must be LAST symbol!*/
40
		*(symtab.*);            /* Symbol table, must be LAST symbol!*/