Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
praffulr committed Mar 11, 2020
1 parent fc60696 commit 7e49940
Show file tree
Hide file tree
Showing 17 changed files with 4,566 additions and 5,264 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ SOURCES = \
$I/labs/shell.cc \
$I/labs/coroutine.cc \
$I/labs/fiber.cc \
$I/labs/fiber_scheduler.cc \

ISO_SOURCES = \
$O/iso/boot/$(NAME).exe \
Expand Down
Binary file modified _tmp/hoh.065a8ab7026754e9d5f752582e61b81f.exe
Binary file not shown.
Binary file modified _tmp/hoh.iso
Binary file not shown.
Binary file modified _tmp/iso/boot/hoh.exe
Binary file not shown.
Binary file modified _tmp/labs/shell.065a8ab7026754e9d5f752582e61b81f.o
Binary file not shown.
Binary file modified _tmp/x86/main.065a8ab7026754e9d5f752582e61b81f.o
Binary file not shown.
4 changes: 3 additions & 1 deletion _tmp/x86/main.cc.065a8ab7026754e9d5f752582e61b81f.dep
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ _tmp/x86/main.cc.065a8ab7026754e9d5f752582e61b81f.dep ./_tmp/x86/main.065a8ab70
/usr/include/boost/detail/workaround.hpp \
/usr/include/boost/config/workaround.hpp labs/keyboard.h \
generated/lpc_kbd.dev.h labs/shell.h labs/coroutine.h util/coroutine.h \
labs/fiber.h util/fiber.h
labs/fiber.h util/fiber.h labs/fiber_scheduler.h

labs/vgatext.h:

Expand Down Expand Up @@ -217,3 +217,5 @@ util/coroutine.h:
labs/fiber.h:

util/fiber.h:

labs/fiber_scheduler.h:
217 changes: 0 additions & 217 deletions fiber.cc

This file was deleted.

9 changes: 0 additions & 9 deletions fiber.h

This file was deleted.

24 changes: 12 additions & 12 deletions labs/coroutine.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// FIXME: check few fix set of assignments are done inside error block

#include "labs/coroutine.h"

bool equal_to1(char* str1, char* str2, int len)
Expand Down Expand Up @@ -84,8 +86,6 @@ void int_to_string_write1(char* arr, int n)

void shell_step_coroutine(shellstate_t& shellstate, coroutine_t& f_coro, f_t& f_locals){

//insert your code here

//copying local data
int& i = f_locals.i;
int& n = f_locals.n;
Expand All @@ -103,16 +103,16 @@ void shell_step_coroutine(shellstate_t& shellstate, coroutine_t& f_coro, f_t& f_
// user didn't provided any input


if(num_arguments != 1)
{
hoh_debug(num_arguments);
hoh_debug("Primes arguments");
shellstate.output[0] = 'E';
shellstate.output[1] = 'R';
shellstate.output[2] = 'R';
shellstate.output[3] = 'O';
shellstate.output[4] = 'R';
shellstate.output[5] = '\0';
if(num_arguments != 1)
{
hoh_debug(num_arguments);
hoh_debug("Primes arguments");
shellstate.output[0] = 'E';
shellstate.output[1] = 'R';
shellstate.output[2] = 'R';
shellstate.output[3] = 'O';
shellstate.output[4] = 'R';
shellstate.output[5] = '\0';
}
else
{
Expand Down
Loading

0 comments on commit 7e49940

Please sign in to comment.