boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs | README

001-write-syscall.c (260B)


      1 /* Confirms our P1pp sys_write -> _write path works end-to-end through
      2  * boot2-syscall.c. No buffering, no FILE struct, no varargs. */
      3 extern long sys_write (long fd, long buf, long len);
      4 
      5 int
      6 main (void)
      7 {
      8   sys_write (1, (long) "hello\n", 6);
      9   return 0;
     10 }