Skip to content

Commit cdd1730

Browse files
authored
Merge pull request torvalds#227 from hkchu/work
Add a couple of debugging tweaks
2 parents e496a1f + 85d8d5c commit cdd1730

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

arch/lkl/mm/bootmem.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ void __init bootmem_init(int mem_size)
2121
memory_start = PAGE_ALIGN(memory_start);
2222
mem_size = (mem_size / PAGE_SIZE) * PAGE_SIZE;
2323
}
24-
24+
pr_info("bootmem address range: 0x%lx - 0x%lx\n", memory_start,
25+
memory_start+mem_size);
2526
/*
2627
* Give all the memory to the bootmap allocator, tell it to put the
2728
* boot mem_map at the start of memory.

tools/lkl/lib/hijack/init.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,15 @@ hijack_init(void)
229229
if (offload1)
230230
offload = strtol(offload1, NULL, 0);
231231

232+
if (lkl_debug & 0x200) {
233+
char c;
234+
235+
printf("press 'enter' to continue\n");
236+
if (scanf("%c", &c) <= 0) {
237+
fprintf(stderr, "scanf() fails\n");
238+
return;
239+
}
240+
}
232241
if (single_cpu) {
233242
single_cpu_mode = atoi(single_cpu);
234243
switch (single_cpu_mode) {

0 commit comments

Comments
 (0)