1
0
mirror of git://projects.qi-hardware.com/iris.git synced 2025-04-21 12:27:27 +03:00

usb fs mostly working

This commit is contained in:
Bas Wijnen
2010-01-16 16:13:54 +01:00
parent 03e74d38d3
commit 7dc6ecb0ea
16 changed files with 563 additions and 220 deletions

View File

@@ -38,9 +38,9 @@ namespace Kernel:
__recv_data_t recv
void print_caps ():
// Assume __caps to be 16.
bool used[16]
for unsigned i = 0; i < 16; ++i:
// Assume __caps to be 32.
bool used[32]
for unsigned i = 0; i < 32; ++i:
used[i] = true
unsigned num = 0
for list *i = __first_free_cap; i; i = i->next:
@@ -48,7 +48,7 @@ namespace Kernel:
++num
kdebug_num (num, 1)
kdebug (":")
for unsigned i = 0; i < 16; ++i:
for unsigned i = 0; i < 32; ++i:
kdebug_char (used[i] ? '#' : '.')
kdebug_char ('\n')

View File

@@ -20,7 +20,7 @@
#define ARCH
#include "arch.hh"
__asm__ volatile (".section .rodata\n.globl charset\ncharset:\n.incbin \"boot-programs/charset.data\"\n.section .text")
__asm__ volatile (".section .rodata\n.globl charset\ncharset:\n.incbin \"source/charset.data\"\n.section .text")
extern unsigned char const charset[127-32][8][6]
#define assert(x) do { if (!(x)) { kdebug ("assertion failed " #x); while (true) {} } } while (0)