Now using static buffers (and protecting with a semaphore) for kernel secprintf.
We have to do this because we need secure output in kmalloc.
This commit is contained in:
@@ -39,4 +39,8 @@ int success(int, const char *, const char *);
|
||||
int secprintf(const char *secret, const char *msg, const char *name);
|
||||
int partial_credit(const char *secret, const char *name, int scored, int total);
|
||||
|
||||
#ifdef _KERNEL
|
||||
void test161_bootstrap(void);
|
||||
#endif
|
||||
|
||||
#endif /* _KERN_TEST161_H_ */
|
||||
|
@@ -48,6 +48,7 @@
|
||||
#include <device.h>
|
||||
#include <syscall.h>
|
||||
#include <test.h>
|
||||
#include <kern/test161.h>
|
||||
#include <version.h>
|
||||
#include "autoconf.h" // for pseudoconfig
|
||||
|
||||
@@ -127,6 +128,7 @@ boot(void)
|
||||
vm_bootstrap();
|
||||
kprintf_bootstrap();
|
||||
thread_start_cpus();
|
||||
test161_bootstrap();
|
||||
|
||||
/* Default bootfs - but ignore failure, in case emu0 doesn't exist */
|
||||
vfs_setbootfs("emu0");
|
||||
|
Reference in New Issue
Block a user