diff options
author | imp <imp@FreeBSD.org> | 2006-10-21 22:43:39 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2006-10-21 22:43:39 +0000 |
commit | 824e6015c6b776e76be94918e8a5a6257aa800c9 (patch) | |
tree | 4c7ed6260da8b0a5774fdaf144d4ae1bf441f74b /sys/boot/arm | |
parent | ceb6dbfdd1fac5027a02d411f7349682eb6dd3e6 (diff) | |
download | FreeBSD-src-824e6015c6b776e76be94918e8a5a6257aa800c9.zip FreeBSD-src-824e6015c6b776e76be94918e8a5a6257aa800c9.tar.gz |
MFp4: Move to smaller code footprint.
Diffstat (limited to 'sys/boot/arm')
-rw-r--r-- | sys/boot/arm/at91/bootiic/env_vars.c | 2 | ||||
-rw-r--r-- | sys/boot/arm/at91/bootiic/loader_prompt.c | 38 |
2 files changed, 20 insertions, 20 deletions
diff --git a/sys/boot/arm/at91/bootiic/env_vars.c b/sys/boot/arm/at91/bootiic/env_vars.c index 78afae9..f402a43 100644 --- a/sys/boot/arm/at91/bootiic/env_vars.c +++ b/sys/boot/arm/at91/bootiic/env_vars.c @@ -93,7 +93,7 @@ WriteCommandTable(void) if (size < 0) { continue; } - p_memcpy(cPtr, boot_commands[i], copySize); + memcpy(cPtr, boot_commands[i], copySize); cPtr += copySize; *cPtr++ = 0; } diff --git a/sys/boot/arm/at91/bootiic/loader_prompt.c b/sys/boot/arm/at91/bootiic/loader_prompt.c index 94e30d9..29413b8 100644 --- a/sys/boot/arm/at91/bootiic/loader_prompt.c +++ b/sys/boot/arm/at91/bootiic/loader_prompt.c @@ -93,7 +93,7 @@ StringToCommand(char *cPtr) int i; for (i = 0; CommandTable[i].command != COMMAND_FINAL_FLAG; ++i) - if (!p_strcmp(CommandTable[i].c_string, cPtr)) + if (!strcmp(CommandTable[i].c_string, cPtr)) return (CommandTable[i].command); return (COMMAND_INVALID); @@ -188,7 +188,7 @@ ParseCommand(char *buffer) to = (char *)p_ASCIIToHex(argv[1]); from = (char *)p_ASCIIToHex(argv[2]); size = p_ASCIIToHex(argv[3]); - p_memcpy(to, from, size); + memcpy(to, from, size); } break; } @@ -234,20 +234,20 @@ ParseCommand(char *buffer) case COMMAND_HELP: // dump command info - printf("Commands:\r\n" - "\tc\r\n" - "\td\r\n" - "\te\r\n" - "\tip\r\n" - "\tserver_ip\r\n" - "\tm\r\n" - "\ttftp\r\n" - "\ts\r\n" + printf("Commands:\n" + "\tc\n" + "\td\n" + "\te\n" + "\tip\n" + "\tserver_ip\n" + "\tm\n" + "\ttftp\n" + "\ts\n" #ifdef SUPPORT_TAG_LIST - "\tt\r\n" + "\tt\n" #endif - "\tw\r\n" - "\tx\r\n"); + "\tw\n" + "\tx\n"); break; case COMMAND_LOCAL_IP: @@ -315,7 +315,7 @@ ParseCommand(char *buffer) break; } - printf("\r\n"); + printf("\n"); } @@ -324,7 +324,7 @@ ParseCommand(char *buffer) * void ServicePrompt(char) * This private function process each character checking for valid commands. * This function is only executed if the character is considered valid. - * Each command is terminated with NULL (0) or '\r'. + * Each command is terminated with NULL (0) or ''. * .KB_C_FN_DEFINITION_END */ static void @@ -346,11 +346,11 @@ ServicePrompt(char p_char) putchar(p_char); } if (!p_char) { - printf("\r\n"); + printf("\n"); ParseCommand(inputBuffer); p_memset(inputBuffer, 0, MAX_INPUT_SIZE); buffCount = 0; - printf("\r\n>"); + printf("\n>"); } } @@ -379,7 +379,7 @@ Bootloader(int(*inputFunction)(int)) inputFunction = getc; } - printf("\r\n>"); + printf("\n>"); while (1) if ((ch = ((*inputFunction)(0))) > 0) |