freebsd-dev/sys/dev/syscons
Peter Wemm f41325db5f With this commit, I hereby pronounce gensetdefs past its use-by date.
Replace the a.out emulation of 'struct linker_set' with something
a little more flexible.  <sys/linker_set.h> now provides macros for
accessing elements and completely hides the implementation.

The linker_set.h macros have been on the back burner in various
forms since 1998 and has ideas and code from Mike Smith (SET_FOREACH()),
John Polstra (ELF clue) and myself (cleaned up API and the conversion
of the rest of the kernel to use it).

The macros declare a strongly typed set.  They return elements with the
type that you declare the set with, rather than a generic void *.

For ELF, we use the magic ld symbols (__start_<setname> and
__stop_<setname>).  Thanks to Richard Henderson <rth@redhat.com> for the
trick about how to force ld to provide them for kld's.

For a.out, we use the old linker_set struct.

NOTE: the item lists are no longer null terminated.  This is why
the code impact is high in certain areas.

The runtime linker has a new method to find the linker set
boundaries depending on which backend format is in use.

linker sets are still module/kld unfriendly and should never be used
for anything that may be modular one day.

Reviewed by:	eivind
2001-06-13 10:58:39 +00:00
..
apm Added necessary include for pc98. 2001-01-25 09:56:04 +00:00
blank $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
daemon Fixed warnings. 2001-02-21 11:28:02 +00:00
fade $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
fire Remove unneeded header. 2000-06-25 09:39:11 +00:00
green $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
logo Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
rain Remove unneeded header. 2000-06-25 09:39:11 +00:00
snake Fixed warnings. 2001-02-21 11:28:02 +00:00
star Fixed warnings. 2001-02-21 11:28:02 +00:00
warp Remove unneeded header. 2000-06-25 09:39:11 +00:00
scgfbrndr.c With this commit, I hereby pronounce gensetdefs past its use-by date. 2001-06-13 10:58:39 +00:00
schistory.c Add a CONS_CLRHIST ioctl which instructs syscons to clear the history 2001-05-27 00:45:59 +00:00
scmouse.c Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
scterm-dumb.c Remove unneeded #include <sys/kernel.h> 2000-04-29 15:36:14 +00:00
scterm-sc.c Make the beep duration independent of HZ. 2001-05-28 21:11:38 +00:00
scterm.c With this commit, I hereby pronounce gensetdefs past its use-by date. 2001-06-13 10:58:39 +00:00
sctermvar.h Fix the TAB not cause scrolling when entered at the end of the last line. 2000-05-29 18:35:13 +00:00
scvesactl.c A couple of negative options was not commented out in NOTES/LINT. This 2000-10-09 07:29:41 +00:00
scvgarndr.c With this commit, I hereby pronounce gensetdefs past its use-by date. 2001-06-13 10:58:39 +00:00
scvidctl.c With this commit, I hereby pronounce gensetdefs past its use-by date. 2001-06-13 10:58:39 +00:00
scvtb.c Initiate deorbit burn sequence for <machine/console.h>. 2000-10-08 21:34:00 +00:00
syscons.c In the VIRTUAL_TTY macro, add a check to make sure that the result of 2001-05-27 00:57:25 +00:00
syscons.h With this commit, I hereby pronounce gensetdefs past its use-by date. 2001-06-13 10:58:39 +00:00
sysmouse.c Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00