Changeset a8c48241 in mainline
- Timestamp:
- 2005-11-27T21:37:50Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4a28943
- Parents:
- f4338d2
- Location:
- arch/ia64
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/Makefile.inc
rf4338d2 ra8c48241 57 57 arch/$(ARCH)/src/fmath.c \ 58 58 arch/$(ARCH)/src/mm/frame.c \ 59 arch/$(ARCH)/src/drivers/it.c 59 arch/$(ARCH)/src/drivers/it.c \ 60 arch/$(ARCH)/src/drivers/keyboard.c -
arch/ia64/include/ski/ski.h
rf4338d2 ra8c48241 30 30 #define __SKI_H__ 31 31 32 #include <arch/types.h> 33 34 32 35 #define SKI_INIT_CONSOLE 20 36 #define SKI_GETCHAR 21 33 37 #define SKI_PUTCHAR 31 34 38 35 39 extern void ski_init_console(void); 36 40 extern void ski_putchar(const char ch); 41 extern __s32 ski_getchar(void); 37 42 38 43 #endif -
arch/ia64/include/types.h
rf4338d2 ra8c48241 33 33 34 34 typedef signed char __s8; 35 typedef signed short int __s16; 36 typedef signed int __s32; 37 typedef signed long __s64; 38 39 35 40 36 41 typedef unsigned char __u8; -
arch/ia64/src/drivers/it.c
rf4338d2 ra8c48241 36 36 #include <time/clock.h> 37 37 38 void keyboard(void); 39 38 40 /** Initialize Interval Timer. */ 39 41 void it_init(void) … … 64 66 srlz_d(); /* propagate changes */ 65 67 clock(); 68 keyboard(); 66 69 } -
arch/ia64/src/ia64.c
rf4338d2 ra8c48241 33 33 #include <arch/barrier.h> 34 34 #include <arch/types.h> 35 #include <arch/drivers/keyboard.h> 36 37 #include <console/console.h> 35 38 36 39 void arch_pre_mm_init(void) … … 41 44 42 45 ski_init_console(); 46 keyboard_init(); 43 47 it_init(); 44 48 } -
arch/ia64/src/ski/ski.c
rf4338d2 ra8c48241 65 65 if (ch == '\n') ski_putchar('\r'); 66 66 } 67 68 69 /** Display character on debug console 70 * 71 * Use SSC (Simulator System Call) to 72 * get character from debug console. 73 */ 74 __s32 ski_getchar(void) 75 { 76 __u64 ch; 77 78 __asm__ ( 79 "mov r15=%0\n" 80 "break 0x80000;;\n" /* modifies r8 */ 81 "mov %1=r8;;\n" 82 83 : 84 : "i" (SKI_GETCHAR), "r" (ch) 85 : "r15", "r8" 86 ); 87 88 return (__s32)ch; 89 }
Note:
See TracChangeset
for help on using the changeset viewer.