File: enter_kernelnoMMU.S

package info (click to toggle)
emile 0.10-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,716 kB
  • ctags: 2,737
  • sloc: ansic: 18,908; makefile: 726; asm: 622; sh: 2
file content (56 lines) | stat: -rw-r--r-- 781 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
 *
 * (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
 *
 */
	.chip 68000

	.include "copymem.i"

	.align 4

	.global enter_kernelnoMMU
enter_kernelnoMMU:
	link.w  %fp,#0

	/* get physical start address of kernel */

	move.l	8(%fp), %a0

	/* size of image to relocate */

	move.l	12(%fp), %d0

	/* destination addresse */

	move.l	16(%fp), %a2

	/* entry point */

	move.l	20(%fp), %a3

	/* bootenv address (EXPERIMENTAL) */

	move.l  %a2, %a1
	add.l   %d0, %a1
	sub.l   #4096, %a1
	move.l  #0x80000000, %d4

	/* copy kernel to destination address */

	copymem	%a0, %a2, %d0

	/* jump into kernel */

	jmp	%a3@

	/* never comes here... I hope */

	unlk    %fp
	rts
	.global end_enter_kernelnoMMU
end_enter_kernelnoMMU:

	.global noMMU_disable_cache
noMMU_disable_cache:
	rts