summaryrefslogtreecommitdiff
path: root/sys/src/libaml/amlunmapio.c
AgeCommit message (Collapse)Author
2013-09-06libaml: new io interface, add amlnew()/amltake()/amldrop(), late binding ↵cinap_lenrek
names, FindSetLeftBit/FindSetRightBit new io interface was added. user defines amlmapio() and amlunmapio() functions that will fill out Amlio structure with function pointers to read/write routines for a particular region. amlnew() function added allowing the creation of aml objects like buffers or packages. these can be passed to amleval() with b, p or * format. amltake()/amldrop() exclude an aml object from garbage collection. on load, names are not always resolvable until the whole table is loaded. for this, we create n objects that are just name strings. after load, we recursively traverse the namespace and resolve them (see fixnames()). the FindSetLeftBit and FindSetRightBit opcodes got implemened.