~ubuntu-branches/ubuntu/saucy/bochs/saucy-proposed

« back to all changes in this revision

Viewing changes to iodev/biosdev.cc

  • Committer: Bazaar Package Importer
  • Author(s): David Futcher
  • Date: 2009-04-30 07:46:11 UTC
  • mfrom: (1.1.11 upstream) (4.1.7 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090430074611-6dih80a5mk2uvxhk
Tags: 2.3.7+20090416-1ubuntu1
* Merge from debian unstable (LP: #370427), remaining changes:
  - debian/patches/12_no-ssp.patch: Build bios with -fno-stack-protector
  - Add Replaces/Conflicts for bochsbios-qemu (<< 2.3.6-2)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/////////////////////////////////////////////////////////////////////////
2
 
// $Id: biosdev.cc,v 1.13 2008/02/15 22:05:41 sshwarts Exp $
 
2
// $Id: biosdev.cc,v 1.18 2009/02/08 09:05:52 vruppert Exp $
3
3
/////////////////////////////////////////////////////////////////////////
4
4
//
5
5
//  Copyright (C) 2002  MandrakeSoft S.A.
22
22
//
23
23
//  You should have received a copy of the GNU Lesser General Public
24
24
//  License along with this library; if not, write to the Free Software
25
 
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
25
//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
26
26
 
27
27
 
28
28
// Here are the virtual ports use to display messages from the bioses :
44
44
#define BX_PLUGGABLE
45
45
 
46
46
#include "iodev.h"
 
47
#include "biosdev.h"
47
48
 
48
49
bx_biosdev_c *theBiosDevice = NULL;
49
50
 
53
54
int libbiosdev_LTX_plugin_init(plugin_t *plugin, plugintype_t type, int argc, char *argv[])
54
55
{
55
56
  theBiosDevice = new bx_biosdev_c();
56
 
  bx_devices.pluginBiosDevice = theBiosDevice;
57
57
  BX_REGISTER_DEVICE_DEVMODEL(plugin, type, theBiosDevice, BX_PLUGIN_BIOSDEV);
58
58
  return(0); // Success
59
59
}
67
67
{
68
68
  bioslog = new logfunctions();
69
69
  bioslog->put("BIOS");
70
 
  bioslog->settype(BIOSLOG);
71
70
 
72
71
  vgabioslog = new logfunctions();
73
72
  vgabioslog->put("VBIOS");
74
 
  vgabioslog->settype(BIOSLOG);
75
73
}
76
74
 
77
75
bx_biosdev_c::~bx_biosdev_c(void)