Subversion Repositories shark

Rev

Rev 1618 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/* Project:     OSLib
2
 * Description: The OS Construction Kit
3
 * Date:                1.6.2000
4
 * Idea by:             Luca Abeni & Gerardo Lamastra
5
 *
6
 * OSLib is an SO project aimed at developing a common, easy-to-use
7
 * low-level infrastructure for developing OS kernels and Embedded
8
 * Applications; it partially derives from the HARTIK project but it
9
 * currently is independently developed.
10
 *
11
 * OSLib is distributed under GPL License, and some of its code has
12
 * been derived from the Linux kernel source; also some important
13
 * ideas come from studying the DJGPP go32 extender.
14
 *
15
 * We acknowledge the Linux Community, Free Software Foundation,
16
 * D.J. Delorie and all the other developers who believe in the
17
 * freedom of software and ideas.
18
 *
19
 * For legalese, check out the included GPL license.
20
 */
21
 
22
/*	Safe abort routine & timer asm handler	*/
23
 
24
.title	"Abort.S"
25
 
26
#include <ll/i386/sel.h>
27
#include <ll/i386/linkage.h>
28
#include <ll/i386/defs.h>
29
 
30
#include <ll/sys/ll/exc.h>
31
 
32
.data
33
 
34
ASMFILE(Abort)
35
 
36
#define SAFESTACKSIZE 4096
37
 
38
.bss
39
		/* Safe stack area for aborts	*/
40
.space		4096,0
41
SafeStack:
42
 
43
.extern  SYMBOL_NAME(act_int)
44
.extern  SYMBOL_NAME(abort_tail)
45
 
46
.text
47
 
48
.globl SYMBOL_NAME(ll_abort)
49
 
50
SYMBOL_NAME_LABEL(ll_abort)
51
			/* As we are terminating we cannnot handle */
52
			/* any other interrupt!			   */
53
			cli
54
			/* Get argument */
55
			movl    4(%esp),%eax
56
			/* Switch to safe stack */
57
			movl    $(SafeStack),%esp
58
			/* Push argument	*/
59
			pushl	%eax
60
			/* Call sys_abort(code) */
61
			call    SYMBOL_NAME(abort_tail)