We are starting new season of the labs. Season 2 will be named as “Close to hardware”. And we start from important point to have clocks and timers working. But first we made a decision to make our codes close to 9pi source codes, especially assembler parts. But we found it little complicated as UReg struct on Plan 9 have r14 and link as union while Inferno has them separate. We can not change Ureg in arm/include as we would break another ports. Instead we created os/rpi/include and copied modified ureg.h there.
As it was done, we can make our codes for exceptions very similar (lamost same) as used in 9pi.
To add clocks and timers we would modify rpi and mkfile to add ready module from ports – tod. And add clock.c file:
Lab 16, Adding clocks, timers, converging to 9pi codes
We are starting new season of the labs. Season 2 will be named as “Close to hardware”. And we start from important point to have clocks and timers working. But first we made a decision to make our codes close to 9pi source codes, especially assembler parts. But we found it little complicated as UReg struct on Plan 9 have r14 and link as union while Inferno has them separate. We can not change Ureg in arm/include as we would break another ports. Instead we created os/rpi/include and copied modified ureg.h there.
As it was done, we can make our codes for exceptions very similar (lamost same) as used in 9pi.
To add clocks and timers we would modify rpi and mkfile to add ready module from ports – tod. And add clock.c file:
Also there are another minor changes to dat.h, etc.
FILES:
rpi-lab16.zip