9os

Experimental kernel using plan9 ideas for embedded device
git clone git://git.simple-cc.org/9os
Log | Files | Refs | README | LICENSE

defines.inc (1128B)


      1 // SCTLR_EL1
      2 	.set	SCTLR,3<<28 | 3<<22 | 1<<20 | 1<<11
      3 	.set	M,1<<0
      4 	.set	A,1<<1
      5 	.set	C,1<<2
      6 	.set	SA,1<<3
      7 	.set	SA0,1<<4
      8 	.set	CP15BEN,1<<5
      9 	.set	THEE,1<<6
     10 	.set	ITD,1<<7
     11 	.set	SED,1<<8
     12 	.set	UMA,1<<9
     13 	.set	I,1<<12
     14 	.set	DZE,1<<14
     15 	.set	UCT,1<<15
     16 	.set	nTWI,1<<16
     17 	.set	nTWE,1<<18
     18 	.set	WXN,1<<19
     19 	.set	E0E,1<<24
     20 	.set	EE,1<<25
     21 	.set	UCI,1<<26
     22 
     23 // HCR_EL2
     24 	.set	ID,1<<33
     25 	.set	CD,1<<32
     26 	.set	RW,1<<31
     27 	.set	TRVM,1<<30
     28 	.set	HCD,1<<29
     29 	.set	TDZ,1<<28
     30 	.set	TGE,1<<27
     31 	.set	TVM,1<<26
     32 	.set	TTLB,1<<24
     33 	.set	TPU,1<<23
     34 	.set	TPC,1<<22
     35 	.set	TSW,1<<21
     36 	.set	TACR,1<<20
     37 	.set	TIDCP,1<<19
     38 	.set	TSC,1<<18
     39 	.set	TID3,1<<17
     40 	.set	TID2,1<<16
     41 	.set	TID1,1<<15
     42 	.set	TID0,1<<14
     43 	.set	TWE,1<<13
     44 	.set	TWI,1<<12
     45 	.set	DC,1<<11
     46 	.set	BSU,1<<10
     47 	.set	FB,1<<9
     48 	.set	VSE,1<<8
     49 	.set	VI,1<<7
     50 	.set	VF,1<<6
     51 	.set	AMO,1<<5
     52 	.set	IMO,1<<4
     53 	.set	FMO,1<<3
     54 	.set	PTW,1<<2
     55 	.set	SWIO,1<<1
     56 	.set	VM,1<<0
     57 
     58 //SPSR_EL2
     59 	.set	NFLAG,1<<31
     60 	.set	ZFLAG,1<<30
     61 	.set	CFLAG,1<<29
     62 	.set	VFLAG,1<<28
     63 	.set	SS,1<<21
     64 	.set	IL,1<<20
     65 	.set	D,1<<9
     66 	.set	A,1<<8
     67 	.set	IRQ,1<<7
     68 	.set	FIQ,1<<7
     69 	.set	M32,1<<4
     70 	.set	EL0t,0
     71 	.set	EL1t,4
     72 	.set	EL1h,5
     73 	.set	EL2t,8
     74 	.set	EL2h,9