Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Sep 2002 01:04:30 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 17840 for review
Message-ID:  <200209210804.g8L84UYB086114@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=17840

Change 17840 by peter@peter_overcee on 2002/09/21 01:04:13

	I know jake and benno are going to kill me, but promote these to MI,
	and at different numbers to what they used..  I've not changed powerpc
	or sparc64 or this conflict would go unnoticed.  I'm prepared to change them
	to the same as the 0x100x numbers if it is worth it, but I'd rather reserve
	that range as MD.

Affected files ...

.. //depot/projects/hammer/sys/sys/linker.h#2 edit

Differences ...

==== //depot/projects/hammer/sys/sys/linker.h#2 (text+ko) ====

@@ -191,10 +191,21 @@
 #define MODINFOMD_SSYM		0x0003		/* start of symbols */
 #define MODINFOMD_ESYM		0x0004		/* end of symbols */
 #define MODINFOMD_DYNAMIC	0x0005		/* _DYNAMIC pointer */
+#define MODINFOMD_ENVP		0x0006		/* envp[] */
+#define MODINFOMD_HOWTO		0x0007		/* boothowto */
+#define MODINFOMD_KERNEND	0x0008		/* kernend */
 #define MODINFOMD_NOCOPY	0x8000		/* don't copy this metadata to the kernel */
 
 #define MODINFOMD_DEPLIST	(0x4001 | MODINFOMD_NOCOPY)	/* depends on */
 
+#ifdef _KERNEL
+#define MD_FETCH(mdp, info, type) ({ \
+	type *__p; \
+	__p = (type *)preload_search_info((mdp), MODINFO_METADATA | (info)); \
+	__p ? *__p : 0; \
+})
+#endif
+
 #define	LINKER_HINTS_VERSION	1		/* linker.hints file version */
 
 #ifdef _KERNEL

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




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