Subversion Repositories shark

Rev

Rev 2 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/* Project:     OSLib
2
 * Description: The OS Construction Kit
3
 * Date:                1.6.2000
4
 * Idea by:             Luca Abeni & Gerardo Lamastra
5
 *
6
 * OSLib is an SO project aimed at developing a common, easy-to-use
7
 * low-level infrastructure for developing OS kernels and Embedded
8
 * Applications; it partially derives from the HARTIK project but it
9
 * currently is independently developed.
10
 *
11
 * OSLib is distributed under GPL License, and some of its code has
12
 * been derived from the Linux kernel source; also some important
13
 * ideas come from studying the DJGPP go32 extender.
14
 *
15
 * We acknowledge the Linux Community, Free Software Foundation,
16
 * D.J. Delorie and all the other developers who believe in the
17
 * freedom of software and ideas.
18
 *
19
 * For legalese, check out the included GPL license.
20
 */
21
 
22
/*      Only to test if the VM include is OK... */
23
 
24
#include <ll/ll.h>
25
 
26
#define T  1000
27
 
28
int main (int argc, char *argv[])
29
{
30
/*
31
    DWORD sp1, sp2;
32
    struct ll_initparms parms;
33
    struct multiboot_info *mbi;
34
 
35
    sp1 = get_SP();
36
    parms.mode = LL_PERIODIC;
37
    parms.tick = T;
38
    mbi = ll_init();
39
    event_init(&parms);
40
 
41
    if (mbi == NULL) {
42
            message("Error in LowLevel initialization code...\n");
43
            l1_exit(-1);
44
    }
45
 
46
    ll_end();
47
    sp2 = get_SP();
48
    message("End reached!\n");
49
    message("Actual stack : %lx - ", sp2);
50
    message("Begin stack : %lx\n", sp1);
51
    message("Check if same : %s\n",sp1 == sp2 ? "Ok :-)" : "No :-(");
52
 
53
    return 1;
54
*/
55
    l1_init();
56
    l1_end();
57
 
58
    return 1;
59
}