Annotation of nono/vm/mpu.cpp, revision 1.1.1.4

1.1       root        1: //
                      2: // nono
1.1.1.3   root        3: // Copyright (C) 2020 nono project
                      4: // Licensed under nono-license.txt
1.1       root        5: //
                      6: 
1.1.1.2   root        7: // MPU 共通部
                      8: 
1.1       root        9: #include "mpu.h"
                     10: 
1.1.1.2   root       11: std::unique_ptr<MPUDevice> gMPU;
1.1       root       12: 
                     13: // コンストラクタ
1.1.1.2   root       14: MPUDevice::MPUDevice()
1.1       root       15: {
                     16:        logname = "mpu";
                     17:        devname = "MPU";
1.1.1.4 ! root       18: 
        !            19:        // リセット例外を起こすイベント
        !            20:        // ハンドラは MPU ごとに異なるので継承クラス側で用意している
        !            21:        reset_event.dev = this;
        !            22:        reset_event.time = 0;
        !            23:        reset_event.SetName("MPU Reset");
1.1       root       24: }
                     25: 
                     26: // デストラクタ
                     27: MPUDevice::~MPUDevice()
                     28: {
                     29: }
1.1.1.4 ! root       30: 
        !            31: // リセット
        !            32: void
        !            33: MPUDevice::ResetHard()
        !            34: {
        !            35:        // 0 サイクル後にリセット例外を起こす
        !            36:        reset_event.Start();
        !            37: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.