From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 26 21:27:00 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF78837B401 for ; Sat, 26 Apr 2003 21:27:00 -0700 (PDT) Received: from hotmail.com (f35.law11.hotmail.com [64.4.17.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87A8343F93 for ; Sat, 26 Apr 2003 21:27:00 -0700 (PDT) (envelope-from int0x80@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 26 Apr 2003 21:27:00 -0700 Received: from 24.203.121.28 by lw11fd.law11.hotmail.msn.com with HTTP; Sun, 27 Apr 2003 04:27:00 GMT X-Originating-IP: [24.203.121.28] X-Originating-Email: [int0x80@hotmail.com] From: "Raunchy McSmutbag" To: freebsd-hackers@freebsd.org Date: Sun, 27 Apr 2003 04:27:00 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 27 Apr 2003 04:27:00.0508 (UTC) FILETIME=[3F0DC5C0:01C30C75] Subject: int's and bus error X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Apr 2003 04:27:01 -0000 Hey =) What im trying to do is run vm86 interrupts from a userland process (int 10h in particular). So ive tried doing.. int switch_mode(void) { struct vm86_init_args vm; /* use all interrupts */ memset(&vm, 0, sizeof(struct vm86_init_args)); return(i386_vm86(VM86_INIT, &vm)); } to switch to vm86 mode. This works fine. Then i do the actual int 10h void mode_13h(void) { __asm("xorl %eax, %eax\n" "movl $0x13, %eax\n" "int $0x10\n"); } I get a bus error an int $0x10. I posted on comp.unix.programmer and was informed that i wasnt really running in virtual mode. http://groups.google.ca/groups?q=comp.unix.programmer+jack+hammer&hl=en&lr=&ie=UTF-8&oe=UTF-8&scoring=d&selm=20030426085538.GB2997%40iv.nn.kiev.ua&rnum=1 What is it that i need to do to go to vm86 and execute that code? _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail