- Timestamp:
- 2010-02-17T19:19:08Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1e2e0c1e
- Parents:
- 01a9ef5 (diff), b8da2a3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace
- Files:
-
- 27 added
- 32 edited
- 1 moved
-
Makefile (modified) (2 diffs)
-
app/taskdump/taskdump.c (modified) (3 diffs)
-
lib/Makefile.common (modified) (2 diffs)
-
lib/libc/Makefile (modified) (2 diffs)
-
lib/libc/Makefile.toolchain (modified) (1 diff)
-
lib/libc/arch/abs32le/Makefile.inc (added)
-
lib/libc/arch/abs32le/_link.ld.in (added)
-
lib/libc/arch/abs32le/include/atomic.h (added)
-
lib/libc/arch/abs32le/include/config.h (added)
-
lib/libc/arch/abs32le/include/ddi.h (added)
-
lib/libc/arch/abs32le/include/entry.h (added)
-
lib/libc/arch/abs32le/include/faddr.h (added)
-
lib/libc/arch/abs32le/include/fibril.h (added)
-
lib/libc/arch/abs32le/include/inttypes.h (added)
-
lib/libc/arch/abs32le/include/istate.h (added)
-
lib/libc/arch/abs32le/include/limits.h (added)
-
lib/libc/arch/abs32le/include/syscall.h (added)
-
lib/libc/arch/abs32le/include/thread.h (added)
-
lib/libc/arch/abs32le/include/tls.h (added)
-
lib/libc/arch/abs32le/include/types.h (added)
-
lib/libc/arch/abs32le/src/entry.c (added)
-
lib/libc/arch/abs32le/src/fibril.c (added)
-
lib/libc/arch/abs32le/src/stacktrace.c (added)
-
lib/libc/arch/abs32le/src/syscall.c (added)
-
lib/libc/arch/abs32le/src/thread_entry.c (moved) (moved from kernel/arch/mips32/include/smp/dorder.h ) (2 diffs)
-
lib/libc/arch/abs32le/src/tls.c (added)
-
lib/libc/arch/amd64/Makefile.inc (modified) (1 diff)
-
lib/libc/arch/arm32/Makefile.inc (modified) (1 diff)
-
lib/libc/arch/ia32/Makefile.inc (modified) (1 diff)
-
lib/libc/arch/ia64/Makefile.inc (modified) (1 diff)
-
lib/libc/arch/mips32/Makefile.inc (modified) (1 diff)
-
lib/libc/arch/mips32eb/Makefile.inc (modified) (1 diff)
-
lib/libc/arch/ppc32/Makefile.inc (modified) (1 diff)
-
lib/libc/arch/sparc64/Makefile.inc (modified) (2 diffs)
-
lib/libc/arch/sparc64/include/config.h (modified) (1 diff)
-
lib/libc/arch/sparc64/src/thread_entry.s (modified) (1 diff)
-
lib/libc/generic/fibril.c (modified) (1 diff)
-
lib/libc/include/atomicdflt.h (modified) (1 diff)
-
lib/libc/include/stacktrace.h (modified) (1 diff)
-
lib/softfloat/arch/abs32le/include/functions.h (added)
-
srv/hid/fb/Makefile.build (modified) (1 diff)
-
srv/hid/fb/main.c (modified) (2 diffs)
-
srv/hid/fb/niagara.c (added)
-
srv/hid/fb/niagara.h (added)
-
srv/hid/kbd/Makefile.build (modified) (1 diff)
-
srv/hid/kbd/port/niagara.c (added)
-
srv/loader/arch/abs32le/Makefile.inc (added)
-
srv/loader/arch/abs32le/_link.ld.in (added)
-
srv/loader/arch/abs32le/abs32le.c (added)
-
srv/loader/include/arch.h (modified) (1 diff)
-
srv/net/Makefile.module (modified) (1 diff)
-
srv/net/include/byteorder.h (modified) (1 diff)
-
srv/net/modules.c (modified) (1 diff)
-
srv/net/netif/dp8390/dp8390.h (modified) (1 diff)
-
srv/net/netif/dp8390/dp8390_module.c (modified) (2 diffs)
-
srv/net/netif/dp8390/dp8390_port.h (modified) (2 diffs)
-
srv/net/netif/lo/lo.c (modified) (1 diff)
-
srv/net/netif/netif_module.h (modified) (1 diff)
-
srv/net/socket/socket_client.c (modified) (4 diffs)
-
srv/net/structures/packet/packet_remote.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile
r01a9ef5 rbfd7aac 60 60 srv/fs/devfs \ 61 61 srv/hid/adb_mouse \ 62 srv/hid/console \63 62 srv/hid/char_mouse \ 64 63 srv/hid/fb \ … … 66 65 srv/hw/char/i8042 \ 67 66 srv/net 67 68 ifneq ($(UARCH),abs32le) 69 DIRS += srv/hid/console 70 endif 68 71 69 72 ifeq ($(UARCH),amd64) -
uspace/app/taskdump/taskdump.c
r01a9ef5 rbfd7aac 54 54 #define LINE_BYTES 16 55 55 56 #define DBUF_SIZE 409657 static uint8_t data_buf[DBUF_SIZE];58 59 56 static int phoneid; 60 57 static task_id_t task_id; … … 70 67 static int thread_dump(uintptr_t thash); 71 68 static int areas_dump(void); 72 static int area_dump(as_area_info_t *area);73 static void hex_dump(uintptr_t addr, void *buffer, size_t size);74 69 static int td_read_uintptr(void *arg, uintptr_t addr, uintptr_t *value); 75 70 … … 356 351 } 357 352 358 static __attribute__((unused)) int area_dump(as_area_info_t *area)359 {360 size_t to_copy;361 size_t total;362 uintptr_t addr;363 int rc;364 365 addr = area->start_addr;366 total = 0;367 368 while (total < area->size) {369 to_copy = min(area->size - total, DBUF_SIZE);370 rc = udebug_mem_read(phoneid, data_buf, addr, to_copy);371 if (rc < 0) {372 printf("udebug_mem_read() failed.\n");373 return rc;374 }375 376 hex_dump(addr, data_buf, to_copy);377 378 addr += to_copy;379 total += to_copy;380 }381 382 return EOK;383 }384 385 static void hex_dump(uintptr_t addr, void *buffer, size_t size)386 {387 uint8_t *data = (uint8_t *) buffer;388 uint8_t b;389 size_t pos, i;390 391 assert(addr % LINE_BYTES == 0);392 assert(size % LINE_BYTES == 0);393 394 pos = 0;395 396 while (pos < size) {397 printf("%08lx:", addr + pos);398 for (i = 0; i < LINE_BYTES; ++i) {399 if (i % 4 == 0) putchar(' ');400 printf(" %02x", data[pos + i]);401 }402 putchar('\t');403 404 for (i = 0; i < LINE_BYTES; ++i) {405 b = data[pos + i];406 if (b >= 32 && b < 127) {407 putchar(b);408 } else {409 putchar(' ');410 }411 }412 putchar('\n');413 pos += LINE_BYTES;414 }415 }416 417 353 static int td_read_uintptr(void *arg, uintptr_t addr, uintptr_t *value) 418 354 { -
uspace/lib/Makefile.common
r01a9ef5 rbfd7aac 33 33 # Individual makefiles set: 34 34 # 35 # USPACE_PREFIXrelative path to uspace/ directory36 # LIBSlibraries to link with (with relative path)37 # EXTRA_CFLAGSadditional flags to pass to C compiler38 # JOBjob file name (like appname.job)39 # OUTPUToutput binary name (like appname)40 # SOURCESlist of source files35 # USPACE_PREFIX relative path to uspace/ directory 36 # LIBS libraries to link with (with relative path) 37 # EXTRA_CFLAGS additional flags to pass to C compiler 38 # JOB job file name (like appname.job) 39 # OUTPUT output binary name (like appname) 40 # SOURCES list of source files 41 41 # 42 42 … … 72 72 find . -name '*.o' -follow -exec rm \{\} \; 73 73 74 build: 74 build: 75 75 76 76 -include $(DEPEND) -
uspace/lib/libc/Makefile
r01a9ef5 rbfd7aac 31 31 32 32 USPACE_PREFIX = $(shell pwd)/../.. 33 #LIBS = $(LIBC_PREFIX)/libc.a34 33 LIBS = 35 34 … … 91 90 generic/stacktrace.c 92 91 93 ARCH_SOURCES = \94 arch/$(UARCH)/src/entry.s \95 arch/$(UARCH)/src/thread_entry.s96 97 92 SOURCES = \ 98 93 $(GENERIC_SOURCES) \ -
uspace/lib/libc/Makefile.toolchain
r01a9ef5 rbfd7aac 30 30 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 31 31 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 32 -Wall -Wextra -Wno- unused-parameter -Wmissing-prototypes \32 -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \ 33 33 -Werror-implicit-function-declaration -Werror -pipe -g -D__$(ENDIANESS)__ 34 34 -
uspace/lib/libc/arch/abs32le/src/thread_entry.c
r01a9ef5 rbfd7aac 1 1 /* 2 * Copyright (c) 20 07Martin Decky2 * Copyright (c) 2010 Martin Decky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 #ifndef KERN_mips32_DORDER_H_ 30 #define KERN_mips32_DORDER_H_ 29 /** @file 30 */ 31 31 32 extern void ipi_broadcast_arch(int ipi); 32 #include <unistd.h> 33 #include <thread.h> 33 34 34 #endif 35 void __thread_entry(void) 36 { 37 __thread_main(NULL); 38 } 39 40 /** @} 41 */ -
uspace/lib/libc/arch/amd64/Makefile.inc
r01a9ef5 rbfd7aac 34 34 TOOLCHAIN_DIR = $(CROSS_PREFIX)/amd64/bin 35 35 36 ARCH_SOURCES += arch/$(UARCH)/src/syscall.S \ 36 ARCH_SOURCES = \ 37 arch/$(UARCH)/src/entry.s \ 38 arch/$(UARCH)/src/thread_entry.s \ 39 arch/$(UARCH)/src/syscall.S \ 37 40 arch/$(UARCH)/src/fibril.S \ 38 41 arch/$(UARCH)/src/tls.c \ -
uspace/lib/libc/arch/arm32/Makefile.inc
r01a9ef5 rbfd7aac 34 34 TOOLCHAIN_DIR = $(CROSS_PREFIX)/arm32/bin 35 35 36 ARCH_SOURCES += arch/$(UARCH)/src/syscall.c \ 36 ARCH_SOURCES = \ 37 arch/$(UARCH)/src/entry.s \ 38 arch/$(UARCH)/src/thread_entry.s \ 39 arch/$(UARCH)/src/syscall.c \ 37 40 arch/$(UARCH)/src/fibril.S \ 38 41 arch/$(UARCH)/src/tls.c \ -
uspace/lib/libc/arch/ia32/Makefile.inc
r01a9ef5 rbfd7aac 34 34 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ia32/bin 35 35 36 ARCH_SOURCES += arch/$(UARCH)/src/syscall.S \ 36 ARCH_SOURCES = \ 37 arch/$(UARCH)/src/entry.s \ 38 arch/$(UARCH)/src/thread_entry.s \ 39 arch/$(UARCH)/src/syscall.S \ 37 40 arch/$(UARCH)/src/fibril.S \ 38 41 arch/$(UARCH)/src/tls.c \ -
uspace/lib/libc/arch/ia64/Makefile.inc
r01a9ef5 rbfd7aac 33 33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ia64/bin 34 34 35 ARCH_SOURCES += arch/$(UARCH)/src/syscall.S \ 35 ARCH_SOURCES = \ 36 arch/$(UARCH)/src/entry.s \ 37 arch/$(UARCH)/src/thread_entry.s \ 38 arch/$(UARCH)/src/syscall.S \ 36 39 arch/$(UARCH)/src/fibril.S \ 37 40 arch/$(UARCH)/src/tls.c \ -
uspace/lib/libc/arch/mips32/Makefile.inc
r01a9ef5 rbfd7aac 33 33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32/bin 34 34 35 ARCH_SOURCES += arch/$(UARCH)/src/syscall.c \ 35 ARCH_SOURCES = \ 36 arch/$(UARCH)/src/entry.s \ 37 arch/$(UARCH)/src/thread_entry.s \ 38 arch/$(UARCH)/src/syscall.c \ 36 39 arch/$(UARCH)/src/fibril.S \ 37 40 arch/$(UARCH)/src/tls.c \ -
uspace/lib/libc/arch/mips32eb/Makefile.inc
r01a9ef5 rbfd7aac 33 33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32eb/bin 34 34 35 ARCH_SOURCES += arch/$(UARCH)/src/syscall.c \ 35 ARCH_SOURCES = \ 36 arch/$(UARCH)/src/entry.s \ 37 arch/$(UARCH)/src/thread_entry.s \ 38 arch/$(UARCH)/src/syscall.c \ 36 39 arch/$(UARCH)/src/fibril.S \ 37 40 arch/$(UARCH)/src/tls.c \ -
uspace/lib/libc/arch/ppc32/Makefile.inc
r01a9ef5 rbfd7aac 33 33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ppc32/bin 34 34 35 ARCH_SOURCES += arch/$(UARCH)/src/syscall.c \ 35 ARCH_SOURCES = \ 36 arch/$(UARCH)/src/entry.s \ 37 arch/$(UARCH)/src/thread_entry.s \ 38 arch/$(UARCH)/src/syscall.c \ 36 39 arch/$(UARCH)/src/fibril.S \ 37 40 arch/$(UARCH)/src/tls.c \ -
uspace/lib/libc/arch/sparc64/Makefile.inc
r01a9ef5 rbfd7aac 33 33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/sparc64/bin 34 34 35 ARCH_SOURCES += arch/$(UARCH)/src/fibril.S \ 35 ARCH_SOURCES = \ 36 arch/$(UARCH)/src/entry.s \ 37 arch/$(UARCH)/src/thread_entry.s \ 38 arch/$(UARCH)/src/fibril.S \ 36 39 arch/$(UARCH)/src/tls.c \ 37 40 arch/$(UARCH)/src/stacktrace.c \ … … 45 48 BFD_NAME = elf64-sparc 46 49 BFD_ARCH = sparc 50 51 ifeq ($(PROCESSOR),us) 52 DEFS += -DSUN4U 53 endif 54 55 ifeq ($(PROCESSOR),us3) 56 DEFS += -DSUN4U 57 endif 58 59 ifeq ($(PROCESSOR),sun4v) 60 DEFS += -DSUN4V 61 endif -
uspace/lib/libc/arch/sparc64/include/config.h
r01a9ef5 rbfd7aac 36 36 #define LIBC_sparc64_CONFIG_H_ 37 37 38 #if defined (SUN4U) 38 39 #define PAGE_WIDTH 14 40 #elif defined(SUN4V) 41 #define PAGE_WIDTH 13 42 #endif 43 39 44 #define PAGE_SIZE (1 << PAGE_WIDTH) 40 45 -
uspace/lib/libc/arch/sparc64/src/thread_entry.s
r01a9ef5 rbfd7aac 38 38 # Create the first stack frame. 39 39 # 40 save %sp, -176, %sp 41 flushw 42 add %g0, -0x7ff, %fp 40 41 #save %sp, -176, %sp 42 #flushw 43 #add %g0, -0x7ff, %fp 43 44 44 45 sethi %hi(_gp), %l7 -
uspace/lib/libc/generic/fibril.c
r01a9ef5 rbfd7aac 211 211 } 212 212 213 /* Avoid srcf being clobbered by context_save() */214 srcf = __tcb_get()->fibril_data;215 216 213 /* Choose a new fibril to run */ 217 214 fibril_t *dstf; -
uspace/lib/libc/include/atomicdflt.h
r01a9ef5 rbfd7aac 56 56 } 57 57 58 #ifndef CAS 58 #ifndef CAS 59 59 static inline bool cas(atomic_t *val, long ov, long nv) 60 60 { -
uspace/lib/libc/include/stacktrace.h
r01a9ef5 rbfd7aac 57 57 extern void stacktrace_prepare(void); 58 58 extern uintptr_t stacktrace_fp_get(void); 59 extern uintptr_t stacktrace_pc_get( );59 extern uintptr_t stacktrace_pc_get(void); 60 60 61 61 #endif -
uspace/srv/hid/fb/Makefile.build
r01a9ef5 rbfd7aac 72 72 73 73 ifeq ($(UARCH),sparc64) 74 SOURCES += sgcn.c \ 75 serial_console.c 76 CFLAGS += -DSGCN_ENABLED 74 ifeq ($(PROCESSOR), sun4v) 75 SOURCES += niagara.c \ 76 serial_console.c 77 CFLAGS += -DNIAGARA_ENABLED 78 endif 79 80 ifeq ($(MACHINE), serengeti) 81 SOURCES += sgcn.c \ 82 serial_console.c 83 CFLAGS += -DSGCN_ENABLED 84 endif 77 85 endif 78 86 -
uspace/srv/hid/fb/main.c
r01a9ef5 rbfd7aac 41 41 #include "ski.h" 42 42 #include "sgcn.h" 43 #include "niagara.h" 43 44 #include "main.h" 44 45 … … 88 89 } 89 90 #endif 91 #ifdef NIAGARA_ENABLED 92 if ((!initialized) && (sysinfo_value("fb.kind") == 5)) { 93 if (niagara_init() == 0) 94 initialized = true; 95 } 96 #endif 90 97 #ifdef SKI_ENABLED 91 98 if ((!initialized) && (sysinfo_value("fb") != true)) { -
uspace/srv/hid/kbd/Makefile.build
r01a9ef5 rbfd7aac 130 130 131 131 ifeq ($(UARCH),sparc64) 132 ifeq ($( MACHINE),serengeti)132 ifeq ($(PROCESSOR),sun4v) 133 133 SOURCES += \ 134 port/ sgcn.c \134 port/niagara.c \ 135 135 ctl/stty.c 136 136 else 137 SOURCES += \ 137 ifeq ($(MACHINE),serengeti) 138 SOURCES += \ 139 port/sgcn.c \ 140 ctl/stty.c 141 endif 142 ifeq ($(MACHINE),generic) 143 SOURCES += \ 138 144 port/sun.c \ 139 145 port/z8530.c \ 140 146 port/ns16550.c \ 141 147 ctl/sun.c 148 endif 142 149 endif 150 endif 151 152 ifeq ($(UARCH),abs32le) 153 SOURCES += \ 154 port/dummy.c \ 155 ctl/pc.c 143 156 endif 144 157 -
uspace/srv/loader/include/arch.h
r01a9ef5 rbfd7aac 37 37 #define LOADER_ARCH_H_ 38 38 39 void program_run(void *entry_point, void *pcb);39 extern void program_run(void *entry_point, void *pcb); 40 40 41 41 #endif -
uspace/srv/net/Makefile.module
r01a9ef5 rbfd7aac 35 35 36 36 CFLAGS += -Iinclude -I../libadt/include 37 CFLAGS += -Wno-strict-aliasing 37 38 38 39 CHECK_CFLAGS = -fsyntax-only -Wextra -Wno-div-by-zero -Wsystem-headers -Wfloat-equal -Wdeclaration-after-statement -Wundef -Wno-endif-labels -Wshadow -Wlarger-than-1500 -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wpadded -Wredundant-decls -Wnested-externs -Wunreachable-code -Winline -Winvalid-pch -Wlong-long -Wvariadic-macros -Wdisabled-optimization -Wno-pointer-sign -
uspace/srv/net/include/byteorder.h
r01a9ef5 rbfd7aac 39 39 40 40 #include <byteorder.h> 41 42 41 #include <sys/types.h> 43 42 44 #ifdef ARCH_IS_BIG_ENDIAN45 43 46 // Already in the network byte order. 44 /** Converts the given short number ( 16 bit ) from the host byte order to the network byte order ( big endian ). 45 * @param[in] number The number in the host byte order to be converted. 46 * @returns The number in the network byte order. 47 */ 48 #define htons( number ) host2uint16_t_be( number ) 47 49 48 /** Converts the given short number ( 16bit ) from the host byte order to the network byte order ( big endian ).49 * @param[in] number The number in the host byte order to be converted.50 * @returns The number in the network byte order.51 */52 #define htons( number )( number )50 /** Converts the given long number ( 32 bit ) from the host byte order to the network byte order ( big endian ). 51 * @param[in] number The number in the host byte order to be converted. 52 * @returns The number in the network byte order. 53 */ 54 #define htonl( number ) host2uint32_t_be( number ) 53 55 54 /** Converts the given long number ( 32 bit ) from the host byte order to the network byte order ( big endian ).55 * @param[in] number The number in the hostbyte order to be converted.56 * @returns The number in the networkbyte order.57 */58 #define htonl( number )( number )56 /** Converts the given short number ( 16 bit ) from the network byte order ( big endian ) to the host byte order. 57 * @param[in] number The number in the network byte order to be converted. 58 * @returns The number in the host byte order. 59 */ 60 #define ntohs( number ) uint16_t_be2host( number ) 59 61 60 /** Converts the given short number ( 16 bit ) from the network byte order ( big endian ) to the host byte order. 61 * @param[in] number The number in the network byte order to be converted. 62 * @returns The number in the host byte order. 63 */ 64 #define ntohs( number ) ( number ) 65 66 /** Converts the given long number ( 32 bit ) from the network byte order ( big endian ) to the host byte order. 67 * @param[in] number The number in the network byte order to be converted. 68 * @returns The number in the host byte order. 69 */ 70 #define ntohl( number ) ( number ) 71 72 #else 73 74 // Has to be swapped. 75 76 /** Converts the given short number ( 16 bit ) from the host byte order to the network byte order ( big endian ). 77 * @param[in] number The number in the host byte order to be converted. 78 * @returns The number in the network byte order. 79 */ 80 #define htons( number ) uint16_t_byteorder_swap(( uint16_t )( number )) 81 82 /** Converts the given long number ( 32 bit ) from the host byte order to the network byte order ( big endian ). 83 * @param[in] number The number in the host byte order to be converted. 84 * @returns The number in the network byte order. 85 */ 86 #define htonl( number ) uint32_t_byteorder_swap( number ) 87 88 /** Converts the given short number ( 16 bit ) from the network byte order ( big endian ) to the host byte order. 89 * @param[in] number The number in the network byte order to be converted. 90 * @returns The number in the host byte order. 91 */ 92 #define ntohs( number ) uint16_t_byteorder_swap(( uint16_t )( number )) 93 94 /** Converts the given long number ( 32 bit ) from the network byte order ( big endian ) to the host byte order. 95 * @param[in] number The number in the network byte order to be converted. 96 * @returns The number in the host byte order. 97 */ 98 #define ntohl( number ) uint32_t_byteorder_swap( number ) 99 100 #endif 62 /** Converts the given long number ( 32 bit ) from the network byte order ( big endian ) to the host byte order. 63 * @param[in] number The number in the network byte order to be converted. 64 * @returns The number in the host byte order. 65 */ 66 #define ntohl( number ) uint32_t_be2host( number ) 101 67 102 68 #endif -
uspace/srv/net/modules.c
r01a9ef5 rbfd7aac 55 55 56 56 int connect_to_service_timeout( services_t need, suseconds_t timeout ){ 57 i ntphone;58 int res;57 ipcarg_t phone; 58 int res; 59 59 60 60 while( true ){ 61 res = async_req_3_5( PHONE_NS, IPC_M_CONNECT_ME_TO, need, 0, 0, NULL, NULL, NULL, NULL, ( ipcarg_t * )& phone );62 if( ( res >= 0 ) && ( phone >= 0 )){61 res = async_req_3_5( PHONE_NS, IPC_M_CONNECT_ME_TO, need, 0, 0, NULL, NULL, NULL, NULL, & phone ); 62 if( res >= 0 ){ 63 63 return phone; 64 64 } -
uspace/srv/net/netif/dp8390/dp8390.h
r01a9ef5 rbfd7aac 353 353 port_t de_data_port; 354 354 int de_16bit; 355 intde_ramsize;355 long de_ramsize; 356 356 int de_offset_page; 357 357 int de_startpage; -
uspace/srv/net/netif/dp8390/dp8390_module.c
r01a9ef5 rbfd7aac 208 208 } 209 209 210 int netif_probe_message( device_id_t device_id, int irq, int io ){210 int netif_probe_message( device_id_t device_id, int irq, uintptr_t io ){ 211 211 ERROR_DECLARE; 212 212 … … 280 280 if( device->state != NETIF_ACTIVE ){ 281 281 dep = ( dpeth_t * ) device->specific; 282 dp8390_cmds[ 0 ].addr = ( void * ) ( uint 32_t ) ( dep->de_dp8390_port + DP_ISR );282 dp8390_cmds[ 0 ].addr = ( void * ) ( uintptr_t ) ( dep->de_dp8390_port + DP_ISR ); 283 283 dp8390_cmds[ 2 ].addr = dp8390_cmds[ 0 ].addr; 284 284 ERROR_PROPAGATE( ipc_register_irq( dep->de_irq, device->device_id, device->device_id, & dp8390_code )); -
uspace/srv/net/netif/dp8390/dp8390_port.h
r01a9ef5 rbfd7aac 169 169 /** Type definition of a port. 170 170 */ 171 typedef intport_t;171 typedef long port_t; 172 172 173 173 /* dl_eth.h */ … … 256 256 /** Type definition of the virtual addresses and lengths in bytes. 257 257 */ 258 typedef unsigned intvir_bytes;258 typedef unsigned long vir_bytes; 259 259 260 260 /** Type definition of the input/output vector. -
uspace/srv/net/netif/lo/lo.c
r01a9ef5 rbfd7aac 165 165 } 166 166 167 int netif_probe_message( device_id_t device_id, int irq, int io ){167 int netif_probe_message( device_id_t device_id, int irq, uintptr_t io ){ 168 168 ERROR_DECLARE; 169 169 -
uspace/srv/net/netif/netif_module.h
r01a9ef5 rbfd7aac 60 60 * @returns Other error codes as defined for the specific module message implementation. 61 61 */ 62 int netif_probe_message( device_id_t device_id, int irq, int io );62 int netif_probe_message( device_id_t device_id, int irq, uintptr_t io ); 63 63 64 64 /** Sends the packet queue. -
uspace/srv/net/socket/socket_client.c
r01a9ef5 rbfd7aac 541 541 socket_ref new_socket; 542 542 aid_t message_id; 543 int result; 543 ipcarg_t ipc_result; 544 int result; 544 545 ipc_call_t answer; 545 546 … … 592 593 ipc_data_read_start( socket->phone, cliaddr, * addrlen ); 593 594 fibril_rwlock_write_unlock( & socket_globals.lock ); 594 async_wait_for( message_id, ( ipcarg_t * ) & result ); 595 async_wait_for( message_id, & ipc_result ); 596 result = (int) ipc_result; 595 597 if( result > 0 ){ 596 598 if( result != socket_id ){ … … 734 736 socket_ref socket; 735 737 aid_t message_id; 736 int result; 738 ipcarg_t ipc_result; 739 int result; 737 740 size_t fragments; 738 741 size_t * lengths; … … 793 796 } 794 797 } 795 async_wait_for( message_id, ( ipcarg_t * ) & result ); 798 async_wait_for( message_id, & ipc_result ); 799 result = (int) ipc_result; 796 800 // if successful 797 801 if( result == EOK ){ -
uspace/srv/net/structures/packet/packet_remote.c
r01a9ef5 rbfd7aac 65 65 ERROR_DECLARE; 66 66 67 unsigned intsize;67 ipcarg_t size; 68 68 packet_t next; 69 69 … … 101 101 ERROR_DECLARE; 102 102 103 packet_id_tpacket_id;104 unsigned int size;103 ipcarg_t packet_id; 104 ipcarg_t size; 105 105 packet_t packet; 106 106 107 if( ERROR_OCCURRED( async_req_4_2( phone, NET_PACKET_CREATE_4, max_content, addr_len, max_prefix, max_suffix, ( ipcarg_t * )& packet_id, & size ))){107 if( ERROR_OCCURRED( async_req_4_2( phone, NET_PACKET_CREATE_4, max_content, addr_len, max_prefix, max_suffix, & packet_id, & size ))){ 108 108 return NULL; 109 109 } … … 120 120 ERROR_DECLARE; 121 121 122 packet_id_t packet_id;123 unsigned int size;122 ipcarg_t packet_id; 123 ipcarg_t size; 124 124 packet_t packet; 125 125 126 if( ERROR_OCCURRED( async_req_1_2( phone, NET_PACKET_CREATE_1, content, ( ipcarg_t * )& packet_id, & size ))){126 if( ERROR_OCCURRED( async_req_1_2( phone, NET_PACKET_CREATE_1, content, & packet_id, & size ))){ 127 127 return NULL; 128 128 }
Note:
See TracChangeset
for help on using the changeset viewer.
