Skip to content

Commit

Permalink
Merge pull request torvalds#227 from hkchu/work
Browse files Browse the repository at this point in the history
Add a couple of debugging tweaks
  • Loading branch information
tavip authored Sep 14, 2016
2 parents e496a1f + 85d8d5c commit cdd1730
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/lkl/mm/bootmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ void __init bootmem_init(int mem_size)
memory_start = PAGE_ALIGN(memory_start);
mem_size = (mem_size / PAGE_SIZE) * PAGE_SIZE;
}

pr_info("bootmem address range: 0x%lx - 0x%lx\n", memory_start,
memory_start+mem_size);
/*
* Give all the memory to the bootmap allocator, tell it to put the
* boot mem_map at the start of memory.
Expand Down
9 changes: 9 additions & 0 deletions tools/lkl/lib/hijack/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,15 @@ hijack_init(void)
if (offload1)
offload = strtol(offload1, NULL, 0);

if (lkl_debug & 0x200) {
char c;

printf("press 'enter' to continue\n");
if (scanf("%c", &c) <= 0) {
fprintf(stderr, "scanf() fails\n");
return;
}
}
if (single_cpu) {
single_cpu_mode = atoi(single_cpu);
switch (single_cpu_mode) {
Expand Down

0 comments on commit cdd1730

Please sign in to comment.