Skip to content

Commit 621bce1

Browse files
committed
Add static yoink for VGA console for bare metal Cosmo testing
1 parent 4166208 commit 621bce1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

unikey.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,9 @@ int stream_to_rune(unsigned int ch)
277277
│ PERFORMANCE OF THIS SOFTWARE. │
278278
╚─────────────────────────────────────────────────────────────────────────────*/
279279

280+
#ifdef COSMO
281+
STATIC_YOINK("vga_console");
282+
#endif
280283
#ifndef COSMO
281284
#define unreachable
282285
/**
@@ -528,6 +531,7 @@ int readansi(int fd, char *p, int n) {
528531
errno = e;
529532
return i;
530533
}
534+
#endif
531535

532536
static int startswith(const char *s, const char *prefix) {
533537
for (;;) {
@@ -536,7 +540,6 @@ static int startswith(const char *s, const char *prefix) {
536540
if (*s++ != *prefix++) return 0;
537541
}
538542
}
539-
#endif
540543

541544
static int getparm(char *buf, int n)
542545
{

0 commit comments

Comments
 (0)