Changeset 6efb4d2 in mainline
- Timestamp:
- 2012-05-04T09:45:34Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1a23f6e
- Parents:
- 7360332
- Location:
- uspace/app/msim
- Files:
-
- 1 added
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/msim/Makefile
r7360332 r6efb4d2 36 36 37 37 MSIM_HELENOS_MAKEFILE = Makefile.msim.src 38 MSIM_HELENOS_PLATFORM_FILES = helenos.c helenos_input.c 38 MSIM_HELENOS_PLATFORM_FILES = misc.c input.c 39 MSIM_HELENOS_ARCH_DIR = arch/helenos 39 40 MSIM_PATCHED_FILES = \ 40 41 $(MSIM_DIST)/config.h \ 41 42 $(MSIM_DIST)/src/$(MSIM_HELENOS_MAKEFILE) \ 42 $(MSIM_DIST)/src/helenos.c \ 43 $(MSIM_DIST)/src/helenos_input.c 43 $(MSIM_DIST)/src/$(MSIM_HELENOS_ARCH_DIR)/helenos.h \ 44 $(MSIM_DIST)/src/$(MSIM_HELENOS_ARCH_DIR)/misc.c \ 45 $(MSIM_DIST)/src/$(MSIM_HELENOS_ARCH_DIR)/input.c 46 47 MSIM_EXTRA_SOURCES := $(addprefix $(MSIM_HELENOS_ARCH_DIR)/,$(MSIM_HELENOS_PLATFORM_FILES)) 44 48 45 49 CP = /bin/cp -f … … 63 67 $(CP) $< $@ 64 68 65 $(MSIM_DIST)/src/ helenos.c: helenos.c| unpack-tarball69 $(MSIM_DIST)/src/$(MSIM_HELENOS_ARCH_DIR)/helenos.h: arch_helenos/helenos.h | unpack-tarball 66 70 $(CP) $< $@ 67 71 68 $(MSIM_DIST)/src/helenos_input.c: helenos_input.c | unpack-tarball 72 $(MSIM_DIST)/src/$(MSIM_HELENOS_ARCH_DIR)/misc.c: arch_helenos/misc.c | unpack-tarball 73 $(CP) $< $@ 74 75 $(MSIM_DIST)/src/$(MSIM_HELENOS_ARCH_DIR)/input.c: arch_helenos/input.c | unpack-tarball 69 76 $(CP) $< $@ 70 77 … … 79 86 ) | make -f - | grep 'SOURCES' >Makefile.sources 80 87 sed \ 81 -e 's:io/input.c:$(MSIM_ HELENOS_PLATFORM_FILES):' \88 -e 's:io/input.c:$(MSIM_EXTRA_SOURCES):' \ 82 89 -e 's:debug/gdb.c::' \ 83 90 -e 's:arch/posix/stdin.c::' \ … … 90 97 unpack-tarball: $(MSIM_TARBALL) 91 98 tar xjf $(MSIM_TARBALL) 99 mkdir -p $(MSIM_DIST)/src/$(MSIM_HELENOS_ARCH_DIR) -
uspace/app/msim/arch_helenos/input.c
r7360332 r6efb4d2 32 32 /** @file HelenOS specific functions for MSIM simulator. 33 33 */ 34 #include "io/input.h" 35 #include "io/output.h" 36 #include "fault.h" 34 #include "../../io/input.h" 35 #include "../../io/output.h" 36 #include "../../fault.h" 37 #include "helenos.h" 37 38 #include <tinput.h> 38 39 #include <errno.h> 39 40 40 41 static tinput_t *input_prompt; 41 42 char *input_helenos_get_next_command(void);43 void helenos_dprinter_init(void);44 42 45 43 /** Terminal and readline initialization … … 67 65 } 68 66 69 char * input_helenos_get_next_command(void)67 char *helenos_input_get_next_command(void) 70 68 { 71 69 tinput_set_prompt(input_prompt, "[msim] "); -
uspace/app/msim/arch_helenos/misc.c
r7360332 r6efb4d2 32 32 /** @file HelenOS specific functions for MSIM simulator. 33 33 */ 34 #include "io/input.h" 35 #include "io/output.h" 36 #include "device/dprinter.h" 37 #include "debug/gdb.h" 38 #include "cmd.h" 39 #include "fault.h" 40 #include "device/machine.h" 34 #include "../../io/input.h" 35 #include "../../io/output.h" 36 #include "../../device/dprinter.h" 37 #include "../../debug/gdb.h" 38 #include "../../cmd.h" 39 #include "../../fault.h" 40 #include "../../device/machine.h" 41 #include "helenos.h" 41 42 #include <str.h> 42 43 #include <malloc.h> … … 53 54 // #define DUMP_ANSI_ESCAPE_SEQUENCES 54 55 55 extern char *input_helenos_get_next_command(void);56 57 56 void interactive_control(void) 58 57 { … … 67 66 68 67 while (interactive) { 69 char *commline = input_helenos_get_next_command();68 char *commline = helenos_input_get_next_command(); 70 69 if (commline == NULL) { 71 70 mprintf("Quit\n"); … … 98 97 } 99 98 100 101 char *input_helenos_get_next_command(void);102 99 103 100 static void (*original_printer_write)(cpu_t *, device_s *, ptr_t, uint32_t);
Note:
See TracChangeset
for help on using the changeset viewer.