init: init nachos hw01, should pass jenkins os_group_20_hw job but fail on os_group_20_ta job
This commit is contained in:
20
code/test/add.c
Normal file
20
code/test/add.c
Normal file
@@ -0,0 +1,20 @@
|
||||
/* add.c
|
||||
* Simple program to test whether the systemcall interface works.
|
||||
*
|
||||
* Just do a add syscall that adds two values and returns the result.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "syscall.h"
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
int result;
|
||||
|
||||
result = Add(42, 23);
|
||||
PrintInt(result);
|
||||
// printf("result is %d\n", result);
|
||||
Halt();
|
||||
/* not reached */
|
||||
}
|
||||
Reference in New Issue
Block a user