CHAP 8 Hardware Management. ANT LAB@CCUCOMM 鄭伊騏 (JOE). Outline. 8.1 I/O port and I/O Memory 8.2 Using I/O port 8.3 Using Digital I/O Ports 8.4 Using I/O Memory. I/O port and I/O Memory. Every peripheral device is controlled by writing and reading its registers.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
void barrier (void);宣告一個 memory barrier
void rmb (void); 保證在barrier前的read動作都完成
void wmb (void);保證在barrier前的write動作都完成
void mb (void);保證讀、寫兩種動作都會被落實執行
P.S memory barrier會影響效率,真正需要才使用
確保前三項指令都完成 it is run in an order different from that which appears in the program text, for example, to prevent interlocks in the RISC pipeline.
插入Memory BarrierExample for memory barrier