OS67
1.0.0
OS67 est un noyau de jouet de type Unix, qui est livré avec certaines routines utilisateur. (basé sur x86)

Plateforme: Linux
git clone https://github.com/SilverRainZ/OS67.git
cd OS67
make init # only for first time
make fs # build root file system and user routines, root privilege required
make # build kernel
make run # run with bochs int _fork ();
int _exit ();
int _wait ();
int _pipe ( int * fd );
int _read ( int fd , char * addr , uint32_t n );
int _kill ( int pid );
int _exec ( char * path , char * * argv );
int _fstat ( int fd , struct stat * stat );
int _chdir ( char * path );
int _dup ( int fd );
int _getpid ();
int _sleep ( uint32_t sec );
int _uptime ();
int _open ( char * path , uint32_t mode );
int _write ( int fd , char * addr , uint32_t n );
int _mknod ( char * path , uint32_t di );
int _unlink ( char * path );
int _link ( char * old , char * new );
int _mkdir ( char * path );
int _close ( int fd );usr/ : touch usr/newroutine.cUPROGS dans Makefile comme suit: - UPROGS = bin/cinit bin/sh bin/cat bin/ls bin/mkdir bin/rm
+ UPROGS = bin/cinit bin/sh bin/cat bin/ls bin/mkdir bin/rm bin/newroutinemake fs && make run , vous pouvez exécuter votre routine utilisateurVoir les problèmes · Silverrainz / OS67
Veuillez coller les journaux du noyau dans le numéro.
MACRO DÉCOMMATION __LOG_ON comme suit pour activer la journalisation du fichier spécifique:
- // #define __LOG_ON 1
+ #define __LOG_ON 1Licence publique générale GNU version 3