Add namespace support for kvm

This commit is contained in:
Sebastian Huber
2016-05-06 21:40:49 +02:00
parent 5b1f20b73f
commit 5b4394f3c8
5 changed files with 9 additions and 8 deletions

View File

@@ -73,8 +73,9 @@ cat <<EOF
* This file contains the known list of symbols for the kvm subsystem.
*/
#include <machine/rtems-bsd-kernel-space.h>
#include "kvm_private.h"
#include "stdio.h"
/*
* The following is the known list of symbols that may be passed
@@ -94,7 +95,7 @@ cat <<EOF
* to the kvm family of calls.
*/
kvm_symval_t rtems_kvm_symbols[] = {
const kvm_symval_t rtems_kvm_symbols[] = {
EOF
for sym in ${symbols}
do
@@ -103,6 +104,6 @@ do
done
cat <<EOF
{ "", (uintptr_t) NULL }
{ "", 0 }
};
EOF

View File

@@ -8,6 +8,6 @@ typedef struct {
uintptr_t value;
} kvm_symval_t;
extern kvm_symval_t rtems_kvm_symbols[];
extern const kvm_symval_t rtems_kvm_symbols[];
#endif

View File

@@ -34,7 +34,7 @@ kvm_nlist(kvm_t *kd, struct nlist *nl)
struct nlist *p;
int nvalid;
int error;
kvm_symval_t *kvm;
const kvm_symval_t *kvm;
assert( kd != NULL );
assert( nl != NULL );