Subversion Repositories HelenOS

Rev

Rev 3400 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3400 Rev 3401
Line 106... Line 106...
106
/** Fake main to satisfy dependency from libc */
106
/** Fake main to satisfy dependency from libc */
107
int main(int argc, char *argv[])
107
int main(int argc, char *argv[])
108
{
108
{
109
    return 0;
109
    return 0;
110
}
110
}
111
 
111
/*
112
typedef void (*ep2)(void *);
112
typedef void (*ep2)(void *);
113
 
113
 
114
void program_run(void *entry, pcb_t *pcb)
114
void program_run(void *entry, pcb_t *pcb)
115
{
115
{
116
    asm (
116
    asm (
Line 118... Line 118...
118
//      "movl 0(%%ebx), %%ecx\n"
118
//      "movl 0(%%ebx), %%ecx\n"
119
        "mov %%eax, %%ebx\n"
119
        "mov %%eax, %%ebx\n"
120
        "jmp *%0\n"
120
        "jmp *%0\n"
121
        :: "m" (entry), "a" (pcb)
121
        :: "m" (entry), "a" (pcb)
122
    );
122
    );
123
}
123
}*/
124
 
124
 
125
/** @}
125
/** @}
126
 */
126
 */