update ifdef
This commit is contained in:
parent
e1ea460e3a
commit
1da653d417
@ -12,7 +12,7 @@
|
|||||||
#include "protect.h"
|
#include "protect.h"
|
||||||
#include "proc.h"
|
#include "proc.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
#define USE_FBCON
|
//#define USE_FBCON
|
||||||
extern int kernel_initial;
|
extern int kernel_initial;
|
||||||
|
|
||||||
extern int ticks;
|
extern int ticks;
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
#include "proto.h"
|
||||||
|
|
||||||
#ifdef USE_FBCON
|
#ifdef USE_FBCON
|
||||||
|
|
||||||
@ -9,7 +10,6 @@
|
|||||||
#include "memman.h"
|
#include "memman.h"
|
||||||
#include "proc.h"
|
#include "proc.h"
|
||||||
#include "protect.h"
|
#include "protect.h"
|
||||||
#include "proto.h"
|
|
||||||
#include "serialport.h"
|
#include "serialport.h"
|
||||||
#include "spinlock.h"
|
#include "spinlock.h"
|
||||||
#include "stdio.h"
|
#include "stdio.h"
|
||||||
|
|||||||
@ -130,6 +130,7 @@ void initial()
|
|||||||
printf("untar:%s\n", full_name);
|
printf("untar:%s\n", full_name);
|
||||||
strcat(full_name, INSTALL_FILENAME);
|
strcat(full_name, INSTALL_FILENAME);
|
||||||
untar(full_name);
|
untar(full_name);
|
||||||
|
#ifdef USE_FBCON
|
||||||
|
|
||||||
kprintf("loading font(%dKB) to %p...", HZK16_SIZE / num_1K, hzk16h_buf);
|
kprintf("loading font(%dKB) to %p...", HZK16_SIZE / num_1K, hzk16h_buf);
|
||||||
printf("Loading Font HZK16H...\n");
|
printf("Loading Font HZK16H...\n");
|
||||||
@ -145,12 +146,15 @@ void initial()
|
|||||||
kprintf("[\x1b[32mOK\x1b[0m]\n");
|
kprintf("[\x1b[32mOK\x1b[0m]\n");
|
||||||
printf("Font loaded.\n");
|
printf("Font loaded.\n");
|
||||||
printf("Loaing Simple Shell...\n");
|
printf("Loaing Simple Shell...\n");
|
||||||
|
#endif
|
||||||
do_vclose(stdin);
|
do_vclose(stdin);
|
||||||
do_vclose(stdout);
|
do_vclose(stdout);
|
||||||
do_vclose(stderr);
|
do_vclose(stderr);
|
||||||
// while(untared) yield();
|
#ifdef USE_FBCON
|
||||||
exec("orange/shell_0.bin");
|
exec("orange/shell_0.bin");
|
||||||
|
#else
|
||||||
|
exec("orange/shell_1.bin");
|
||||||
|
#endif
|
||||||
while (1)
|
while (1)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
@ -9,8 +9,8 @@
|
|||||||
static void kprintfputch(int ch, int *cnt)
|
static void kprintfputch(int ch, int *cnt)
|
||||||
{
|
{
|
||||||
write_serial(ch);
|
write_serial(ch);
|
||||||
// char _ch = ch;
|
char _ch = ch;
|
||||||
// tty_write(cur_ntty, &_ch, 1);
|
tty_write(cur_ntty, &_ch, 1);
|
||||||
(*cnt)++;
|
(*cnt)++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user