Chameleon

Chameleon Svn Source Tree

Root/branches/rewrite/i386/modules/BiosDisk/Main.cpp

Source at commit 1079 created 9 years 8 months ago.
By meklort, began implimenting Bios disk changes. Code taken from biosfn.c
1/*
2 * Copyright (c) 2011 Evan Lojewski. All rights reserved.
3 *
4 */
5
6#include <IOKit/IOTypes.h>
7#include <BiosDisk.hpp>
8
9extern "C"
10{
11#include "libsaio.h"
12 void BiosDisk_start();
13}
14
15int _biosread(int dev, int cyl, int head, int sec, int num);
16int drive_exists(int devid);
17
18
19void BiosDisk_start()
20{
21 BiosDisk* disk = new BiosDisk("bios:/hd0/");
22
23 printf("This is a simple BootDisk_start test.\n");
24 delete disk;
25
26 halt();
27}

Archive Download this file

Revision: 1079