Removed unused symbols.
Minor cleanups.
This commit is contained in:
@@ -308,9 +308,6 @@ PRIVATE int lapic_enable_in_msr(void)
|
||||
PUBLIC int lapic_enable(void)
|
||||
{
|
||||
u32_t val, nlvt;
|
||||
u32_t timeout = 0xFFFF;
|
||||
u32_t errstatus = 0;
|
||||
int i;
|
||||
unsigned cpu = cpuid;
|
||||
|
||||
if (!lapic_addr)
|
||||
|
||||
@@ -64,7 +64,6 @@ struct proc *p;
|
||||
}
|
||||
case VMCTL_I386_PAGEDIRS:
|
||||
{
|
||||
int pde;
|
||||
vm_pagedirs = (u32_t *) m_ptr->SVMCTL_VALUE;
|
||||
return OK;
|
||||
}
|
||||
|
||||
@@ -35,8 +35,6 @@ PUBLIC int do_sdevio(
|
||||
struct proc *rp;
|
||||
struct priv *privp;
|
||||
struct io_range *iorp;
|
||||
int rem;
|
||||
vir_bytes addr;
|
||||
struct proc *destproc;
|
||||
|
||||
/* Allow safe copies and accesses to SELF */
|
||||
|
||||
@@ -19,10 +19,6 @@ void pagefault( struct proc *pr,
|
||||
struct exception_frame * frame,
|
||||
int is_nested)
|
||||
{
|
||||
int s;
|
||||
vir_bytes ph;
|
||||
u32_t pte;
|
||||
int procok = 0, pcok = 0, rangeok = 0;
|
||||
int in_physcopy = 0;
|
||||
|
||||
reg_t pagefaultcr2;
|
||||
@@ -108,8 +104,6 @@ PUBLIC void exception_handler(int is_nested, struct exception_frame * frame)
|
||||
{
|
||||
/* An exception or unexpected interrupt has occurred. */
|
||||
|
||||
struct proc *t;
|
||||
|
||||
struct ex_s {
|
||||
char *msg;
|
||||
int signum;
|
||||
@@ -210,7 +204,7 @@ struct proc *t;
|
||||
*===========================================================================*/
|
||||
PUBLIC void proc_stacktrace(struct proc *whichproc)
|
||||
{
|
||||
reg_t bp, v_bp, v_pc, v_hbp;
|
||||
reg_t v_bp, v_pc, v_hbp;
|
||||
int iskernel;
|
||||
|
||||
v_bp = whichproc->p_reg.fp;
|
||||
|
||||
@@ -36,8 +36,6 @@ PUBLIC int intr_init(int mine, int auto_eoi)
|
||||
* use the BIOS locations instead. The flag "mine" is set if the 8259s are
|
||||
* to be programmed for MINIX, or to be reset to what the BIOS expects.
|
||||
*/
|
||||
int i;
|
||||
|
||||
if (!intr_disabled())
|
||||
intr_disable();
|
||||
|
||||
|
||||
@@ -50,7 +50,6 @@ FORWARD _PROTOTYPE( void set_cr3, (void) );
|
||||
|
||||
PUBLIC void vm_init(struct proc *newptproc)
|
||||
{
|
||||
int i;
|
||||
if(vm_running)
|
||||
minix_panic("vm_init: vm_running", NO_NUM);
|
||||
vm_set_cr3(newptproc);
|
||||
@@ -156,9 +155,7 @@ int lin_lin_copy(struct proc *srcproc, vir_bytes srclinaddr,
|
||||
struct proc *dstproc, vir_bytes dstlinaddr, vir_bytes bytes)
|
||||
{
|
||||
u32_t addr;
|
||||
int o1, o2;
|
||||
int procslot;
|
||||
int firstloop = 1;
|
||||
|
||||
NOREC_ENTER(linlincopy);
|
||||
|
||||
@@ -217,8 +214,6 @@ int lin_lin_copy(struct proc *srcproc, vir_bytes srclinaddr,
|
||||
bytes -= chunk;
|
||||
srclinaddr += chunk;
|
||||
dstlinaddr += chunk;
|
||||
|
||||
firstloop = 0;
|
||||
}
|
||||
|
||||
NOREC_RETURN(linlincopy, OK);
|
||||
@@ -692,7 +687,7 @@ char *flagstr(u32_t e, int dir)
|
||||
|
||||
void vm_pt_print(u32_t *pagetable, u32_t v)
|
||||
{
|
||||
int pte, l = 0;
|
||||
int pte;
|
||||
int col = 0;
|
||||
|
||||
vmassert(!((u32_t) pagetable % I386_PAGE_SIZE));
|
||||
@@ -758,7 +753,6 @@ u32_t read_cr3(void)
|
||||
*===========================================================================*/
|
||||
int vm_phys_memset(phys_bytes ph, u8_t c, phys_bytes bytes)
|
||||
{
|
||||
char *v;
|
||||
u32_t p;
|
||||
NOREC_ENTER(physmemset);
|
||||
|
||||
@@ -808,7 +802,7 @@ int vmcheck; /* if nonzero, can return VMSUSPEND */
|
||||
struct vir_addr *vir_addr[2]; /* virtual source and destination address */
|
||||
phys_bytes phys_addr[2]; /* absolute source and destination */
|
||||
int seg_index;
|
||||
int i, r;
|
||||
int i;
|
||||
struct proc *procs[2];
|
||||
NOREC_ENTER(virtualcopy);
|
||||
|
||||
@@ -887,8 +881,6 @@ int vmcheck; /* if nonzero, can return VMSUSPEND */
|
||||
caller = proc_addr(who_p);
|
||||
|
||||
if(RTS_ISSET(caller, RTS_VMREQUEST)) {
|
||||
struct proc *target;
|
||||
int pn;
|
||||
vmassert(caller->p_vmrequest.vmresult != VMSUSPEND);
|
||||
RTS_LOCK_UNSET(caller, RTS_VMREQUEST);
|
||||
if(caller->p_vmrequest.vmresult != OK) {
|
||||
|
||||
@@ -129,7 +129,6 @@ PUBLIC void prot_init(void)
|
||||
/* Set up tables for protected mode.
|
||||
* All GDT slots are allocated at compile time.
|
||||
*/
|
||||
struct gate_table_s *gtp;
|
||||
struct desctableptr_s *dtp;
|
||||
unsigned ldt_index;
|
||||
register struct proc *rp;
|
||||
@@ -439,7 +438,6 @@ PUBLIC void printseg(char *banner, int iscs, struct proc *pr, u32_t selector)
|
||||
PUBLIC int prot_set_kern_seg_limit(vir_bytes limit)
|
||||
{
|
||||
struct proc *rp;
|
||||
vir_bytes prev;
|
||||
int orig_click;
|
||||
int incr_clicks;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user