linux-insides icon indicating copy to clipboard operation
linux-insides copied to clipboard

start_kernel() was not discussed earlier, though part 6 of Booting seems to imply it was

Open pdelong42 opened this issue 4 years ago • 1 comments

In part 6 of the kernel booting process [1], you reference start_kernel() in init/main.c as if it had been discussed previously. However, this is the first time I've seen either that function or file mentioned (since there doesn't appear to have been any mention of either of them in parts 1-5). There are plenty of references to arch/x86/boot/main.c [3], but they're not directly related as far as I can tell.

I wasn't disoriented for too long, but it makes me wonder if I missed something, or if there was earlier material you omitted by mistake.

[1] https://github.com/0xAX/linux-insides/blob/master/Booting/linux-bootstrap-6.md [2] https://github.com/torvalds/linux/blob/v4.16/init/main.c [3] https://github.com/torvalds/linux/blob/v4.16/arch/x86/boot/main.c

pdelong42 avatar Oct 15 '20 01:10 pdelong42

@pdelong42 yes you're right. IIRC this part was written after initialization chapter, so the start_kernel already was in my mind :)

I'll try to find time to improve this.

0xAX avatar Jul 31 '22 10:07 0xAX