Add MODINFO_ARGS, parameters passed to a module at load time.

VS: ----------------------------------------------------------------------
This commit is contained in:
dcs 1999-03-08 11:05:52 +00:00
parent f497066d82
commit f97128dce1
5 changed files with 18 additions and 5 deletions

View File

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: bootinfo.c,v 1.2 1998/10/15 17:06:36 peter Exp $
* $Id: bootinfo.c,v 1.3 1998/10/15 21:55:58 dfr Exp $
*/
#include <stand.h>
@ -76,6 +76,7 @@ bi_copyenv(vm_offset_t addr)
*
* MOD_NAME (variable) module name (string)
* MOD_TYPE (variable) module type (string)
* MOD_ARGS (variable) module parameters (string)
* MOD_ADDR sizeof(vm_offset_t) module load address
* MOD_SIZE sizeof(size_t) module size
* MOD_METADATA (variable) type-specific metadata
@ -95,6 +96,7 @@ bi_copyenv(vm_offset_t addr)
#define MOD_NAME(a, s) MOD_STR(MODINFO_NAME, a, s)
#define MOD_TYPE(a, s) MOD_STR(MODINFO_TYPE, a, s)
#define MOD_ARGS(a, s) MOD_STR(MODINFO_ARGS, a, s)
#define MOD_VAR(t, a, s) { \
COPY32(t, a); \
@ -129,6 +131,7 @@ bi_copymodules(vm_offset_t addr)
MOD_NAME(addr, mp->m_name); /* this field must come first */
MOD_TYPE(addr, mp->m_type);
MOD_ARGS(addr, mp->m_args);
MOD_ADDR(addr, mp->m_addr);
MOD_SIZE(addr, mp->m_size);
for (md = mp->m_metadata; md != NULL; md = md->md_next)

View File

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: bootinfo.c,v 1.15 1998/11/13 23:40:02 msmith Exp $
* $Id: bootinfo.c,v 1.16 1999/01/24 00:12:04 msmith Exp $
*/
#include <stand.h>
@ -152,6 +152,7 @@ bi_copyenv(vm_offset_t addr)
*
* MOD_NAME (variable) module name (string)
* MOD_TYPE (variable) module type (string)
* MOD_ARGS (variable) module parameters (string)
* MOD_ADDR sizeof(vm_offset_t) module load address
* MOD_SIZE sizeof(size_t) module size
* MOD_METADATA (variable) type-specific metadata
@ -171,6 +172,7 @@ bi_copyenv(vm_offset_t addr)
#define MOD_NAME(a, s) MOD_STR(MODINFO_NAME, a, s)
#define MOD_TYPE(a, s) MOD_STR(MODINFO_TYPE, a, s)
#define MOD_ARGS(a, s) MOD_STR(MODINFO_ARGS, a, s)
#define MOD_VAR(t, a, s) { \
COPY32(t, a); \
@ -205,6 +207,7 @@ bi_copymodules(vm_offset_t addr)
MOD_NAME(addr, mp->m_name); /* this field must come first */
MOD_TYPE(addr, mp->m_type);
MOD_ARGS(addr, mp->m_args);
MOD_ADDR(addr, mp->m_addr);
MOD_SIZE(addr, mp->m_size);
for (md = mp->m_metadata; md != NULL; md = md->md_next)

View File

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: bootinfo.c,v 1.15 1998/11/13 23:40:02 msmith Exp $
* $Id: bootinfo.c,v 1.16 1999/01/24 00:12:04 msmith Exp $
*/
#include <stand.h>
@ -152,6 +152,7 @@ bi_copyenv(vm_offset_t addr)
*
* MOD_NAME (variable) module name (string)
* MOD_TYPE (variable) module type (string)
* MOD_ARGS (variable) module parameters (string)
* MOD_ADDR sizeof(vm_offset_t) module load address
* MOD_SIZE sizeof(size_t) module size
* MOD_METADATA (variable) type-specific metadata
@ -171,6 +172,7 @@ bi_copyenv(vm_offset_t addr)
#define MOD_NAME(a, s) MOD_STR(MODINFO_NAME, a, s)
#define MOD_TYPE(a, s) MOD_STR(MODINFO_TYPE, a, s)
#define MOD_ARGS(a, s) MOD_STR(MODINFO_ARGS, a, s)
#define MOD_VAR(t, a, s) { \
COPY32(t, a); \
@ -205,6 +207,7 @@ bi_copymodules(vm_offset_t addr)
MOD_NAME(addr, mp->m_name); /* this field must come first */
MOD_TYPE(addr, mp->m_type);
MOD_ARGS(addr, mp->m_args);
MOD_ADDR(addr, mp->m_addr);
MOD_SIZE(addr, mp->m_size);
for (md = mp->m_metadata; md != NULL; md = md->md_next)

View File

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: bootinfo.c,v 1.15 1998/11/13 23:40:02 msmith Exp $
* $Id: bootinfo.c,v 1.16 1999/01/24 00:12:04 msmith Exp $
*/
#include <stand.h>
@ -152,6 +152,7 @@ bi_copyenv(vm_offset_t addr)
*
* MOD_NAME (variable) module name (string)
* MOD_TYPE (variable) module type (string)
* MOD_ARGS (variable) module parameters (string)
* MOD_ADDR sizeof(vm_offset_t) module load address
* MOD_SIZE sizeof(size_t) module size
* MOD_METADATA (variable) type-specific metadata
@ -171,6 +172,7 @@ bi_copyenv(vm_offset_t addr)
#define MOD_NAME(a, s) MOD_STR(MODINFO_NAME, a, s)
#define MOD_TYPE(a, s) MOD_STR(MODINFO_TYPE, a, s)
#define MOD_ARGS(a, s) MOD_STR(MODINFO_ARGS, a, s)
#define MOD_VAR(t, a, s) { \
COPY32(t, a); \
@ -205,6 +207,7 @@ bi_copymodules(vm_offset_t addr)
MOD_NAME(addr, mp->m_name); /* this field must come first */
MOD_TYPE(addr, mp->m_type);
MOD_ARGS(addr, mp->m_args);
MOD_ADDR(addr, mp->m_addr);
MOD_SIZE(addr, mp->m_size);
for (md = mp->m_metadata; md != NULL; md = md->md_next)

View File

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: linker.h,v 1.13 1999/01/27 21:50:00 dillon Exp $
* $Id: linker.h,v 1.14 1999/01/27 23:45:44 dillon Exp $
*/
#ifndef _SYS_LINKER_H_
@ -209,6 +209,7 @@ int linker_ddb_symbol_values(c_linker_sym_t sym, linker_symval_t *symval);
#define MODINFO_ADDR 0x0003 /* Loaded address */
#define MODINFO_SIZE 0x0004 /* Size of module */
#define MODINFO_EMPTY 0x0005 /* Has been deleted */
#define MODINFO_ARGS 0x0006 /* Parameters string */
#define MODINFO_METADATA 0x8000 /* Module-specfic */
#define MODINFOMD_AOUTEXEC 0x0001 /* a.out exec header */