Minor compilation fixes for Windows(R)(TM)
This commit is contained in:
parent
9d54898197
commit
ac55d2ddf2
@ -14,17 +14,20 @@
|
||||
|
||||
sigset_t mask;
|
||||
|
||||
void reset_procmask(void) {
|
||||
void
|
||||
reset_procmask(void) {
|
||||
sigemptyset (&mask);
|
||||
sigaddset (&mask, SIGALRM);
|
||||
sigprocmask(SIG_UNBLOCK, &mask, NULL);
|
||||
}
|
||||
|
||||
int get_fake_if(ucontext_t *ctx) {
|
||||
int
|
||||
get_fake_if(ucontext_t *ctx) {
|
||||
// we fake IF with ID flag
|
||||
return !(ctx->uc_mcontext.__gregs[REG_EFL] & (1 << 21));
|
||||
}
|
||||
|
||||
void system_shutdown(void) {
|
||||
void
|
||||
system_shutdown(void) {
|
||||
exit(0);
|
||||
}
|
||||
|
4
umka.asm
4
umka.asm
@ -88,7 +88,7 @@ pubsym irq_serv.irq_10, 'kos_irq_serv_irq10'
|
||||
pubsym idts, 'kos_idts'
|
||||
pubsym attach_int_handler, 'kos_attach_int_handler', 12
|
||||
pubsym fs_execute, 'kos_fs_execute', 4
|
||||
pubsym set_keyboard_data, 'kos_set_keyboard_data'
|
||||
pubsym set_keyboard_data, 'kos_set_keyboard_data', no_mangle
|
||||
pubsym KEY_COUNT, 'kos_key_count'
|
||||
pubsym KEY_BUFF, 'kos_key_buff'
|
||||
pubsym keyboard_mode, 'kos_keyboard_mode'
|
||||
@ -153,7 +153,7 @@ pubsym mem_BACKGROUND
|
||||
pubsym sys_background
|
||||
pubsym REDRAW_BACKGROUND, 'kos_redraw_background'
|
||||
pubsym new_sys_threads, 'kos_new_sys_threads', no_mangle
|
||||
pubsym osloop, 'kos_osloop'
|
||||
pubsym osloop, 'kos_osloop', no_mangle
|
||||
pubsym set_mouse_data, 'kos_set_mouse_data', 20
|
||||
pubsym scheduler_current, 'kos_scheduler_current'
|
||||
pubsym kos_eth_input
|
||||
|
@ -7,13 +7,21 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void reset_procmask(void) {
|
||||
void
|
||||
reset_procmask(void) {
|
||||
printf("STUB: %s:%d", __FILE__, __LINE__);
|
||||
}
|
||||
|
||||
int get_fake_if(void *ctx) {
|
||||
int
|
||||
get_fake_if(void *ctx) {
|
||||
(void)ctx;
|
||||
printf("STUB: %s:%d", __FILE__, __LINE__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
system_shutdown(void) {
|
||||
exit(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user