2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
6 #include "linux/stddef.h"
7 #include "linux/config.h"
9 #include "asm/uaccess.h"
11 #include "kern_util.h"
12 #include "user_util.h"
16 void before_mem_tt(unsigned long brk_start
)
19 remap_data(UML_ROUND_DOWN(&_stext
), UML_ROUND_UP(&_etext
), 1);
20 remap_data(UML_ROUND_DOWN(&_sdata
), UML_ROUND_UP(&_edata
), 1);
21 remap_data(UML_ROUND_DOWN(&__bss_start
), UML_ROUND_UP(&_end
), 1);
24 #define SIZE ((CONFIG_NEST_LEVEL + CONFIG_KERNEL_HALF_GIGS) * 0x20000000)
25 #define START (CONFIG_TOP_ADDR - SIZE)
27 unsigned long set_task_sizes_tt(unsigned long *task_size_out
)
29 unsigned long host_task_size
;
31 /* Round up to the nearest 4M */
32 host_task_size
= ROUND_4M((unsigned long) &host_task_size
);
33 *task_size_out
= START
;
35 return host_task_size
;