History

fix drawterm compiles using gcc 10

-fno-common became the default, and and kmesg was relying on common symbols being merged.

Ori Bernstein committed 6 years ago

Commit d4043e91 parent bf3a3cd2 files · +6 −2Browse files

Unified · Split

2 files
  1. kern/dat.h +5 −2
  2. kern/devcons.c +1 −0
kern/dat.h+5−2
@@ -32,6 +32,7 @@ typedef struct Rgrp Rgrp; · 31 unmodified lines
3232 typedef struct RWlock RWlock;
3333 typedef struct Waitq Waitq;
3434 typedef struct Walkqid Walkqid;
35+typedef struct Kmesg Kmesg;
3536 typedef int Devgen(Chan*, char*, Dirtab*, int, int, Dir*);
3637
3738 #include "fcall.h"
@@ -477,8 +478,10 @@ extern void _setproc(Proc*); · 439 unmodified lines
477478 * Log console output so it can be retrieved via /dev/kmesg.
478479 * This is good for catching boot-time messages after the fact.
479480 */
480−struct {
481+struct Kmesg {
481482 Lock lk;
482483 uint n;
483484 char buf[16384];
484−} kmesg;
485+};
486+
487+extern Kmesg kmesg;
kern/devcons.c+1−0
@@ -13,6 +13,7 @@ · 12 unmodified lines
1313
1414 void (*screenputs)(char*, int) = 0;
1515
16+Kmesg kmesg; /* console messages */
1617 Queue* kbdq; /* unprocessed console input */
1718 Queue* lineq; /* processed console input */
1819 Queue* kprintoq; /* console output, for /dev/kprint */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t