Changeset 7ca8b36b in mainline
- Timestamp:
- 2006-05-21T14:32:28Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 25bf215
- Parents:
- a33c990
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/src/start.S
ra33c990 r7ca8b36b 223 223 224 224 beqz $k0, syscall_shortcut 225 add $k0, 8 # Revert $k 1back to correct exc number225 add $k0, 8 # Revert $k0 back to correct exc number 226 226 227 227 REGISTERS_STORE_AND_EXC_RESET $sp … … 240 240 #define SS_STATUS EOFFSET_STATUS 241 241 #define SS_EPC EOFFSET_EPC 242 #define SS_K1 EOFFSET_K1 242 243 syscall_shortcut: 243 244 # We have a lot of space on the stack, with free use … … 245 246 mfc0 $t0, $status 246 247 sw $t1,SS_EPC($sp) # Save EPC 248 sw $k1,SS_K1($sp) # Save k1, which is not saved during context switch 247 249 248 250 and $t2, $t0, REG_SAVE_MASK # Save only KSU,EXL,ERL,IE … … 271 273 # restore epc+4 272 274 lw $t0,SS_EPC($sp) 275 lw $k1,SS_K1($sp) 273 276 addi $t0, $t0, 4 274 277 mtc0 $t0, $epc -
contrib/conf/gxemul.sh
ra33c990 r7ca8b36b 2 2 # Uspace addresses outside of normal memory (kernel has std. 8 or 16MB) 3 3 # we place the pages at 24M 4 gxemul $@ -E testmips -X 0x81800000:../uspace/ns/ns 0x81900000:../uspace/kbd/kbd 0x81a00000:../uspace/ init/init kernel.bin4 gxemul $@ -E testmips -X 0x81800000:../uspace/ns/ns 0x81900000:../uspace/kbd/kbd 0x81a00000:../uspace/fb/fb 0x81b00000:../uspace/init/init kernel.bin -
generic/src/syscall/syscall.c
ra33c990 r7ca8b36b 48 48 #include <sysinfo/sysinfo.h> 49 49 50 static __native sys_io(int fd, const void * buf, size_t count) {51 52 return count; /*Syscall deprecated*/50 static __native sys_io(int fd, const void * buf, size_t count) 51 { 52 // return count; /*Syscall deprecated*/ 53 53 // TODO: buf sanity checks and a lot of other stuff ... 54 /* 54 55 55 size_t i; 56 56 … … 58 58 putchar(((char *) buf)[i]); 59 59 60 return count; */60 return count; 61 61 } 62 62
Note:
See TracChangeset
for help on using the changeset viewer.