haiku/headers
Travis Geiselbrecht 0098867364 this seems to solve the 'lock up on bootup on core 2' problem.
Basically, there was a pretty subtle race between the cpus in main where if the main cpu released the AP cpus and then before the AP cpus had a chance to run the boot cpu started creating the main thread (which causes smp ici messages to be created) the system would livelock, where the boot cpu waited forever for the AP cpu to acknowledge the ICI (for a TLB flush when creating the kernel stack).
Added smp_cpu_rendezvous(), used to synchronize all the cpus to a particular point, and used it a few times in main().
While i was at it i fixed another race that'll probably never happen, but what the hey. Make sure the kernel args are copied into kernel space by the main cpu before letting any other ones use it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20269 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-03-01 08:09:28 +00:00
..
build B_VECTOR_ICON_TYPE is already defined for target libbe_test. 2007-02-26 02:48:58 +00:00
compatibility/bsd More tweaks to the libbsd.so compatibility library: 2006-12-13 16:26:43 +00:00
cpp GCC 4 fix. 2005-12-11 16:22:51 +00:00
glibc Merged changes from branch build_system_redesign at revision 14573. 2005-10-29 16:27:43 +00:00
gnu adding gnu/termcap.h : is a copy of src/libs/termcap/termcap.h 2004-06-01 12:38:47 +00:00
legacy/network setsockopt and getsockopt use int as others functions 2006-06-23 14:19:11 +00:00
libs Turned off patented colored subpixel rendering. 2007-01-29 12:36:08 +00:00
os Resurrected is_vnode_removed(). 2007-02-28 22:24:28 +00:00
posix setpgrp() returns a pid_t, not an int. 2007-01-29 13:31:24 +00:00
private this seems to solve the 'lock up on bootup on core 2' problem. 2007-03-01 08:09:28 +00:00
tools Fixed the build of the cppunit stuff; if you are using IMPORT/EXPORT you should 2004-05-05 16:19:03 +00:00