Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

New Runtime Features #145

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

New Runtime Features #145

wants to merge 23 commits into from

Conversation

RossComputerGuy
Copy link

Features:

  • Shell API
  • Getting CPU Count
  • WIP Threads
  • New File structure
  • cpuid function
  • WIP support for non-x64 cpu's

.travis.yml Outdated
file: disk/boot/runtime.gz
skip_cleanup: true
on:
repo: Ross-Computers/runtime
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want your changes to be merged mainstream instead of create your own fork, you should left the repo references as they were before.

README.md Outdated
@@ -1,6 +1,6 @@
# runtime.js

[![Build Status](https://travis-ci.org/runtimejs/runtime.svg?branch=master)](https://travis-ci.org/runtimejs/runtime) [![npm](https://img.shields.io/npm/v/runtimejs.svg)](https://www.npmjs.com/package/runtimejs) [![Gem](https://img.shields.io/badge/freenode-%23runtimejs-blue.svg)](https://freenode.net/) [![Travis](https://img.shields.io/badge/GITTER-JOIN_CHAT_%E2%86%92-1dce73.svg)](https://gitter.im/runtimejs/runtime)
[![Build Status](https://travis-ci.org/Ross-Computers/runtime.svg?branch=master)](https://travis-ci.org/Ross-Computers/runtime) [![npm](https://img.shields.io/npm/v/runtimejs.svg)](https://www.npmjs.com/package/runtimejs) [![Gem](https://img.shields.io/badge/freenode-%23runtimejs-blue.svg)](https://freenode.net/) [![Travis](https://img.shields.io/badge/GITTER-JOIN_CHAT_%E2%86%92-1dce73.svg)](https://gitter.im/runtimejs/runtime)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

SConstruct Outdated
'-DV8_HOST_ARCH_X64',
'-DV8_TARGET_ARCH_X64',
'-DV8_HOST_ARCH_X'+bits,
'-DV8_TARGET_ARCH_X'+bits,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

X64 is the arch name, not an indicator of the number of bits.

@@ -13,7 +13,7 @@
// limitations under the License.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ps2 is not arch specific, so I would put it in a platform-agnostic folder, for example js/drivers/ps2.

js/core/index.js Outdated
const net = require('./net');
const stdio = require('./stdio');
const tty = require('./tty');
const shell = require('./shell');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of these are drivers, so same as before. In fact, the shell is not a driver itself, but instead it's an app, so don't merge them.

this.CURSOR.X = this.CURSOR.Y = 0;
this.CURSOR.SHOWING = true;
this.WIDTH = width;
this.HEIGHT = height;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor and sizes are dependent of the tty, not of the shell.

@@ -16,11 +16,13 @@
const keyboard = require('../keyboard');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not consider tty part of core because it's build on top of keyboard and screen, so move it outside. It could be considered a driver, although not a low-level real one (because it's build on top of other ones) but instead a "virtual" one.

@@ -17,11 +17,7 @@
#include <kernel/resource.h>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename folder from Includes to correct include (remove capital and plural).

@rzr
Copy link

rzr commented May 25, 2020

Blocked-by: #156

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants