Exemple #1
0
char* kmem_t::init() {

  int start_mem = PGALIGN((int)end);
  pages = (page_t*)LONG_ALIGN(start_mem);

  int maxpfn =  (PHYSTOP) >> PGSHIFT;
  epages = pages + maxpfn;
  return (char*)(epages);
}
Exemple #2
0
void aout_dump(struct exec *aouth)
{
	u32 cpg, dpg;

	cpg = PGALIGN(aouth->a_text);
	dpg = PGALIGN(aouth->a_data + aouth->a_bss);
	DPRINT(
		"text:  %d/%d\n"
		"data:  %d/%d\n"
		"bss:   %d\n"
		"syms:  %d\n"
		"entry: %x\n",
		aouth->a_text, cpg,
		aouth->a_data, dpg,
		aouth->a_bss,
		aouth->a_syms,
		aouth->a_entry
	      );
}