feat: setup structure for block devices
added ide block device added mbr block device driver started fat block device driver reordered boot start timer before pci/ide/etc. enable interrupts earlier fixed exception from ide controller cleanup code more printfs
This commit is contained in:
@@ -74,11 +74,22 @@ u32 vasprintf(char *buf, const char *fmt, va_list args) {
|
||||
return ptr;
|
||||
}
|
||||
|
||||
void printf(const char *fmt, ...) {
|
||||
int printf(const char *fmt, ...) {
|
||||
int result;
|
||||
char buf[1024] = {-1};
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
vasprintf(buf, fmt, args);
|
||||
result = vasprintf(buf, fmt, args);
|
||||
va_end(args);
|
||||
kprint(buf);
|
||||
return result;
|
||||
}
|
||||
|
||||
int sprintf(char* target, const char*fmt, ...) {
|
||||
int result;
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
result = vasprintf(target, fmt, args);
|
||||
va_end(args);
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user