Simplify kernel code down to a userland lookalike
This commit is contained in:
parent
ba760161d8
commit
58e0cad31a
|
@ -5,15 +5,6 @@
|
|||
|
||||
|
||||
#include <stdio.h>
|
||||
#include "drivers/bus.h"
|
||||
#include "drivers/console.h"
|
||||
|
||||
#ifndef KERNEL_BUS
|
||||
# define KERNEL_BUS "ioport"
|
||||
#endif
|
||||
#ifndef KERNEL_CONSOLE
|
||||
# define KERNEL_CONSOLE "vga"
|
||||
#endif
|
||||
|
||||
|
||||
/* public */
|
||||
|
@ -21,12 +12,10 @@
|
|||
/* main */
|
||||
int main(int argc, char * argv[])
|
||||
{
|
||||
ukBus * bus;
|
||||
int i;
|
||||
|
||||
bus = bus_init(KERNEL_BUS);
|
||||
console_init(bus, KERNEL_CONSOLE);
|
||||
puts("Starting DeforaOS...");
|
||||
puts("Command line:");
|
||||
for(i = 0; i < argc; i++)
|
||||
printf("%s%s%s", (i > 0) ? " " : "", argv[i],
|
||||
(i + 1 == argc) ? "\n" : "");
|
||||
|
|
|
@ -15,7 +15,7 @@ int main(int argc, char * argv[])
|
|||
int i;
|
||||
|
||||
puts("Failed to boot DeforaOS");
|
||||
puts("The command line was:");
|
||||
puts("Command line:");
|
||||
for(i = 0; i < argc; i++)
|
||||
printf("%s%s%s", (i > 0) ? " " : "", argv[i],
|
||||
(i + 1 == argc) ? "\n" : "");
|
||||
|
|
Loading…
Reference in New Issue
Block a user