Giter VIP home page Giter VIP logo

jos-vmx's Introduction

JOS

JOS is a teaching OS using by MIT/Stanford/UCLA OS course.

The code in this git repo comes from UCLA OS course website: http://www.cs.ucla.edu/~kohler/class/06f-aos/index.html

JOS-vmx

JOS-vmx(JOS Virtual Machine eXtansion) is a JOS extansion exercise using by TC group of Shanghai JiaoTong University.

Prerequisite

  • Have read the Chapter 19 INTRODUCTION TO VIRTUAL-MACHINE EXTENSIONS of Intel Software Developer's Manual Volume 3B System Programming Guide, Part 2(3B in brief).
  • Have finished JOS Lab2.
  • Have known what is the "Matrix".
  • Have EPT and Unrestricted guest features present in the CPU. This is not necessary if you use bochs emulator instead.

Brief note

  • Step1: > make
  • Step2: > make install-grub
  • Step3: Add a JOS entry in system grub list
  • Step4: Reboot your computer
  • Step5: Enter JOS in grub

alternative:

  • Step1: Download bochs-2.4.5
  • Step2: ./configure --enable-debugger --enable-vmx=2 --enable-x86-64 --prefix=/usr
  • Step3: make & make install
  • Following process is just the same as what we did in JOS lab.

Sayings

"When you have learned to snatch the error code from the trap frame, it will be time for you to leave." --- 《The Tao Of Programming》

"When you have learned to create the MATRIX, it will be time for you to leave." --- kight

JOS CODING STANDARDS

It's easier on everyone if all authors working on a shared code base are consistent in the way they write their programs. We have the following conventions in our code:

  • No space after the name of a function in a call For example, printf("hello") not printf ("hello").

  • One space after keywords "if", "for", "while", "switch". For example, if (x) not if(x).

  • Space before braces. For example, if (x) { not if (x){.

  • Function names are all lower-case separated by underscores.

  • Beginning-of-line indentation via tabs, not spaces.

  • Preprocessor macros are always UPPERCASE. There are a few grandfathered exceptions: assert, panic, static_assert, offsetof.

  • Pointer types have spaces: (uint16_t *) not (uint16_t*).

  • Multi-word names are lower_case_with_underscores.

  • Comments in imported code are usually C /* ... */ comments. Comments in new code are C++ style //.

  • In a function definition, the function name starts a new line. Then you can grep -n '^foo' /.c to find the definition of foo.

  • Functions that take no arguments are declared f(void) not f().

jos-vmx's People

Contributors

juleswang avatar

Stargazers

QIU Shuang avatar

Watchers

James Cloos avatar QIU Shuang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.