Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Apr 1997 14:36:14 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        smp@csn.net (Steve Passe)
Cc:        phk@dk.tfs.com, ady@earthling.net, smp@freebsd.org
Subject:   Re: Possible typo in sys sources ?
Message-ID:  <199704222136.OAA27462@phaeton.artisoft.com>
In-Reply-To: <199704221818.MAA16673@Ilsa.StevesCafe.com> from "Steve Passe" at Apr 22, 97 12:18:30 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> > > - edited ../../kern/init_main.c and in line 180 changed from "*sipp =
> > >*xitp" to "*sipp = *xipp" (it's in a bubble sort)
> > 
> > We have qsort() in the kernel, replace it wholesale...
> 
> for the record, this has nothing to do with the SMP source tree, the bubble
> sort is in the main 3.0-current tree also.

Also for the record:

1)	It's not a typo

2)	You can replace it with qsort if you want to provide the
	compare function, but it's boot code, and is only ever
	executed once, so it's kind of a waste of time.

3)	I'm not wure if a qsort would like to be unindexed; if not,
	it may not like the dirty way the original linkerset data
	is being rearranged in memory without benefit of a real
	array of pointers.


					Regards,
					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704222136.OAA27462>