aboutsummaryrefslogtreecommitdiff
path: root/board/MAI/bios_emulator/scitech/src/v86bios/command.c
diff options
context:
space:
mode:
authorJason Jin <Jason.jin@freescale.com>2007-07-10 09:03:22 +0800
committerWolfgang Denk <wd@denx.de>2007-08-06 01:51:41 +0200
commit221838cc7eb178370ff62aa05920a582e12ac322 (patch)
tree51e017742d2d280af7bff8b88cdbfd0948448a22 /board/MAI/bios_emulator/scitech/src/v86bios/command.c
parent5618332409bb96f4448d1712899369fc80c0b489 (diff)
downloadu-boot-221838cc7eb178370ff62aa05920a582e12ac322.zip
u-boot-221838cc7eb178370ff62aa05920a582e12ac322.tar.gz
u-boot-221838cc7eb178370ff62aa05920a582e12ac322.tar.bz2
Remove the bios emulator from MAI board.
The bios emulator in the MAI board can not pass compile and have a lot of crap in it. remove it and will have a clean and small bios emulator in the drivers directory which can be uesed for every board. Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Diffstat (limited to 'board/MAI/bios_emulator/scitech/src/v86bios/command.c')
-rw-r--r--board/MAI/bios_emulator/scitech/src/v86bios/command.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/board/MAI/bios_emulator/scitech/src/v86bios/command.c b/board/MAI/bios_emulator/scitech/src/v86bios/command.c
deleted file mode 100644
index e2bce6d..0000000
--- a/board/MAI/bios_emulator/scitech/src/v86bios/command.c
+++ /dev/null
@@ -1,38 +0,0 @@
-#include <stdio.h>
-#include <readline/readline.h>
-#include <readline/history.h>
-#include <malloc.h>
-
-#define PROMPT ">"
-
-
-void
-getline(char *buf,int *num,int max_num)
-{
- static int line_len = 0;
- static char *line = NULL;
- static char *line_pointer = NULL;
- static int len = 0;
- int tmp_len;
- char *buff;
-
- if (len <= 0) {
- buff = readline(PROMPT);
- add_history(buff);
-
- if ((tmp_len = strlen(buff)) > line_len) {
- free(line);
- line = malloc(tmp_len);
- line_len = tmp_len;
- }
- sprintf(line,"%s\n",buff);
- free(buff);
- line_pointer = line;
- len = strlen(line);
- }
-
- *num = max_num > len? len : max_num;
- strncpy(buf,line_pointer,*num);
- line_pointer = line_pointer + *num;
- len = len - *num;
-}