Removed unused symbols.

Minor cleanups.
This commit is contained in:
Kees van Reeuwijk
2010-01-22 22:01:08 +00:00
parent 0cfbe936ce
commit a7cee5bec4
38 changed files with 31 additions and 102 deletions

View File

@@ -23,8 +23,6 @@ message *m_ptr; /* pointer to request message */
* in the PM (normal abort or panic) or TTY (after CTRL-ALT-DEL).
*/
int how = m_ptr->ABRT_HOW;
int length;
phys_bytes src_phys;
/* See if the monitor is to run the specified instructions. */
if (how == RBT_MONITOR) {

View File

@@ -22,9 +22,9 @@
PUBLIC int do_cprofile(m_ptr)
register message *m_ptr; /* pointer to request message */
{
int proc_nr, i, err = 0, k = 0;
int proc_nr, i;
phys_bytes len;
vir_bytes vir_dst, vir_src;
vir_bytes vir_dst;
switch (m_ptr->PROF_ACTION) {

View File

@@ -22,8 +22,6 @@ register message *m_ptr; /* pointer to request message */
{
/* Handle sys_exec(). A process has done a successful EXEC. Patch it up. */
register struct proc *rp;
phys_bytes phys_name;
char *np;
int proc_nr;
if(!isokendpt(m_ptr->PR_ENDPT, &proc_nr))

View File

@@ -48,17 +48,13 @@ message *m_ptr; /* pointer to request message */
PRIVATE void clear_proc(rc)
register struct proc *rc; /* slot of process to clean up */
{
register struct proc *rp; /* iterate over process table */
register struct proc **xpp; /* iterate over caller queue */
int i;
int sys_id;
/* Don't clear if already cleared. */
if(isemptyp(rc)) return;
/* Check the table with IRQ hooks to see if hooks should be released. */
for (i=0; i < NR_IRQ_HOOKS; i++) {
int proc;
if (rc->p_endpoint == irq_hooks[i].proc_nr_e) {
rm_irq_handler(&irq_hooks[i]); /* remove interrupt handler */
irq_hooks[i].proc_nr_e = NONE; /* mark hook as free */

View File

@@ -31,7 +31,7 @@ register message *m_ptr; /* pointer to request message */
register struct proc *rpc; /* child process pointer */
struct proc *rpp; /* parent process pointer */
struct mem_map *map_ptr; /* virtual address of map inside caller (PM) */
int i, gen, r;
int gen, r;
int p_proc;
if(!isokendpt(m_ptr->PR_ENDPT, &p_proc))

View File

@@ -29,7 +29,7 @@ register message *m_ptr; /* pointer to request message */
*/
size_t length;
vir_bytes src_vir;
int proc_nr, nr_e, nr, r;
int nr_e, nr, r;
struct proc *caller;
int wipe_rnd_bin = -1;
struct exec e_hdr;
@@ -122,7 +122,7 @@ register message *m_ptr; /* pointer to request message */
break;
}
case GET_RANDOMNESS_BIN: {
int i, bin = m_ptr->I_VAL_LEN2_E;
int bin = m_ptr->I_VAL_LEN2_E;
if(bin < 0 || bin >= RANDOM_SOURCES) {
kprintf("SYSTEM: GET_RANDOMNESS_BIN: %d out of range\n", bin);

View File

@@ -19,7 +19,6 @@ message *m_ptr; /* pointer to request message */
/* Handle sys_newmap(). Fetch the memory map. */
register struct proc *rp; /* process whose map is to be loaded */
struct mem_map *map_ptr; /* virtual address of map inside caller */
phys_bytes src_phys; /* physical address of map at the */
int proc_nr;
map_ptr = (struct mem_map *) m_ptr->PR_MEM_PTR;

View File

@@ -24,7 +24,6 @@ register message *m_ptr; /* pointer to request message */
* which is used to enable the kernel to have the tables cleared.
*/
int proc_nr;
vir_bytes vir_dst;
struct proc *rp;
/* Store process name, control struct, table locations. */

View File

@@ -26,9 +26,7 @@ PRIVATE vir_bytes sprof_info_addr_vir;
PUBLIC int do_sprofile(m_ptr)
register message *m_ptr; /* pointer to request message */
{
int proc_nr, i;
vir_bytes vir_dst;
phys_bytes length;
int proc_nr;
switch(m_ptr->PROF_ACTION) {

View File

@@ -7,7 +7,6 @@
*/
#include "../system.h"
#include "../vm.h"
/*===========================================================================*
@@ -18,7 +17,7 @@ register message *m_ptr; /* pointer to request message */
{
vir_bytes len, buf;
static char mybuf[DIAG_BUFSIZE];
struct proc *caller, *target;
struct proc *caller;
int s, i, proc_nr;
caller = proc_addr(who_p);

View File

@@ -11,7 +11,6 @@
#include "../vm.h"
#include "../debug.h"
#include <minix/type.h>
#include <minix/config.h>
/*===========================================================================*
* do_vmctl *
@@ -19,7 +18,7 @@
PUBLIC int do_vmctl(m_ptr)
register message *m_ptr; /* pointer to request message */
{
int proc_nr, i;
int proc_nr;
endpoint_t ep = m_ptr->SVMCTL_WHO;
struct proc *p, *rp, *target;
int err;