TODO revision 1.26
1 /* $NetBSD: TODO,v 1.26 2018/04/11 19:44:47 palle Exp $ */
2
3Things to be done:
4
5common:
6- make %g6 point to curcpu
7- make %g7 point to curlwp
8- change run-time checks for cpu type to function pointers
9
10sun4u:
11- GENERIC.UP kernel hangs on v445 (missing interrupt?)
12
13sun4v:
14 - current status: The kernel boots and starts the init process (pid 1) 
15   which spawns /bin/sh (pid 2). This is forked as a new/bin/sh (pid 3) which crashes, probably due to MMU DPROT issues.
16- 64-bit kernel support
17- 32-bit kernel support
18- libkvm
19- ofwboot: tlb_init_sun4v() hardcodes number of slots to 64
20- locore.s: sun4v_datatrap missing implementation for trap level 1
21- check build without SUN4V defined
22- replace relevant references to %ver with GET_MAXCWP
23- pmap_mp_init(): sun4v missing handling
24- replace constructs like "wrpr %g0, PSTATE_KERN, %pstate" with NORMAL_GLOBALS
25- replace constructs line "wrpr %g0, PSTATE_INTR, %pstate" with ALTERNATE_GOBALS
26- sun4v tsb no need to lock... per cpu... anyway...
27- ci_tsb_desc->td_ctxidx: -1 or 1?
28- MP support - currently bypassed in pmap_bootstrap() for sun4v
29- vpci.c/vpcivar.h: cleanup FIXMEs
30- interrups not handled properly (com at ebus only...)
31- mpt(4) complains: mpt0: Phy 0: Link Status Unknown
32- man pages for drivers imported from OpenBSD lke vpci, vbus, cbus, vdsk, ldc etc.
33- vdsk and ldc drivers: code maked with OPENBSD_BUSDMA - make the bus_dma stuff work properly
34- vbus.c: handle prom_getprop() memory leaks
35- locore.s: rft_user (sun4v specific manaul fill) - seems to work, but is it good enough (compared to openbsds rft_user?
36
37