Mercurial > lcfOS
comparison cos/kernel/kernel.c @ 22:69bc6d477b38
Added python run function
author | windel |
---|---|
date | Wed, 30 Nov 2011 22:41:51 +0100 |
parents | b1fed2171e1a |
children | 5dd47d6eebac |
comparison
equal
deleted
inserted
replaced
21:66e9c332c845 | 22:69bc6d477b38 |
---|---|
145 } | 145 } |
146 | 146 |
147 void startPython() | 147 void startPython() |
148 { | 148 { |
149 // TODO: connect to Py_Main | 149 // TODO: connect to Py_Main |
150 PyRun_SimpleString("print('hello world')"); | |
150 | 151 |
151 } | 152 } |
152 | 153 |
153 void testMalloc() | 154 void testMalloc() |
154 { | 155 { |
164 } | 165 } |
165 | 166 |
166 void kmain() | 167 void kmain() |
167 { | 168 { |
168 init_screen(); | 169 init_screen(); |
170 setupIDT(); | |
171 | |
169 printf("Welcome! .. "); | 172 printf("Welcome! .. "); |
170 | |
171 printf("Enabling interrupts .. "); | |
172 setupIDT(); | |
173 printf("Testing malloc"); | 173 printf("Testing malloc"); |
174 testMalloc(); | 174 testMalloc(); |
175 printf("Entering mainloop!\n"); | 175 printf("Entering mainloop!\n"); |
176 | 176 |
177 while (1==1) | 177 while (1==1) |