mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-07 19:58:30 +00:00
Get LIBC_TESTLIB building on AARCH64
This commit is contained in:
parent
95fab334e4
commit
5e2f7f7ced
46 changed files with 975 additions and 1174 deletions
|
@ -29,6 +29,8 @@
|
|||
#include "libc/calls/struct/iovec.internal.h"
|
||||
#include "libc/vga/vga.internal.h"
|
||||
|
||||
#ifdef __x86_64__
|
||||
|
||||
ssize_t sys_readv_vga(struct Fd *fd, const struct iovec *iov, int iovlen) {
|
||||
/*
|
||||
* NOTE: this routine is always non-blocking.
|
||||
|
@ -52,3 +54,5 @@ ssize_t sys_readv_vga(struct Fd *fd, const struct iovec *iov, int iovlen) {
|
|||
if (!redd) return res;
|
||||
return redd;
|
||||
}
|
||||
|
||||
#endif /* __x86_64__ */
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#include "libc/str/str.h"
|
||||
#include "libc/vga/vga.internal.h"
|
||||
|
||||
#ifdef __x86_64__
|
||||
|
||||
/*
|
||||
* @fileoverview Instantiation of routines for emergency or system console
|
||||
* output in graphical video modes.
|
||||
|
@ -95,3 +97,5 @@ privileged void _klog_vga(const char *b, size_t n) {
|
|||
klog_y = _TtyGetY(&tty);
|
||||
klog_x = _TtyGetX(&tty);
|
||||
}
|
||||
|
||||
#endif /* __x86_64__ */
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
#include "libc/str/str.h"
|
||||
#include "libc/vga/vga.internal.h"
|
||||
|
||||
#ifdef __x86_64__
|
||||
|
||||
struct Tty _vga_tty;
|
||||
|
||||
void _vga_reinit(struct Tty *tty, unsigned short starty, unsigned short startx,
|
||||
|
@ -70,3 +72,5 @@ textstartup void _vga_init(void) {
|
|||
_vga_reinit(&_vga_tty, starty, startx, 0);
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* __x86_64__ */
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#include "libc/dce.h"
|
||||
#include "libc/vga/vga.internal.h"
|
||||
|
||||
#ifdef __x86_64__
|
||||
|
||||
ssize_t sys_writev_vga(struct Fd *fd, const struct iovec *iov, int iovlen) {
|
||||
size_t i, wrote = 0;
|
||||
ssize_t res = 0;
|
||||
|
@ -44,3 +46,5 @@ ssize_t sys_writev_vga(struct Fd *fd, const struct iovec *iov, int iovlen) {
|
|||
if (!wrote) return res;
|
||||
return wrote;
|
||||
}
|
||||
|
||||
#endif /* __x86_64__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue