projects
/
bootcensus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
started the sound blaster audio driver
[bootcensus]
/
src
/
kmain.c
diff --git
a/src/kmain.c
b/src/kmain.c
index
2404033
..
8e4eba4
100644
(file)
--- a/
src/kmain.c
+++ b/
src/kmain.c
@@
-22,9
+22,11
@@
along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "intr.h"
#include "mem.h"
#include "keyb.h"
#include "intr.h"
#include "mem.h"
#include "keyb.h"
+#include "psaux.h"
#include "timer.h"
#include "contty.h"
#include "video.h"
#include "timer.h"
#include "contty.h"
#include "video.h"
+#include "audio.h"
#include "pci.h"
#include "vbetest.h"
#include "pci.h"
#include "vbetest.h"
@@
-38,6
+40,7
@@
void pcboot_main(void)
con_init();
kb_init();
con_init();
kb_init();
+ init_psaux();
init_mem();
init_mem();
@@
-46,6
+49,8
@@
void pcboot_main(void)
/* initialize the timer */
init_timer();
/* initialize the timer */
init_timer();
+ init_audio();
+
enable_intr();
printf("PCBoot kernel initialized\n");
enable_intr();
printf("PCBoot kernel initialized\n");
@@
-67,13
+72,13
@@
void pcboot_main(void)
break;
}
if(isprint(c)) {
break;
}
if(isprint(c)) {
- printf("key: %d '%c' \n", c, (char)c);
+ printf("key: %d '%c'\n", c, (char)c);
} else {
} else {
- printf("key: %d \n", c);
+ printf("key: %d\n", c);
}
}
if((nticks % 250) == 0) {
}
}
if((nticks % 250) == 0) {
- printf("ticks: %ld\r", nticks);
+ con_printf(71, 0, "[%ld]", nticks);
}
}
}
}
}
}