Changeset 39cb79a in mainline
- Timestamp:
- 2005-10-29T13:37:52Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2cd0485d
- Parents:
- b9b103d3
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/sparc64/Makefile.inc
rb9b103d3 r39cb79a 20 20 arch_sources= \ 21 21 src/arch/dummy.s \ 22 src/arch/start.S 22 src/arch/start.S \ 23 src/arch/sparc64.c 24 -
arch/sparc64/_link.ld
rb9b103d3 r39cb79a 12 12 13 13 SECTIONS { 14 .image 0x 80000000: AT (0x80000000) {14 .image 0x4000: AT (0x4000) { 15 15 ktext_start = .; 16 16 *(K_TEXT_START) … … 31 31 LONG(kdata_end - kdata_start); 32 32 hardcoded_load_address = .; 33 LONG(0x 80000000);33 LONG(0x4000); 34 34 *(.bss); /* uninitialized static variables */ 35 35 *(COMMON); /* global variables */ -
arch/sparc64/src/dummy.s
rb9b103d3 r39cb79a 29 29 .text 30 30 31 .global arch_late_init32 .global arch_post_mm_init33 .global arch_pre_mm_init34 31 .global asm_delay_loop 35 32 .global before_thread_runs_arch 36 .global calibrate_delay_loop37 33 .global context_restore_arch 38 34 .global context_save_arch … … 60 56 .global dummy 61 57 62 arch_late_init:63 arch_post_mm_init:64 arch_pre_mm_init:65 58 asm_delay_loop: 66 59 before_thread_runs_arch: 67 calibrate_delay_loop:68 60 context_restore_arch: 69 61 context_save_arch: -
arch/sparc64/src/start.S
rb9b103d3 r39cb79a 32 32 kernel_image_start: 33 33 0: 34 b 0b34 b 1f 35 35 nop 36 37 # 38 # This header forces SILO to load the kernel at 0x4000. 39 # More precisely, SILO will think this is an old version of Linux. 40 # 41 .ascii "HdrS" 42 .word 0 43 .half 0 44 45 .align 8 46 47 1: 48 set ofw, %l0 49 stx %o4, [%l0] 50 51 call ofw_init 52 nop 53 54 2: 55 b 2b 56 nop 57 -
genarch/include/firmware/ofw/ofw.h
rb9b103d3 r39cb79a 34 34 #define MAX_OFW_ARGS 10 35 35 36 typedef __ u32ofw_arg_t;37 typedef __u32ihandle;38 typedef __u32phandle;36 typedef __native ofw_arg_t; 37 typedef int ihandle; 38 typedef int phandle; 39 39 40 40 /** OpenFirmware command structure … … 43 43 typedef struct { 44 44 const char *service; /**< Command name */ 45 __ u32 nargs;/**< Number of in arguments */46 __ u32 nret;/**< Number of out arguments */45 __native nargs; /**< Number of in arguments */ 46 __native nret; /**< Number of out arguments */ 47 47 ofw_arg_t args[MAX_OFW_ARGS]; /**< List of arguments */ 48 48 } ofw_args_t; … … 54 54 extern void ofw_init(void); 55 55 extern void ofw_done(void); 56 extern __ addressofw_call(const char *service, const int nargs, const int nret, ...);56 extern __native ofw_call(const char *service, const int nargs, const int nret, ...); 57 57 extern void ofw_putchar(const char ch); 58 58 extern phandle ofw_find_device(const char *name); -
genarch/src/firmware/ofw/ofw.c
rb9b103d3 r39cb79a 50 50 void ofw_done(void) 51 51 { 52 ofw_call("exit", 0, 0);52 (void) ofw_call("exit", 0, 0); 53 53 cpu_halt(); 54 54 } 55 55 56 __ addressofw_call(const char *service, const int nargs, const int nret, ...)56 __native ofw_call(const char *service, const int nargs, const int nret, ...) 57 57 { 58 58 va_list list; … … 82 82 return; 83 83 84 ofw_call("write", 3, 1, ofw_stdout, &ch, 1);84 (void) ofw_call("write", 3, 1, ofw_stdout, &ch, 1); 85 85 } 86 86 87 87 phandle ofw_find_device(const char *name) 88 88 { 89 return ofw_call("finddevice", 1, 1, name);89 return (phandle) ofw_call("finddevice", 1, 1, name); 90 90 } 91 91 92 92 int ofw_get_property(const phandle device, const char *name, void *buf, const int buflen) 93 93 { 94 return ofw_call("getprop", 4, 1, device, name, buf, buflen);94 return (int) ofw_call("getprop", 4, 1, device, name, buf, buflen); 95 95 } 96 96
Note:
See TracChangeset
for help on using the changeset viewer.