Unbreak mip64 build after r328437
Add exit and getchar functions to beri/boot2 code. They are required by panic_action functin introduced in r328437
This commit is contained in:
parent
e723559a45
commit
27f593f6fc
@ -651,3 +651,19 @@ xgetc(int fn)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
getchar(void)
|
||||
{
|
||||
|
||||
return xgetc(0);
|
||||
}
|
||||
|
||||
void
|
||||
exit(int code)
|
||||
{
|
||||
|
||||
printf("error: loader exit\n");
|
||||
while (1);
|
||||
__unreachable();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user