Преглед изворни кода

Plan 9 from Bell Labs 2011-08-27

David du Colombier пре 12 година
родитељ
комит
4b3b64baa7
3 измењених фајлова са 13 додато и 6 уклоњено
  1. 1 0
      sys/src/9/pc/dat.h
  2. 1 1
      sys/src/9/pc/pci.c
  3. 11 5
      sys/src/9/port/portdat.h

+ 1 - 0
sys/src/9/pc/dat.h

@@ -28,6 +28,7 @@ typedef struct Vctl	Vctl;
 #define MAXSYSARG	5	/* for mount(fd, afd, mpt, flag, arg) */
 
 #define KMESGSIZE (256*1024)	/* lots, for acpi debugging */
+#define STAGESIZE 2048
 
 /*
  *  parameters for sysproc.c

+ 1 - 1
sys/src/9/pc/pci.c

@@ -13,7 +13,7 @@
 
 struct
 {
-	char	output[16384];
+	char	output[PCICONSSIZE];
 	int	ptr;
 }PCICONS;
 

+ 11 - 5
sys/src/9/port/portdat.h

@@ -58,6 +58,16 @@ typedef int    Devgen(Chan*, char*, Dirtab*, int, int, Dir*);
 
 #include <fcall.h>
 
+#ifndef KMESGSIZE
+#define KMESGSIZE (16*1024)
+#endif
+#ifndef PCICONSSIZE
+#define PCICONSSIZE (16*1024)
+#endif
+#ifndef STAGESIZE
+#define STAGESIZE 64
+#endif
+
 struct Ref
 {
 	Lock;
@@ -853,7 +863,7 @@ struct PhysUart
 };
 
 enum {
-	Stagesize=	2048
+	Stagesize=	STAGESIZE
 };
 
 /*
@@ -959,7 +969,3 @@ enum
 #pragma	varargck	type	"V"	uchar*
 #pragma	varargck	type	"E"	uchar*
 #pragma	varargck	type	"M"	uchar*
-
-#ifndef KMESGSIZE
-#define KMESGSIZE (16*1024)
-#endif