changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/9/bcm/main.c

revision 3216: 4b8b4a29def2
parent 2503: e48d4208f76f
child 3401: 69064e032a3e
     1.1--- a/sys/src/9/bcm/main.c
     1.2+++ b/sys/src/9/bcm/main.c
     1.3@@ -216,6 +216,19 @@ optionsinit(char* s)
     1.4 }
     1.5 
     1.6 void
     1.7+gpiomeminit(void)
     1.8+{
     1.9+	Physseg seg;
    1.10+	memset(&seg, 0, sizeof seg);
    1.11+	seg.attr = SG_PHYSICAL;
    1.12+	seg.name = "gpio";
    1.13+	seg.pa = (VIRTIO+0x200000);
    1.14+	seg.size = 1;
    1.15+	addphysseg(&seg);
    1.16+}
    1.17+
    1.18+
    1.19+void
    1.20 main(void)
    1.21 {
    1.22 	extern char edata[], end[];
    1.23@@ -259,6 +272,7 @@ main(void)
    1.24 	pageinit();
    1.25 	swapinit();
    1.26 	userinit();
    1.27+	gpiomeminit();
    1.28 	schedinit();
    1.29 	assert(0);			/* shouldn't have returned */
    1.30 }