Fix aarch64 build breakage caused by ed17d3008

This commit is contained in:
Justine Tunney 2023-10-31 18:17:19 -07:00
parent a09f62141d
commit f86ffa1a25
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 4 additions and 1 deletions

View file

@ -227,7 +227,8 @@ for x; do
continue continue
fi fi
if [ x"$x" = x"-" ] || # is an argument if [ x"$x" = x"-" ] || # is an argument
[ x"$x" = x"${x#-*}" ]; then # !startswith(x, "-") [ x"$x" = x"${x#-*}" ] || # !startswith(x, "-")
[ x"$x" = x"-Wl,--version" ]; then
GOT_SOME=1 GOT_SOME=1
elif [ x"$x" = x"-static-libstdc++" ]; then elif [ x"$x" = x"-static-libstdc++" ]; then
continue continue

View file

@ -385,6 +385,7 @@ privileged long kloghandle(void) {
return __klog_handle; return __klog_handle;
} }
#ifdef __x86_64__
privileged void _klog_serial(const char *b, size_t n) { privileged void _klog_serial(const char *b, size_t n) {
size_t i; size_t i;
uint16_t dx; uint16_t dx;
@ -402,6 +403,7 @@ privileged void _klog_serial(const char *b, size_t n) {
: "a"(b[i]), "dN"(dx)); : "a"(b[i]), "dN"(dx));
} }
} }
#endif /* __x86_64__ */
privileged void klog(const char *b, size_t n) { privileged void klog(const char *b, size_t n) {
#ifdef __x86_64__ #ifdef __x86_64__