Cleaned up all compile errors.

This commit is contained in:
Bahadir Balban
2008-08-25 16:59:00 +03:00
parent cdfaa4bbe9
commit 476bac5142
19 changed files with 99 additions and 80 deletions

View File

@@ -46,17 +46,16 @@ void fault_ipc_to_pager(u32 faulty_pc, u32 fsr, u32 far)
/*
* System calls save arguments (and message registers) on the kernel
* stack. They are then referenced from the caller's ktcb. Here, the
* same ktcb reference is set to the fault data so it gives the effect
* as if the ipc to the pager has the fault data in the message
* registers saved on the kernel stack during an ipc syscall. Also this
* way fault does not need to modify the actual utcb MRs in userspace.
* stack. They are then referenced from the caller's ktcb. Here, we
* forge a fault structure as if an ipc syscall has occured. Then
* the reference to the fault structure is set in the ktcb such that
* it lies on the mr0 offset when referred as the syscall context.
*/
/* Assign fault such that it overlaps as the MR0 reference in ktcb. */
current->syscall_regs = (syscall_args_t *)
current->syscall_regs = (syscall_context_t *)
((unsigned long)&mr[0] -
offsetof(syscall_args_t, r3));
offsetof(syscall_context_t, r3));
/* Send ipc to the task's pager */
ipc_sendrecv(current->pagerid, current->pagerid);

View File

@@ -365,12 +365,12 @@ void remove_mapping(unsigned long vaddr)
*/
pgd_table_t *copy_page_tables(pgd_table_t *from)
{
struct pmd_table_t *pmd, *orig;
struct pgd_table_t *pgd;
pmd_table_t *pmd, *orig;
pgd_table_t *pgd;
/* Allocate and copy pgd */
pgd = alloc_pgd();
memcpy(pgd, from, sizeof(struct pgd_table_t));
memcpy(pgd, from, sizeof(pgd_table_t));
/* Allocate and copy all valid pmds */
for (int i = 0; i < PGD_ENTRY_TOTAL; i++) {