Miscellaneous code cleanup.
This commit is contained in:
@@ -49,7 +49,7 @@ PUBLIC int reboot_type;
|
||||
PUBLIC int ioapic_enabled;
|
||||
PUBLIC u32_t ioapic_id_mask[8], lapic_id_mask[8];
|
||||
PUBLIC u32_t lapic_addr_vaddr;
|
||||
PUBLIC u32_t lapic_addr;
|
||||
PUBLIC vir_bytes lapic_addr;
|
||||
PUBLIC u32_t lapic_eoi_addr;
|
||||
PUBLIC u32_t lapic_taskpri_addr;
|
||||
PUBLIC int bsp_lapic_id;
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
#include "../../kernel.h"
|
||||
|
||||
EXTERN int ioapic_enabled;
|
||||
EXTERN u32_t lapic_addr;
|
||||
EXTERN vir_bytes lapic_addr;
|
||||
EXTERN u32_t lapic_eoi_addr;
|
||||
EXTERN u32_t lapic_taskpri_addr;
|
||||
EXTERN int bsp_lapic_id;
|
||||
|
||||
@@ -25,8 +25,9 @@ PUBLIC int do_sdevio(struct proc * caller, message *m_ptr)
|
||||
{
|
||||
vir_bytes newoffset;
|
||||
endpoint_t newep;
|
||||
int proc_nr, proc_nr_e = m_ptr->DIO_VEC_ENDPT;
|
||||
int count = m_ptr->DIO_VEC_SIZE;
|
||||
int proc_nr;
|
||||
endpoint_t proc_nr_e = m_ptr->DIO_VEC_ENDPT;
|
||||
vir_bytes count = m_ptr->DIO_VEC_SIZE;
|
||||
long port = m_ptr->DIO_PORT;
|
||||
phys_bytes phys_buf;
|
||||
int i, req_type, req_dir, size, nr_io_range;
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
#include "../../proc.h"
|
||||
#include "../../proto.h"
|
||||
|
||||
extern int vm_copy_in_progress, catch_pagefaults;
|
||||
extern struct proc *vm_copy_from, *vm_copy_to;
|
||||
extern int catch_pagefaults;
|
||||
|
||||
void pagefault( struct proc *pr,
|
||||
struct exception_frame * frame,
|
||||
|
||||
@@ -142,7 +142,7 @@ PRIVATE int lin_lin_copy(struct proc *srcproc, vir_bytes srclinaddr,
|
||||
struct proc *dstproc, vir_bytes dstlinaddr, vir_bytes bytes)
|
||||
{
|
||||
u32_t addr;
|
||||
int procslot;
|
||||
proc_nr_t procslot;
|
||||
|
||||
NOREC_ENTER(linlincopy);
|
||||
|
||||
|
||||
@@ -85,7 +85,6 @@ PRIVATE void kernel_call_finish(struct proc * caller, message *msg, int result)
|
||||
caller->p_delivermsg_vir,
|
||||
caller->p_name,
|
||||
caller->p_endpoint);
|
||||
result = EBADREQUEST;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ typedef struct irq_hook {
|
||||
int (*handler)(struct irq_hook *); /* interrupt handler */
|
||||
int irq; /* IRQ vector number */
|
||||
int id; /* id of this hook */
|
||||
int proc_nr_e; /* (endpoint) NONE if not in use */
|
||||
endpoint_t proc_nr_e; /* (endpoint) NONE if not in use */
|
||||
irq_id_t notify_id; /* id to return on interrupt */
|
||||
irq_policy_t policy; /* bit mask for policy */
|
||||
} irq_hook_t;
|
||||
|
||||
Reference in New Issue
Block a user