Move checking of whether the cursor is visible inside the if so that it
always hits the calculation of the oy offset when the status line is at
the top. From Michael Grant.
sadly attach functions cannot indicate failure (until we eventually
fix that), so the device node remains inact (but broken). Strange
callbacks (like activate for suspend/resume) need to detect this situation
in a device-dependent way for now. Do that here.
ok kettenis
Ignore type mismatch in riscv-specific code, fixes the build on riscv64
clang-22 considers pointer mismatches between unsigned long * and
unsigned long long * as fatal errors. Make the errors non-fatal until
I nuderstand what it takes to appease the compiler. Said errors
shouldn't matter anyway given that said types are always the same size
on riscv64 anyway. make test agrees.
Some performance increases are visible for eg chacha or AES on this
Spacemit k1, but more efforts are needed to unlock performance
improvements gated behind riscv_hwprobe checks.