Disabled IVY for user apps. Altered the open/read userapp test.
authorPaul Pearce <pearce@eecs.berkeley.edu>
Fri, 29 May 2009 07:20:43 +0000 (03:20 -0400)
committerKevin Klues <klueska@cs.berkeley.edu>
Fri, 5 Jun 2009 01:00:40 +0000 (18:00 -0700)
Ibid.

user/apps/parlib/Makefrag
user/apps/parlib/open_read.c

index 3df23a3..97cf182 100644 (file)
@@ -1,10 +1,11 @@
 USER_APPS_PARLIB_DIR = $(USER_APPS_DIR)/parlib
 OBJDIRS += $(USER_APPS_PARLIB_DIR)
 
-USER_APPS_PARLIB_CFLAGS    := $(USER_CFLAGS) \
+USER_APPS_PARLIB_CFLAGS    := $(USER_CFLAGS) --nodeputy \
                               -I$(USER_PARLIB_NEWLIB_DIR)/include \
                               -I$(USER_PARLIB_DIR)/inc
 
+
 USER_APPS_PARLIB_LDFLAGS   := $(USER_LDFLAGS) -static \
                               -T $(USER_APPS_PARLIB_DIR)/apps.ld
 
index 22c2257..9c1cea6 100644 (file)
@@ -7,8 +7,18 @@ int main(int argc, char** argv)
 {
        printf("Hello world from newlib!!\n");
        int fd = open("/test/file", O_RDWR, 0);
-       char buf[10];
-       int read_amt = read(fd, buf, 10);
-       printf("FD: %d\nRead Amount: %d\n", fd, read_amt);
+//     char buf[10];
+//     int read_amt = read(fd, buf, 10);
+       printf("FD: %d\n", fd);
+//     printf("read_amt: %d\n", read_amt);
+//     printf("read: %s\n", buf);
+/*
+       char buf2[] = "NANWAN!\n";
+
+       int write_amt = write(fd, buf2, 8);
+        printf("write_amt: %d\n", write_amt);        
+       printf("wrote: %s\n", buf2);
+*/
+
        return 0;
 }