Skip to contentSkip to conversation

fix kernel start

PATCH In review maximilian attems 2 participants 5 messages Apr 1, 2004 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix kernel start

linux-2.6.5-rc2 has a quick count of 33 main() function in it's sources, but non of them is the real Zonked Quokka.

patch compile && boot tested
archs will easily catch up!

a++ maks

init/main.c +1 -1
@@ -399,7 +399,7 @@
  *	Activate the first processor.
  */
 
-asmlinkage void __init start_kernel(void)
+asmlinkage void __init main(void)
 {
 	char * command_line;
 	extern char saved_command_line[];
arch/i386/kernel/head.S +1 -1
@@ -299,7 +299,7 @@
 	jmp L6
 1:
 #endif /* CONFIG_SMP */
-	call start_kernel
+	call main
 L6:
 	jmp L6			# main should never return here, but
 				# just in case, we know what happens.

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors

#1 lore raw
Quoted 6 lines · maximilian attems

linux-2.6.5-rc2 has a quick count of 33 main() function in it's sources, but non of them is the real Zonked Quokka.

patch compile && boot tested
archs will easily catch up!

What's the point? It's a kernel, not a regular C program.

Signature · 10 lines
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
#2 lore raw
In reply to maximilian attems
Quoted 2 lines · maximilian attems
	      ^^
Quoted 8 lines
Quoted 6 lines

linux-2.6.5-rc2 has a quick count of 33 main() function in it's sources, but non of them is the real Zonked Quokka.

patch compile && boot tested
archs will easily catch up!

What's the point? It's a kernel, not a regular C program.

:)

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors

#3 lore raw
In reply to maximilian attems
Quoted 4 lines · maximilian attems
Quoted 2 lines · maximilian attems
	      ^^

:)

                            ^^^^^^^^^^

Got to be before midday, dude ;-)

Signature · 10 lines
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors