Some m68k fixes.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22692 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2007-10-23 23:34:20 +00:00
parent df05c21550
commit 90f87904fc
+3 -2
View File
@@ -3671,11 +3671,12 @@ vm_page_fault(addr_t address, addr_t faultAddress, bool isWrite, bool isUser,
#if 1 #if 1
if (area) { if (area) {
struct stack_frame { struct stack_frame {
#if defined(__INTEL__) || defined(__POWERPC__) #if defined(__INTEL__) || defined(__POWERPC__) || defined(__M68K__)
struct stack_frame* previous; struct stack_frame* previous;
void* return_address; void* return_address;
#else #else
// ... // ...
#warning writeme
#endif #endif
} frame; } frame;
#ifdef __INTEL__ #ifdef __INTEL__
@@ -3693,7 +3694,7 @@ vm_page_fault(addr_t address, addr_t faultAddress, bool isWrite, bool isUser,
status_t status = user_memcpy(&frame, (void *)iframe->r1, status_t status = user_memcpy(&frame, (void *)iframe->r1,
sizeof(struct stack_frame)); sizeof(struct stack_frame));
#else #else
# warn "vm_page_fault() stack trace won't work" # warning "vm_page_fault() stack trace won't work"
status = B_ERROR; status = B_ERROR;
#endif #endif