qa: build everything with -Werror
This commit is contained in:
parent
51d12f1f34
commit
e93aafc028
|
@ -14,6 +14,7 @@
|
||||||
"-O0",
|
"-O0",
|
||||||
"-static",
|
"-static",
|
||||||
"-Wall",
|
"-Wall",
|
||||||
|
"-Werror",
|
||||||
"-Wno-main",
|
"-Wno-main",
|
||||||
"-Wno-missing-braces",
|
"-Wno-missing-braces",
|
||||||
"-Wno-parentheses",
|
"-Wno-parentheses",
|
||||||
|
|
|
@ -3,9 +3,6 @@
|
||||||
"Include": [
|
"Include": [
|
||||||
"/sys/src/cmd/cmd.json"
|
"/sys/src/cmd/cmd.json"
|
||||||
],
|
],
|
||||||
"CFlags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Projects": [
|
"Projects": [
|
||||||
"win/"
|
"win/"
|
||||||
],
|
],
|
||||||
|
|
|
@ -3,9 +3,6 @@
|
||||||
"Include": [
|
"Include": [
|
||||||
"/sys/src/cmd/cmd.json"
|
"/sys/src/cmd/cmd.json"
|
||||||
],
|
],
|
||||||
"CFlags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Install": "/arch/$ARCH/aux/acme/",
|
"Install": "/arch/$ARCH/aux/acme/",
|
||||||
"Program": "win",
|
"Program": "win",
|
||||||
"SourceFiles": [
|
"SourceFiles": [
|
||||||
|
|
|
@ -3,9 +3,6 @@
|
||||||
"Include": [
|
"Include": [
|
||||||
"/sys/src/cmd/cmd.json"
|
"/sys/src/cmd/cmd.json"
|
||||||
],
|
],
|
||||||
"CFlags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Install": "/arch/$ARCH/cmd/",
|
"Install": "/arch/$ARCH/cmd/",
|
||||||
"Program": "acme",
|
"Program": "acme",
|
||||||
"SourceFiles": [
|
"SourceFiles": [
|
||||||
|
|
|
@ -11,8 +11,7 @@
|
||||||
"git clean -xdf ./"
|
"git clean -xdf ./"
|
||||||
],
|
],
|
||||||
"Cflags": [
|
"Cflags": [
|
||||||
"-DYYMALLOC=malloc",
|
"-DYYMALLOC=malloc"
|
||||||
"-Werror"
|
|
||||||
],
|
],
|
||||||
"Install": "/arch/$ARCH/cmd/",
|
"Install": "/arch/$ARCH/cmd/",
|
||||||
"Program": "awk",
|
"Program": "awk",
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
#include "dosfs.h"
|
#include "dosfs.h"
|
||||||
#include "fns.h"
|
#include "fns.h"
|
||||||
|
|
||||||
|
extern int putlongname(Xfs *xf, Dosptr *ndp, char *name, char sname[13]);
|
||||||
|
|
||||||
void
|
void
|
||||||
rversion(void)
|
rversion(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -19,14 +19,14 @@
|
||||||
static Iotrack hiob[HIOB+1]; /* hash buckets + lru list */
|
static Iotrack hiob[HIOB+1]; /* hash buckets + lru list */
|
||||||
static Iotrack iobuf[NIOBUF]; /* the real ones */
|
static Iotrack iobuf[NIOBUF]; /* the real ones */
|
||||||
|
|
||||||
#define UNLINK(p, nx, pr) ((p)->pr->nx = (p)->nx, (p)->nx->pr = (p)->pr)
|
#define UNLINK(p, nx, pr) {(p)->pr->nx = (p)->nx; (p)->nx->pr = (p)->pr;}
|
||||||
|
|
||||||
#define LINK(h, p, nx, pr) ((p)->nx = (h)->nx, (p)->pr = (h), \
|
#define LINK(h, p, nx, pr) {(p)->nx = (h)->nx; (p)->pr = (h), \
|
||||||
(h)->nx->pr = (p), (h)->nx = (p))
|
(h)->nx->pr = (p); (h)->nx = (p);}
|
||||||
|
|
||||||
#define HTOFRONT(h, p) ((h)->hnext != (p) && (UNLINK(p,hnext,hprev), LINK(h,p,hnext,hprev)))
|
#define HTOFRONT(h, p) if((h)->hnext != (p)) { UNLINK(p,hnext,hprev); LINK(h,p,hnext,hprev); }
|
||||||
|
|
||||||
#define TOFRONT(h, p) ((h)->next != (p) && (UNLINK(p, next, prev), LINK(h,p, next, prev)))
|
#define TOFRONT(h, p) if((h)->next != (p)) { UNLINK(p, next, prev); LINK(h,p, next, prev); }
|
||||||
|
|
||||||
Iosect *
|
Iosect *
|
||||||
getsect(Xfs *xf, int32_t addr)
|
getsect(Xfs *xf, int32_t addr)
|
||||||
|
|
|
@ -19,14 +19,16 @@ static Xfs *xhead;
|
||||||
static Xfile *xfiles[FIDMOD], *freelist;
|
static Xfile *xfiles[FIDMOD], *freelist;
|
||||||
static MLock xlock, xlocks[FIDMOD], freelock;
|
static MLock xlock, xlocks[FIDMOD], freelock;
|
||||||
|
|
||||||
|
#if 0
|
||||||
static int
|
static int
|
||||||
okmode(int omode, int fmode)
|
okmode(int omode, int fmode)
|
||||||
{
|
{
|
||||||
if(omode == OREAD)
|
if(omode == OREAD)
|
||||||
return fmode & 4;
|
return fmode & 4;
|
||||||
/* else ORDWR */
|
/* else ORDWR */
|
||||||
return (fmode & 6) == 6;
|
return (fmode & ORDWR) == ORDWR;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
Xfs *
|
Xfs *
|
||||||
getxfs(char *user, char *name)
|
getxfs(char *user, char *name)
|
||||||
|
@ -56,7 +58,7 @@ getxfs(char *user, char *name)
|
||||||
offset = 0;
|
offset = 0;
|
||||||
if(p = strrchr(name, ':')){
|
if(p = strrchr(name, ':')){
|
||||||
*p++ = 0;
|
*p++ = 0;
|
||||||
offset = strtol(p, (const char **)&q, 0);
|
offset = strtol(p, &q, 0);
|
||||||
chat("name %s, offset %ld\n", p, offset);
|
chat("name %s, offset %ld\n", p, offset);
|
||||||
if(offset < 0 || p == q){
|
if(offset < 0 || p == q){
|
||||||
errno = Enofilsys;
|
errno = Enofilsys;
|
||||||
|
|
|
@ -77,8 +77,8 @@ fcmp(const void *va, const void *vb)
|
||||||
Re **aa, **bb;
|
Re **aa, **bb;
|
||||||
Re *a, *b;
|
Re *a, *b;
|
||||||
|
|
||||||
aa = va;
|
aa = (Re **)va;
|
||||||
bb = vb;
|
bb = (Re **)vb;
|
||||||
a = *aa;
|
a = *aa;
|
||||||
b = *bb;
|
b = *bb;
|
||||||
if (a > b)
|
if (a > b)
|
||||||
|
@ -199,7 +199,7 @@ int
|
||||||
pcmp(const void *va, const void *vb)
|
pcmp(const void *va, const void *vb)
|
||||||
{
|
{
|
||||||
int n;
|
int n;
|
||||||
Rune *a, *b;
|
const Rune *a, *b;
|
||||||
|
|
||||||
a = va;
|
a = va;
|
||||||
b = vb;
|
b = vb;
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"Console": {
|
"Console": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"/arch/$ARCH/include/cflags.json"
|
"/arch/$ARCH/include/cflags.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"PipeConsole": {
|
"PipeConsole": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"/arch/$ARCH/include/cflags.json"
|
"/arch/$ARCH/include/cflags.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"ScreenConsole": {
|
"ScreenConsole": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"/arch/$ARCH/include/cflags.json"
|
"/arch/$ARCH/include/cflags.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -66,6 +66,7 @@ tvp3026xi(uint8_t index)
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static void
|
static void
|
||||||
tvp3026o(uint8_t reg, uint8_t data)
|
tvp3026o(uint8_t reg, uint8_t data)
|
||||||
{
|
{
|
||||||
|
@ -74,6 +75,7 @@ tvp3026o(uint8_t reg, uint8_t data)
|
||||||
crt55 = tvp3026io(reg, data);
|
crt55 = tvp3026io(reg, data);
|
||||||
vgaxo(Crtx, 0x55, crt55);
|
vgaxo(Crtx, 0x55, crt55);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
tvp3026xo(uint8_t index, uint8_t data)
|
tvp3026xo(uint8_t index, uint8_t data)
|
||||||
|
@ -125,6 +127,7 @@ init(Vga* vga, Ctlr* ctlr)
|
||||||
ctlr->flag |= Finit;
|
ctlr->flag |= Finit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static void
|
static void
|
||||||
load(Vga* vga, Ctlr* ctlr)
|
load(Vga* vga, Ctlr* ctlr)
|
||||||
{
|
{
|
||||||
|
@ -147,6 +150,7 @@ load(Vga* vga, Ctlr* ctlr)
|
||||||
|
|
||||||
ctlr->flag |= Fload;
|
ctlr->flag |= Fload;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
dump(Vga* vga, Ctlr* ctlr)
|
dump(Vga* vga, Ctlr* ctlr)
|
||||||
|
|
|
@ -144,7 +144,7 @@ dbvesamode(char *mode)
|
||||||
uint8_t *p, *ep;
|
uint8_t *p, *ep;
|
||||||
Vmode vm;
|
Vmode vm;
|
||||||
Mode *m;
|
Mode *m;
|
||||||
|
|
||||||
if(vbe == nil)
|
if(vbe == nil)
|
||||||
return nil;
|
return nil;
|
||||||
|
|
||||||
|
@ -242,8 +242,8 @@ dump(Vga* vga, Ctlr* ctlr)
|
||||||
for(i=0x100; i<0x1FF; i++)
|
for(i=0x100; i<0x1FF; i++)
|
||||||
if(!did[i])
|
if(!did[i])
|
||||||
vbeprintmodeinfo(vbe, i, " (unoffered)");
|
vbeprintmodeinfo(vbe, i, " (unoffered)");
|
||||||
|
|
||||||
|
|
||||||
if(vbeddcedid(vbe, &edid) < 0)
|
if(vbeddcedid(vbe, &edid) < 0)
|
||||||
fprint(2, "warning: reading edid: %r\n");
|
fprint(2, "warning: reading edid: %r\n");
|
||||||
else
|
else
|
||||||
|
@ -282,6 +282,7 @@ static Flag capabilityflag[] = {
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if 0
|
||||||
static Flag modeattributesflags[] = {
|
static Flag modeattributesflags[] = {
|
||||||
1<<0, "supported",
|
1<<0, "supported",
|
||||||
1<<2, "tty",
|
1<<2, "tty",
|
||||||
|
@ -310,6 +311,7 @@ static Flag directcolorflags[] = {
|
||||||
1<<1, "x-usable",
|
1<<1, "x-usable",
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
static char *modelstr[] = {
|
static char *modelstr[] = {
|
||||||
"text", "cga", "hercules", "planar", "packed", "non-chain4", "direct", "YUV"
|
"text", "cga", "hercules", "planar", "packed", "non-chain4", "direct", "YUV"
|
||||||
|
@ -642,7 +644,7 @@ vbeddcedid(Vbe *vbe, Edid *e)
|
||||||
{
|
{
|
||||||
uint8_t *p;
|
uint8_t *p;
|
||||||
VGAreg u;
|
VGAreg u;
|
||||||
|
|
||||||
p = vbesetup(vbe, &u, 0x4F15);
|
p = vbesetup(vbe, &u, 0x4F15);
|
||||||
u.bx = 0x0001;
|
u.bx = 0x0001;
|
||||||
if(vbecall(vbe, &u) < 0)
|
if(vbecall(vbe, &u) < 0)
|
||||||
|
@ -653,12 +655,12 @@ vbeddcedid(Vbe *vbe, Edid *e)
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
printedid(Edid *e)
|
printedid(Edid *e)
|
||||||
{
|
{
|
||||||
Modelist *l;
|
Modelist *l;
|
||||||
|
|
||||||
printitem("edid", "mfr");
|
printitem("edid", "mfr");
|
||||||
Bprint(&stdout, "%s\n", e->mfr);
|
Bprint(&stdout, "%s\n", e->mfr);
|
||||||
printitem("edid", "serialstr");
|
printitem("edid", "serialstr");
|
||||||
|
@ -685,7 +687,7 @@ printedid(Edid *e)
|
||||||
Bprint(&stdout, "%lud\n", e->pclkmax);
|
Bprint(&stdout, "%lud\n", e->pclkmax);
|
||||||
printitem("edid", "flags");
|
printitem("edid", "flags");
|
||||||
printflags(edidflags, e->flags);
|
printflags(edidflags, e->flags);
|
||||||
|
|
||||||
for(l=e->modelist; l; l=l->next){
|
for(l=e->modelist; l; l=l->next){
|
||||||
printitem("edid", l->name);
|
printitem("edid", l->name);
|
||||||
Bprint(&stdout, "\n\t\tclock=%g\n\t\tshb=%d ehb=%d ht=%d\n\t\tvrs=%d vre=%d vt=%d\n\t\thsync=%c vsync=%c %s\n",
|
Bprint(&stdout, "\n\t\tclock=%g\n\t\tshb=%d ehb=%d ht=%d\n\t\tvrs=%d vre=%d vt=%d\n\t\thsync=%c vsync=%c %s\n",
|
||||||
|
@ -799,7 +801,7 @@ decodedtb(Mode *m, uint8_t *p)
|
||||||
m->ehs = ha+hb;
|
m->ehs = ha+hb;
|
||||||
|
|
||||||
m->vt = va+vb;
|
m->vt = va+vb;
|
||||||
m->vbs = va;
|
m->vbs = va;
|
||||||
m->vrs = va+vso;
|
m->vrs = va+vso;
|
||||||
m->vre = va+vso+vspw;
|
m->vre = va+vso+vspw;
|
||||||
m->vbe = va+vb;
|
m->vbe = va+vb;
|
||||||
|
@ -811,7 +813,7 @@ decodedtb(Mode *m, uint8_t *p)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sync signal description. I have no idea how to properly handle the
|
* Sync signal description. I have no idea how to properly handle the
|
||||||
* first three cases, which I think are aimed at things other than
|
* first three cases, which I think are aimed at things other than
|
||||||
* canonical SVGA monitors.
|
* canonical SVGA monitors.
|
||||||
*/
|
*/
|
||||||
|
@ -902,7 +904,7 @@ parseedid128(Edid *e, void *v)
|
||||||
}
|
}
|
||||||
|
|
||||||
sum = 0;
|
sum = 0;
|
||||||
for(i=0; i<128; i++)
|
for(i=0; i<128; i++)
|
||||||
sum += p[i];
|
sum += p[i];
|
||||||
if(sum != 0) {
|
if(sum != 0) {
|
||||||
werrstr("bad edid checksum");
|
werrstr("bad edid checksum");
|
||||||
|
@ -986,7 +988,7 @@ parseedid128(Edid *e, void *v)
|
||||||
*/
|
*/
|
||||||
estab = (p[0]<<16) | (p[1]<<8) | p[2];
|
estab = (p[0]<<16) | (p[1]<<8) | p[2];
|
||||||
p += 3;
|
p += 3;
|
||||||
|
|
||||||
for(i=0, m=1<<23; i<nelem(estabtime); i++, m>>=1)
|
for(i=0, m=1<<23; i<nelem(estabtime); i++, m>>=1)
|
||||||
if(estab & m)
|
if(estab & m)
|
||||||
if(vesalookup(&mode, estabtime[i]) == 0)
|
if(vesalookup(&mode, estabtime[i]) == 0)
|
||||||
|
|
|
@ -58,7 +58,7 @@ enum {
|
||||||
Calphacursor = 1<<9,
|
Calphacursor = 1<<9,
|
||||||
|
|
||||||
Rpalette = 1024,
|
Rpalette = 1024,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct Vmware Vmware;
|
typedef struct Vmware Vmware;
|
||||||
struct Vmware {
|
struct Vmware {
|
||||||
|
@ -200,12 +200,13 @@ options(Vga* vga, Ctlr* ctlr)
|
||||||
ctlr->flag |= Hlinear|Henhanced|Foptions;
|
ctlr->flag |= Hlinear|Henhanced|Foptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static void
|
static void
|
||||||
clock(Vga* vga, Ctlr* ctlr)
|
clock(Vga* vga, Ctlr* ctlr)
|
||||||
{
|
{
|
||||||
/* BEST CLOCK ROUTINE EVER! */
|
/* BEST CLOCK ROUTINE EVER! */
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
init(Vga* vga, Ctlr* ctlr)
|
init(Vga* vga, Ctlr* ctlr)
|
||||||
|
@ -281,7 +282,7 @@ dump(Vga* vga, Ctlr* ctlr)
|
||||||
printitem(ctlr->name, "depth");
|
printitem(ctlr->name, "depth");
|
||||||
Bprint(&stdout, " %d\n", vm->depth);
|
Bprint(&stdout, " %d\n", vm->depth);
|
||||||
printitem(ctlr->name, "linear");
|
printitem(ctlr->name, "linear");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Ctlr vmware = {
|
Ctlr vmware = {
|
||||||
|
|
|
@ -55,7 +55,7 @@ stmt: expr { code(xpop); }
|
||||||
| RETURN expr
|
| RETURN expr
|
||||||
{ defnonly("return"); $$=$2; code(funcret); }
|
{ defnonly("return"); $$=$2; code(funcret); }
|
||||||
| PROCEDURE begin '(' arglist ')'
|
| PROCEDURE begin '(' arglist ')'
|
||||||
{ $$ = $2; code3(call, (Inst)$1, (Inst)$4); }
|
{ $$ = $2; code3(call, (Inst)$1, (Inst)(uintptr_t)$4); }
|
||||||
| PRINT prlist { $$ = $2; }
|
| PRINT prlist { $$ = $2; }
|
||||||
| while '(' cond ')' stmt end {
|
| while '(' cond ')' stmt end {
|
||||||
($1)[1] = (Inst)$5; /* body of loop */
|
($1)[1] = (Inst)$5; /* body of loop */
|
||||||
|
@ -94,7 +94,7 @@ expr: NUMBER { $$ = code2(constpush, (Inst)$1); }
|
||||||
| VAR { $$ = code3(varpush, (Inst)$1, eval); }
|
| VAR { $$ = code3(varpush, (Inst)$1, eval); }
|
||||||
| asgn
|
| asgn
|
||||||
| FUNCTION begin '(' arglist ')'
|
| FUNCTION begin '(' arglist ')'
|
||||||
{ $$ = $2; code3(call,(Inst)$1,(Inst)$4); }
|
{ $$ = $2; code3(call,(Inst)$1,(Inst)(uintptr_t)$4); }
|
||||||
| READ '(' VAR ')' { $$ = code2(varread, (Inst)$3); }
|
| READ '(' VAR ')' { $$ = code2(varread, (Inst)$3); }
|
||||||
| BLTIN '(' expr ')' { $$=$3; code2(bltin, (Inst)$1->u.ptr); }
|
| BLTIN '(' expr ')' { $$=$3; code2(bltin, (Inst)$1->u.ptr); }
|
||||||
| '(' expr ')' { $$ = $2; }
|
| '(' expr ')' { $$ = $2; }
|
||||||
|
|
|
@ -55,6 +55,8 @@ void diag(Node*, char*, ...);
|
||||||
void com(Node*);
|
void com(Node*);
|
||||||
void fcom(Node*,Node*,Node*);
|
void fcom(Node*,Node*,Node*);
|
||||||
|
|
||||||
|
int yylex(void);
|
||||||
|
|
||||||
#pragma varargck argpos cprint 1
|
#pragma varargck argpos cprint 1
|
||||||
#pragma varargck argpos diag 2
|
#pragma varargck argpos diag 2
|
||||||
|
|
||||||
|
@ -80,7 +82,7 @@ void fcom(Node*,Node*,Node*);
|
||||||
%left '^'
|
%left '^'
|
||||||
%right '('
|
%right '('
|
||||||
|
|
||||||
%token <lval> MOD IF ELSE WHILE BREAK
|
%token <lval> MOD IF ELSE WHILE BREAK
|
||||||
%token <sval> NAME NUM
|
%token <sval> NAME NUM
|
||||||
|
|
||||||
%%
|
%%
|
||||||
|
@ -312,7 +314,7 @@ Loop:
|
||||||
if(getch() == '<') return LSH;
|
if(getch() == '<') return LSH;
|
||||||
ungetc();
|
ungetc();
|
||||||
return '<';
|
return '<';
|
||||||
case '>':
|
case '>':
|
||||||
if(getch() == '>') return RSH;
|
if(getch() == '>') return RSH;
|
||||||
ungetc();
|
ungetc();
|
||||||
return '>';
|
return '>';
|
||||||
|
@ -1051,7 +1053,7 @@ diag(Node *n, char *fmt, ...)
|
||||||
{
|
{
|
||||||
static char buf[1024];
|
static char buf[1024];
|
||||||
va_list a;
|
va_list a;
|
||||||
|
|
||||||
va_start(a, fmt);
|
va_start(a, fmt);
|
||||||
vsnprint(buf, sizeof(buf), fmt, a);
|
vsnprint(buf, sizeof(buf), fmt, a);
|
||||||
va_end(a);
|
va_end(a);
|
||||||
|
|
|
@ -10,9 +10,6 @@
|
||||||
"yacc -d syn.y",
|
"yacc -d syn.y",
|
||||||
"cp y.tab.h x.tab.h"
|
"cp y.tab.h x.tab.h"
|
||||||
],
|
],
|
||||||
"Cflags": [
|
|
||||||
"-Wl,--verbose"
|
|
||||||
],
|
|
||||||
"Install": "/arch/$ARCH/cmd/",
|
"Install": "/arch/$ARCH/cmd/",
|
||||||
"Program": "rc",
|
"Program": "rc",
|
||||||
"SourceFiles": [
|
"SourceFiles": [
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
{
|
{
|
||||||
"Libusb": {
|
"Libusb": {
|
||||||
"Cflags": [
|
"Cflags": [
|
||||||
"-fasm",
|
"-fasm"
|
||||||
"-Werror"
|
|
||||||
],
|
],
|
||||||
"Include": [
|
"Include": [
|
||||||
"/sys/src/lib/lib.json"
|
"/sys/src/lib/lib.json"
|
||||||
|
|
|
@ -9,7 +9,7 @@ fi
|
||||||
cd $JEHANNE/sys/src/kern/amd64
|
cd $JEHANNE/sys/src/kern/amd64
|
||||||
|
|
||||||
gcc -c -O0 -static -fplan9-extensions -mno-red-zone -ffreestanding -fno-builtin -mcmodel=kernel l64sipi.S
|
gcc -c -O0 -static -fplan9-extensions -mno-red-zone -ffreestanding -fno-builtin -mcmodel=kernel l64sipi.S
|
||||||
ld -Ttext 0x00003000 l64sipi.o -o l64sipi
|
ld -Ttext 0x00003000 -e 0x00003000 l64sipi.o -o l64sipi
|
||||||
objcopy -O binary -j .text l64sipi l64sipi.out
|
objcopy -O binary -j .text l64sipi l64sipi.out
|
||||||
|
|
||||||
echo 'uint8_t sipihandler[]={' > sipi.h
|
echo 'uint8_t sipihandler[]={' > sipi.h
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#define __ASSEMBLER__
|
#define __ASSEMBLER__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
.section .text, "awx"
|
.section .text
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Real mode. Welcome to 1978.
|
* Real mode. Welcome to 1978.
|
||||||
|
@ -205,7 +205,7 @@ _start64v:
|
||||||
|
|
||||||
_ndnr:
|
_ndnr:
|
||||||
jmp _ndnr
|
jmp _ndnr
|
||||||
|
|
||||||
.globl sipihandlerend
|
.globl sipihandlerend
|
||||||
sipihandlerend:
|
sipihandlerend:
|
||||||
jmp sipihandlerend
|
jmp sipihandlerend
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
"lib9p": {
|
"lib9p": {
|
||||||
"Cflags": [
|
"Cflags": [
|
||||||
"-Werror",
|
|
||||||
"-DPORTABLE_SYSCALLS"
|
"-DPORTABLE_SYSCALLS"
|
||||||
],
|
],
|
||||||
"Include": [
|
"Include": [
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
{
|
{
|
||||||
"9p2000": {
|
"9p2000": {
|
||||||
"Cflags": [
|
"Cflags": [
|
||||||
"-fasm",
|
"-fasm"
|
||||||
"-Werror"
|
|
||||||
],
|
],
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
{
|
{
|
||||||
"9p2000": {
|
"9p2000": {
|
||||||
"Cflags": [
|
"Cflags": [
|
||||||
"-fasm",
|
"-fasm"
|
||||||
"-Werror"
|
|
||||||
],
|
],
|
||||||
"Include": [
|
"Include": [
|
||||||
"../klib.json"
|
"../klib.json"
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"libString": {
|
"libString": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
{
|
{
|
||||||
"Libaml": {
|
"Libaml": {
|
||||||
"Cflags": [
|
"Cflags": [
|
||||||
"-fasm",
|
"-fasm"
|
||||||
"-Werror"
|
|
||||||
],
|
],
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
{
|
{
|
||||||
"KernelLibaml": {
|
"KernelLibaml": {
|
||||||
"Cflags": [
|
"Cflags": [
|
||||||
"-fasm",
|
"-fasm"
|
||||||
"-Werror"
|
|
||||||
],
|
],
|
||||||
"Include": [
|
"Include": [
|
||||||
"../klib.json"
|
"../klib.json"
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"libauth": {
|
"libauth": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"libauthsrv": {
|
"libauthsrv": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"libavl": {
|
"libavl": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"libbio": {
|
"libbio": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
{
|
{
|
||||||
"CrtFiles": {
|
"CrtFiles": {
|
||||||
"Cflags": [
|
"Cflags": [
|
||||||
"-fasm",
|
"-fasm"
|
||||||
"-Werror"
|
|
||||||
],
|
],
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
|
@ -18,8 +17,7 @@
|
||||||
},
|
},
|
||||||
"Libc": {
|
"Libc": {
|
||||||
"Cflags": [
|
"Cflags": [
|
||||||
"-fasm",
|
"-fasm"
|
||||||
"-Werror"
|
|
||||||
],
|
],
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
"KernelLibc": {
|
"KernelLibc": {
|
||||||
"Cflags": [
|
"Cflags": [
|
||||||
"-DKERNEL",
|
"-DKERNEL",
|
||||||
"-fasm",
|
"-fasm"
|
||||||
"-Werror"
|
|
||||||
],
|
],
|
||||||
"Include": [
|
"Include": [
|
||||||
"../klib.json"
|
"../klib.json"
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"libcomplete": {
|
"libcomplete": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"libcontrol": {
|
"libcontrol": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"libdisk": {
|
"libdisk": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"Libdraw": {
|
"Libdraw": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"KernelLibdraw": {
|
"KernelLibdraw": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../klib.json"
|
"../klib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"libflate": {
|
"libflate": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"libframe": {
|
"libframe": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"Libip": {
|
"Libip": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"KernelLibip": {
|
"KernelLibip": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../klib.json"
|
"../klib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"Libip": {
|
"Libip": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
"-fstack-protector-all",
|
"-fstack-protector-all",
|
||||||
"-fno-builtin",
|
"-fno-builtin",
|
||||||
"-Wall",
|
"-Wall",
|
||||||
|
"-Werror",
|
||||||
"-Wno-missing-braces",
|
"-Wno-missing-braces",
|
||||||
"-Wno-parentheses",
|
"-Wno-parentheses",
|
||||||
"-Wno-unknown-pragmas",
|
"-Wno-unknown-pragmas",
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"libmemdraw": {
|
"libmemdraw": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"KernelLibmemdraw": {
|
"KernelLibmemdraw": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../klib.json"
|
"../klib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"libmemlayer": {
|
"libmemlayer": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"KernelLibmemlayer": {
|
"KernelLibmemlayer": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../klib.json"
|
"../klib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"libplumb": {
|
"libplumb": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"libregexp": {
|
"libregexp": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -4,8 +4,7 @@
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
],
|
],
|
||||||
"Cflags": [
|
"Cflags": [
|
||||||
"-I../mp/port/",
|
"-I../mp/port/"
|
||||||
"-Werror"
|
|
||||||
],
|
],
|
||||||
"Install": "/arch/$ARCH/lib/",
|
"Install": "/arch/$ARCH/lib/",
|
||||||
"Library": "libsec.a",
|
"Library": "libsec.a",
|
||||||
|
|
|
@ -4,8 +4,7 @@
|
||||||
"../klib.json"
|
"../klib.json"
|
||||||
],
|
],
|
||||||
"Cflags": [
|
"Cflags": [
|
||||||
"-I../mp/port/",
|
"-I../mp/port/"
|
||||||
"-Werror"
|
|
||||||
],
|
],
|
||||||
"Install": "/arch/$ARCH/lib/",
|
"Install": "/arch/$ARCH/lib/",
|
||||||
"Library": "klibsec.a",
|
"Library": "klibsec.a",
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"libstdio": {
|
"libstdio": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"libthread": {
|
"libthread": {
|
||||||
"Cflags": [
|
|
||||||
"-Werror"
|
|
||||||
],
|
|
||||||
"Include": [
|
"Include": [
|
||||||
"/arch/$ARCH/include/cflags.json",
|
"/arch/$ARCH/include/cflags.json",
|
||||||
"../lib.json"
|
"../lib.json"
|
||||||
|
|
Loading…
Reference in New Issue