Skip to content

Commit

Permalink
Convert To Use kernel_old, ORG = 0, Rpi2 SMP CPU ID Setup
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterLemon committed Dec 18, 2015
1 parent 64bb2a1 commit fe11a9b
Show file tree
Hide file tree
Showing 148 changed files with 370 additions and 74 deletions.
2 changes: 1 addition & 1 deletion V3D/ControlList/Clear_Color/kernel.asm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ SCREEN_X = 640
SCREEN_Y = 480
BITS_PER_PIXEL = 32

org $8000
org $0000

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down
Binary file modified V3D/ControlList/Clear_Color/kernel.img
Binary file not shown.
10 changes: 9 additions & 1 deletion V3D/ControlList/Clear_Color/kernel7.asm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ SCREEN_X = 640
SCREEN_Y = 480
BITS_PER_PIXEL = 32

org $8000
org $0000

; Return CPU ID (0..3) Of The CPU Executed On
mrc p15,0,r0,c0,c0,5 ; R0 = Multiprocessor Affinity Register (MPIDR)
ands r0,3 ; R0 = CPU ID (Bits 0..1)
bne CoreLoop ; IF (CPU ID != 0) Branch To Infinite Loop (Core ID 1..3)

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down Expand Up @@ -53,6 +58,9 @@ str r1,[r0,V3D_CT1EA] ; When End Address Is Stored Control List Thread Executes
Loop:
b Loop

CoreLoop: ; Infinite Loop For Core 1..3
b CoreLoop

align 16
FB_STRUCT: ; Mailbox Property Interface Buffer Structure
dw FB_STRUCT_END - FB_STRUCT ; Buffer Size In Bytes (Including The Header Values, The End Tag And Padding)
Expand Down
Binary file modified V3D/ControlList/Clear_Color/kernel7.img
Binary file not shown.
2 changes: 1 addition & 1 deletion V3D/ControlList/Multi_Sample/kernel.asm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down
Binary file modified V3D/ControlList/Multi_Sample/kernel.img
Binary file not shown.
10 changes: 9 additions & 1 deletion V3D/ControlList/Multi_Sample/kernel7.asm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Return CPU ID (0..3) Of The CPU Executed On
mrc p15,0,r0,c0,c0,5 ; R0 = Multiprocessor Affinity Register (MPIDR)
ands r0,3 ; R0 = CPU ID (Bits 0..1)
bne CoreLoop ; IF (CPU ID != 0) Branch To Infinite Loop (Core ID 1..3)

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down Expand Up @@ -68,6 +73,9 @@ str r1,[r0,V3D_CT1EA] ; When End Address Is Stored Control List Thread Executes
Loop:
b Loop

CoreLoop: ; Infinite Loop For Core 1..3
b CoreLoop

align 16
FB_STRUCT: ; Mailbox Property Interface Buffer Structure
dw FB_STRUCT_END - FB_STRUCT ; Buffer Size In Bytes (Including The Header Values, The End Tag And Padding)
Expand Down
Binary file modified V3D/ControlList/Multi_Sample/kernel7.img
Binary file not shown.
2 changes: 1 addition & 1 deletion V3D/ControlList/NV/Indexed_List/Line/FillColor/kernel.asm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down
Binary file modified V3D/ControlList/NV/Indexed_List/Line/FillColor/kernel.img
Binary file not shown.
10 changes: 9 additions & 1 deletion V3D/ControlList/NV/Indexed_List/Line/FillColor/kernel7.asm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Return CPU ID (0..3) Of The CPU Executed On
mrc p15,0,r0,c0,c0,5 ; R0 = Multiprocessor Affinity Register (MPIDR)
ands r0,3 ; R0 = CPU ID (Bits 0..1)
bne CoreLoop ; IF (CPU ID != 0) Branch To Infinite Loop (Core ID 1..3)

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down Expand Up @@ -68,6 +73,9 @@ str r1,[r0,V3D_CT1EA] ; When End Address Is Stored Control List Thread Executes
Loop:
b Loop

CoreLoop: ; Infinite Loop For Core 1..3
b CoreLoop

align 16
FB_STRUCT: ; Mailbox Property Interface Buffer Structure
dw FB_STRUCT_END - FB_STRUCT ; Buffer Size In Bytes (Including The Header Values, The End Tag And Padding)
Expand Down
Binary file modified V3D/ControlList/NV/Indexed_List/Line/FillColor/kernel7.img
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down
Binary file modified V3D/ControlList/NV/Indexed_List/Line/VertexColor/kernel.img
Binary file not shown.
10 changes: 9 additions & 1 deletion V3D/ControlList/NV/Indexed_List/Line/VertexColor/kernel7.asm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Return CPU ID (0..3) Of The CPU Executed On
mrc p15,0,r0,c0,c0,5 ; R0 = Multiprocessor Affinity Register (MPIDR)
ands r0,3 ; R0 = CPU ID (Bits 0..1)
bne CoreLoop ; IF (CPU ID != 0) Branch To Infinite Loop (Core ID 1..3)

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down Expand Up @@ -68,6 +73,9 @@ str r1,[r0,V3D_CT1EA] ; When End Address Is Stored Control List Thread Executes
Loop:
b Loop

CoreLoop: ; Infinite Loop For Core 1..3
b CoreLoop

align 16
FB_STRUCT: ; Mailbox Property Interface Buffer Structure
dw FB_STRUCT_END - FB_STRUCT ; Buffer Size In Bytes (Including The Header Values, The End Tag And Padding)
Expand Down
Binary file modified V3D/ControlList/NV/Indexed_List/Line/VertexColor/kernel7.img
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down
Binary file modified V3D/ControlList/NV/Indexed_List/Line_Loop/FillColor/kernel.img
Binary file not shown.
10 changes: 9 additions & 1 deletion V3D/ControlList/NV/Indexed_List/Line_Loop/FillColor/kernel7.asm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Return CPU ID (0..3) Of The CPU Executed On
mrc p15,0,r0,c0,c0,5 ; R0 = Multiprocessor Affinity Register (MPIDR)
ands r0,3 ; R0 = CPU ID (Bits 0..1)
bne CoreLoop ; IF (CPU ID != 0) Branch To Infinite Loop (Core ID 1..3)

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down Expand Up @@ -68,6 +73,9 @@ str r1,[r0,V3D_CT1EA] ; When End Address Is Stored Control List Thread Executes
Loop:
b Loop

CoreLoop: ; Infinite Loop For Core 1..3
b CoreLoop

align 16
FB_STRUCT: ; Mailbox Property Interface Buffer Structure
dw FB_STRUCT_END - FB_STRUCT ; Buffer Size In Bytes (Including The Header Values, The End Tag And Padding)
Expand Down
Binary file modified V3D/ControlList/NV/Indexed_List/Line_Loop/FillColor/kernel7.img
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down
Binary file modified V3D/ControlList/NV/Indexed_List/Line_Loop/VertexColor/kernel.img
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Return CPU ID (0..3) Of The CPU Executed On
mrc p15,0,r0,c0,c0,5 ; R0 = Multiprocessor Affinity Register (MPIDR)
ands r0,3 ; R0 = CPU ID (Bits 0..1)
bne CoreLoop ; IF (CPU ID != 0) Branch To Infinite Loop (Core ID 1..3)

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down Expand Up @@ -68,6 +73,9 @@ str r1,[r0,V3D_CT1EA] ; When End Address Is Stored Control List Thread Executes
Loop:
b Loop

CoreLoop: ; Infinite Loop For Core 1..3
b CoreLoop

align 16
FB_STRUCT: ; Mailbox Property Interface Buffer Structure
dw FB_STRUCT_END - FB_STRUCT ; Buffer Size In Bytes (Including The Header Values, The End Tag And Padding)
Expand Down
Binary file modified V3D/ControlList/NV/Indexed_List/Line_Loop/VertexColor/kernel7.img
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down
Binary file modified V3D/ControlList/NV/Indexed_List/Line_Strip/FillColor/kernel.img
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Return CPU ID (0..3) Of The CPU Executed On
mrc p15,0,r0,c0,c0,5 ; R0 = Multiprocessor Affinity Register (MPIDR)
ands r0,3 ; R0 = CPU ID (Bits 0..1)
bne CoreLoop ; IF (CPU ID != 0) Branch To Infinite Loop (Core ID 1..3)

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down Expand Up @@ -68,6 +73,9 @@ str r1,[r0,V3D_CT1EA] ; When End Address Is Stored Control List Thread Executes
Loop:
b Loop

CoreLoop: ; Infinite Loop For Core 1..3
b CoreLoop

align 16
FB_STRUCT: ; Mailbox Property Interface Buffer Structure
dw FB_STRUCT_END - FB_STRUCT ; Buffer Size In Bytes (Including The Header Values, The End Tag And Padding)
Expand Down
Binary file modified V3D/ControlList/NV/Indexed_List/Line_Strip/FillColor/kernel7.img
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Return CPU ID (0..3) Of The CPU Executed On
mrc p15,0,r0,c0,c0,5 ; R0 = Multiprocessor Affinity Register (MPIDR)
ands r0,3 ; R0 = CPU ID (Bits 0..1)
bne CoreLoop ; IF (CPU ID != 0) Branch To Infinite Loop (Core ID 1..3)

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down Expand Up @@ -68,6 +73,9 @@ str r1,[r0,V3D_CT1EA] ; When End Address Is Stored Control List Thread Executes
Loop:
b Loop

CoreLoop: ; Infinite Loop For Core 1..3
b CoreLoop

align 16
FB_STRUCT: ; Mailbox Property Interface Buffer Structure
dw FB_STRUCT_END - FB_STRUCT ; Buffer Size In Bytes (Including The Header Values, The End Tag And Padding)
Expand Down
Binary file modified V3D/ControlList/NV/Indexed_List/Line_Strip/VertexColor/kernel7.img
Binary file not shown.
2 changes: 1 addition & 1 deletion V3D/ControlList/NV/Indexed_List/Point/FillColor/kernel.asm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down
Binary file modified V3D/ControlList/NV/Indexed_List/Point/FillColor/kernel.img
Binary file not shown.
10 changes: 9 additions & 1 deletion V3D/ControlList/NV/Indexed_List/Point/FillColor/kernel7.asm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Return CPU ID (0..3) Of The CPU Executed On
mrc p15,0,r0,c0,c0,5 ; R0 = Multiprocessor Affinity Register (MPIDR)
ands r0,3 ; R0 = CPU ID (Bits 0..1)
bne CoreLoop ; IF (CPU ID != 0) Branch To Infinite Loop (Core ID 1..3)

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down Expand Up @@ -68,6 +73,9 @@ str r1,[r0,V3D_CT1EA] ; When End Address Is Stored Control List Thread Executes
Loop:
b Loop

CoreLoop: ; Infinite Loop For Core 1..3
b CoreLoop

align 16
FB_STRUCT: ; Mailbox Property Interface Buffer Structure
dw FB_STRUCT_END - FB_STRUCT ; Buffer Size In Bytes (Including The Header Values, The End Tag And Padding)
Expand Down
Binary file modified V3D/ControlList/NV/Indexed_List/Point/FillColor/kernel7.img
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down
Binary file modified V3D/ControlList/NV/Indexed_List/Point/VertexColor/kernel.img
Binary file not shown.
10 changes: 9 additions & 1 deletion V3D/ControlList/NV/Indexed_List/Point/VertexColor/kernel7.asm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Return CPU ID (0..3) Of The CPU Executed On
mrc p15,0,r0,c0,c0,5 ; R0 = Multiprocessor Affinity Register (MPIDR)
ands r0,3 ; R0 = CPU ID (Bits 0..1)
bne CoreLoop ; IF (CPU ID != 0) Branch To Infinite Loop (Core ID 1..3)

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down Expand Up @@ -68,6 +73,9 @@ str r1,[r0,V3D_CT1EA] ; When End Address Is Stored Control List Thread Executes
Loop:
b Loop

CoreLoop: ; Infinite Loop For Core 1..3
b CoreLoop

align 16
FB_STRUCT: ; Mailbox Property Interface Buffer Structure
dw FB_STRUCT_END - FB_STRUCT ; Buffer Size In Bytes (Including The Header Values, The End Tag And Padding)
Expand Down
Binary file modified V3D/ControlList/NV/Indexed_List/Point/VertexColor/kernel7.img
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down
Binary file modified V3D/ControlList/NV/Indexed_List/Triangle/FillColor/kernel.img
Binary file not shown.
10 changes: 9 additions & 1 deletion V3D/ControlList/NV/Indexed_List/Triangle/FillColor/kernel7.asm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Return CPU ID (0..3) Of The CPU Executed On
mrc p15,0,r0,c0,c0,5 ; R0 = Multiprocessor Affinity Register (MPIDR)
ands r0,3 ; R0 = CPU ID (Bits 0..1)
bne CoreLoop ; IF (CPU ID != 0) Branch To Infinite Loop (Core ID 1..3)

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down Expand Up @@ -68,6 +73,9 @@ str r1,[r0,V3D_CT1EA] ; When End Address Is Stored Control List Thread Executes
Loop:
b Loop

CoreLoop: ; Infinite Loop For Core 1..3
b CoreLoop

align 16
FB_STRUCT: ; Mailbox Property Interface Buffer Structure
dw FB_STRUCT_END - FB_STRUCT ; Buffer Size In Bytes (Including The Header Values, The End Tag And Padding)
Expand Down
Binary file modified V3D/ControlList/NV/Indexed_List/Triangle/FillColor/kernel7.img
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down
Binary file modified V3D/ControlList/NV/Indexed_List/Triangle/VertexColor/kernel.img
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ BITS_PER_PIXEL = 32
BIN_ADDRESS = $00400000
BIN_BASE = $00500000

org $8000
org $0000

; Return CPU ID (0..3) Of The CPU Executed On
mrc p15,0,r0,c0,c0,5 ; R0 = Multiprocessor Affinity Register (MPIDR)
ands r0,3 ; R0 = CPU ID (Bits 0..1)
bne CoreLoop ; IF (CPU ID != 0) Branch To Infinite Loop (Core ID 1..3)

; Run Tags To Initialize V3D
imm32 r0,PERIPHERAL_BASE + MAIL_BASE
Expand Down Expand Up @@ -68,6 +73,9 @@ str r1,[r0,V3D_CT1EA] ; When End Address Is Stored Control List Thread Executes
Loop:
b Loop

CoreLoop: ; Infinite Loop For Core 1..3
b CoreLoop

align 16
FB_STRUCT: ; Mailbox Property Interface Buffer Structure
dw FB_STRUCT_END - FB_STRUCT ; Buffer Size In Bytes (Including The Header Values, The End Tag And Padding)
Expand Down
Binary file modified V3D/ControlList/NV/Indexed_List/Triangle/VertexColor/kernel7.img
Binary file not shown.
Loading

0 comments on commit fe11a9b

Please sign in to comment.