Changeset f4a61ef in mainline for arch/ia32/src


Ignore:
Timestamp:
2005-08-20T21:52:58Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3526da33
Parents:
b07769b6
Message:

Add type cast to address in vm_create().
This seems to fix the problem with userspace.
Looks like KA2PA() returned wrong address when applied on pte_t *.

Uncomment panic() in gp_fault().
Get rid of cli and sti in userspace code.

Location:
arch/ia32/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/asm.S

    rb07769b6 rf4a61ef  
    380380        mov %ax,%gs;
    3813810:
    382 #       movl $0xdeadbeaf, %eax
    383   int $48
    384         cli;
    385         sti;
     382        int $48
    386383        jmp 0b
    387384        # not reached
  • arch/ia32/src/interrupt.c

    rb07769b6 rf4a61ef  
    8383        printf("%%eax=%L, %%ebx=%L, %%ecx=%L, %%edx=%L,\n%%edi=%L, %%esi=%L, %%ebp=%L, %%esp=%L\n", stack[-2], stack[-5], stack[-3], stack[-4], stack[-9], stack[-8], stack[-1], stack);
    8484        printf("stack: %X, %X, %X, %X\n", stack[4], stack[5], stack[6], stack[7]);
    85         //panic("general protection fault\n");
     85        panic("general protection fault\n");
    8686        stack[1]++;
    8787}
Note: See TracChangeset for help on using the changeset viewer.