shithub: riscv

Download patch

ref: 07f7c46d37adbf85750526d0a250149d52870e6f
parent: 314e23b709b91ceddd3ced7bc77194eec0945cf5
author: cinap_lenrek <[email protected]>
date: Sat Jun 7 20:13:10 EDT 2014

omap4: update for new syscall interface and syscallfmt

--- a/sys/src/9/omap4/mem.h
+++ b/sys/src/9/omap4/mem.h
@@ -30,7 +30,9 @@
 #define KSTKSIZ		(16*KiB)
 #define KSTACK		KSTKSIZ
 #define USTKSIZE		(8*MiB)
-#define HZ		100
+
+#define	HZ		(100)			/* clock frequency */
+#define	MS2HZ		(1000/HZ)		/* millisec per clock tick */
 
 #define	MAXSYSARG	7
 #define MAXMACH		2
--- a/sys/src/9/omap4/mkfile
+++ b/sys/src/9/omap4/mkfile
@@ -32,6 +32,7 @@
 	qlock.$O\
 	segment.$O\
 	swap.$O\
+	syscallfmt.$O\
 	sysfile.$O\
 	sysproc.$O\
 	taslock.$O\
@@ -46,6 +47,7 @@
 	clock.$O\
 	arch.$O\
 	trap.$O\
+	syscall.$O\
 	$CONF.root.$O\
 	$CONF.rootc.$O\
 	$DEVS\
--- a/sys/src/9/omap4/panda
+++ b/sys/src/9/omap4/panda
@@ -29,7 +29,7 @@
 #	mouse
 
 	uart
-	usb
+#	usb
 
 link
 #	archoma
@@ -39,7 +39,7 @@
 	netdevmedium
 
 #	usbohci
-	usbehci		usbehciomap
+#	usbehci		usbehciomap
 
 ip
 	tcp
@@ -58,7 +58,6 @@
 #	mouse
 #	sdaoe		sdscsi
 #	softfpu
-#	syscall
 #	uarti8250
 #	ucalloc
 #	ucallocb
--- a/sys/src/9/omap4/trap.c
+++ b/sys/src/9/omap4/trap.c
@@ -346,7 +346,7 @@
 			error(Ebadarg);
 		}
 		up->psstate = sysctab[scall];
-		ret = systab[scall](up->s.args);
+		ret = systab[scall]((va_list)up->s.args);
 		poperror();
 	}else{
 		e = up->syserrstr;