BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / blob / master / kernel / start.S

// Related

Nucleus

Barry Kernel threads + threads share address space 6217f0d (3 years, 1 month ago)
.section .multiboot, "a"
.global header
header:
	.long 0x1BADB002
	.long 1 | 2 | 4
	.long -(0x1BADB002 + (1 | 2 | 4))

	.long 0, 0, 0, 0, 0
	.long 0, 1280, 1024, 32

.section .bss, "aw", @nobits
.global stackBottom
.global stackTop
stackBottom:
	.skip 8192
stackTop:

.section .text
.extern kmain
.global _start
_start:
	mov $stackTop, %ebp
	mov %ebp, %esp
	push %ebx
	call kmain
	cli
_end:
	hlt
	jmp _end