rink.nu / projects / ananas / diff loader/common/main.c
loader/common/main.c
changeset 404 a1859a7b9488
child 408 c034dd7522fd
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/loader/common/main.c	Mon May 24 19:26:19 2010 +0200
     1.3 @@ -0,0 +1,19 @@
     1.4 +#include <stdio.h>
     1.5 +#include <loader/diskio.h>
     1.6 +#include <loader/platform.h>
     1.7 +
     1.8 +int
     1.9 +main()
    1.10 +{
    1.11 +	printf("Ananas/x86 Loader: ");
    1.12 +	printf("%u KB memory", platform_init_memory_map());
    1.13 +	printf(" / %u disk(s)\n", platform_init_disks());
    1.14 +	diskio_init();
    1.15 +
    1.16 +	while (1) {
    1.17 +		int i = platform_getch();
    1.18 +		platform_putch(i);
    1.19 +	}
    1.20 +
    1.21 +	return 0;
    1.22 +}
Powered by FreeBSD, PostgreSQL and Perl
© 2001 - 2014 Rink Springer