Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Mayer
u-boot
Commits
3ca9122f
Commit
3ca9122f
authored
18 years ago
by
Stefan Roese
Browse files
Options
Downloads
Patches
Plain Diff
Fix CONFIG_CMDLINE_EDITING implementation
Patch by Stefan Roese, 27 Jul 2006
parent
4819fad9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG
+4
-1
4 additions, 1 deletion
CHANGELOG
common/main.c
+9
-2
9 additions, 2 deletions
common/main.c
with
13 additions
and
3 deletions
CHANGELOG
+
4
−
1
View file @
3ca9122f
...
@@ -2,8 +2,11 @@
...
@@ -2,8 +2,11 @@
Changes since U-Boot 1.1.4:
Changes since U-Boot 1.1.4:
======================================================================
======================================================================
* Fix CONFIG_CMDLINE_EDITING implementation
Patch by Stefan Roese, 27 Jul 2006
* MCC200: set default configuration to low_boot DDR,
* MCC200: set default configuration to low_boot DDR,
and support for configurable options high_boot and/or SDRAM.
and support for configurable options high_boot and/or SDRAM.
* Add support for 256 MB SDRAM on CPU87
* Add support for 256 MB SDRAM on CPU87
Patch by Josef Wagner, 25 Nov 2005
Patch by Josef Wagner, 25 Nov 2005
...
...
This diff is collapsed.
Click to expand it.
common/main.c
+
9
−
2
View file @
3ca9122f
...
@@ -53,7 +53,6 @@ extern int do_bootd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
...
@@ -53,7 +53,6 @@ extern int do_bootd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
#define MAX_DELAY_STOP_STR 32
#define MAX_DELAY_STOP_STR 32
static
char
*
delete_char
(
char
*
buffer
,
char
*
p
,
int
*
colp
,
int
*
np
,
int
plen
);
static
int
parse_line
(
char
*
,
char
*
[]);
static
int
parse_line
(
char
*
,
char
*
[]);
#if defined(CONFIG_BOOTDELAY) && (CONFIG_BOOTDELAY >= 0)
#if defined(CONFIG_BOOTDELAY) && (CONFIG_BOOTDELAY >= 0)
static
int
abortboot
(
int
);
static
int
abortboot
(
int
);
...
@@ -63,8 +62,11 @@ static int abortboot(int);
...
@@ -63,8 +62,11 @@ static int abortboot(int);
char
console_buffer
[
CFG_CBSIZE
];
/* console I/O buffer */
char
console_buffer
[
CFG_CBSIZE
];
/* console I/O buffer */
#ifndef CONFIG_CMDLINE_EDITING
static
char
*
delete_char
(
char
*
buffer
,
char
*
p
,
int
*
colp
,
int
*
np
,
int
plen
);
static
char
erase_seq
[]
=
"
\b
\b
"
;
/* erase sequence */
static
char
erase_seq
[]
=
"
\b
\b
"
;
/* erase sequence */
static
char
tab_seq
[]
=
" "
;
/* used to expand TABs */
static
char
tab_seq
[]
=
" "
;
/* used to expand TABs */
#endif
/* CONFIG_CMDLINE_EDITING */
#ifdef CONFIG_BOOT_RETRY_TIME
#ifdef CONFIG_BOOT_RETRY_TIME
static
uint64_t
endtime
=
0
;
/* must be set, default is instant timeout */
static
uint64_t
endtime
=
0
;
/* must be set, default is instant timeout */
...
@@ -641,6 +643,7 @@ static char* hist_next(void)
...
@@ -641,6 +643,7 @@ static char* hist_next(void)
return
(
ret
);
return
(
ret
);
}
}
#ifndef CONFIG_CMDLINE_EDITING
static
void
cread_print_hist_list
(
void
)
static
void
cread_print_hist_list
(
void
)
{
{
int
i
;
int
i
;
...
@@ -659,6 +662,7 @@ static void cread_print_hist_list(void)
...
@@ -659,6 +662,7 @@ static void cread_print_hist_list(void)
i
++
;
i
++
;
}
}
}
}
#endif
/* CONFIG_CMDLINE_EDITING */
#define BEGINNING_OF_LINE() { \
#define BEGINNING_OF_LINE() { \
while (num) { \
while (num) { \
...
@@ -942,7 +946,8 @@ int readline (const char *const prompt)
...
@@ -942,7 +946,8 @@ int readline (const char *const prompt)
puts
(
prompt
);
puts
(
prompt
);
return
cread_line
(
p
,
&
len
);
cread_line
(
p
,
&
len
);
return
len
;
#else
#else
char
*
p
=
console_buffer
;
char
*
p
=
console_buffer
;
int
n
=
0
;
/* buffer index */
int
n
=
0
;
/* buffer index */
...
@@ -1044,6 +1049,7 @@ int readline (const char *const prompt)
...
@@ -1044,6 +1049,7 @@ int readline (const char *const prompt)
/****************************************************************************/
/****************************************************************************/
#ifndef CONFIG_CMDLINE_EDITING
static
char
*
delete_char
(
char
*
buffer
,
char
*
p
,
int
*
colp
,
int
*
np
,
int
plen
)
static
char
*
delete_char
(
char
*
buffer
,
char
*
p
,
int
*
colp
,
int
*
np
,
int
plen
)
{
{
char
*
s
;
char
*
s
;
...
@@ -1073,6 +1079,7 @@ static char * delete_char (char *buffer, char *p, int *colp, int *np, int plen)
...
@@ -1073,6 +1079,7 @@ static char * delete_char (char *buffer, char *p, int *colp, int *np, int plen)
(
*
np
)
--
;
(
*
np
)
--
;
return
(
p
);
return
(
p
);
}
}
#endif
/* CONFIG_CMDLINE_EDITING */
/****************************************************************************/
/****************************************************************************/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment