// The OS/K Team licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #include long memdev_getmemoff(ctx_t *ctx, dev_t *dev) { rax = MEMOFF; return 0; } long memdev_getmemsize(ctx_t *ctx, dev_t *dev) { rax = ctx->mz; return 0; } long memdev_poweron(ctx_t *ctx, dev_t *dev) { dev->fslots[0] = memdev_getmemoff; dev->fslots[1] = memdev_getmemsize; dev->state = DEVGOOD; return 0; } dev_t memdev = { .type = "ram", .name = "K-RAM", .modl = "", .vend = "The OS/K Team", .major = KARCH_MAJOR, .minor = KARCH_MINOR, .revis = KARCH_REVIS, .fpwon = memdev_poweron, };