Skip to content

Commit

Permalink
- fixed usage of variable 'apic_id_mask' for compatibility with win32…
Browse files Browse the repository at this point in the history
… plugin target
  • Loading branch information
vruppert committed May 15, 2010
1 parent 7461f34 commit e5d048f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 4 additions & 1 deletion bochs.h
@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: bochs.h,v 1.253 2010/04/13 17:56:50 sshwarts Exp $
// $Id: bochs.h,v 1.254 2010/05/15 09:23:50 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001-2009 The Bochs Project
Expand Down Expand Up @@ -445,6 +445,9 @@ void CDECL bx_signal_handler(int signum);
int bx_atexit(void);
BOCHSAPI extern bx_debug_t bx_dbg;

// determinted by XAPIC option
BOCHSAPI extern Bit32u apic_id_mask;

// memory access type (read/write/execute/rw)
#define BX_READ 0
#define BX_WRITE 1
Expand Down
3 changes: 1 addition & 2 deletions cpu/apic.cc
@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: apic.cc,v 1.143 2010/04/08 15:50:39 sshwarts Exp $
// $Id: apic.cc,v 1.144 2010/05/15 09:23:50 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2002-2009 Zwane Mwaikambo, Stanislav Shwartsman
Expand Down Expand Up @@ -27,7 +27,6 @@

#if BX_SUPPORT_APIC

extern Bit32u apic_id_mask;
extern bx_bool simulate_xapic;

#define LOG_THIS this->
Expand Down
4 changes: 1 addition & 3 deletions iodev/ioapic.cc
@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: ioapic.cc,v 1.52 2010/05/14 12:10:00 sshwarts Exp $
// $Id: ioapic.cc,v 1.53 2010/05/15 09:23:50 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002-2009 The Bochs Project
Expand Down Expand Up @@ -34,8 +34,6 @@

bx_ioapic_c *theIOAPIC = NULL;

extern Bit32u apic_id_mask;

int libioapic_LTX_plugin_init(plugin_t *plugin, plugintype_t type, int argc, char *argv[])
{
theIOAPIC = new bx_ioapic_c();
Expand Down

0 comments on commit e5d048f

Please sign in to comment.