> Hello, > > My goal is to compile a simple assembly program and boot it on top > of pmon2000 on a Yeeloong laptop. > But I am missing information such as the address range to write to > memory. > Where are mapped the 1GBytes of memory? low 256MB is at physical address 0-0x10000000, can be accessed from 0x80000000-0x90000000 or 0xa0000000-0xb0000000
all mem is mapped at physical address start from 0x80000000(can differ with pmon versions), can be accessed only via 64bit address or tlb mapped addresses. > Does the pmon mt command provide a good answer? probably it can access only the low part. > > Does pmon load the program at the start of this space? can't remember the details, but it should be no. Pmon itself is normally loaded at 0x80020000. the top part is used for stack and malloc etc. Addresses like 0x82000000 should be unused. But why do you want to use raw addresses? BTW: the topic does not directly related to Loongson2F manual? The address mapping can be changed for different implementations. > > Freely > Sebastien > > -- > You received this message because you are subscribed to the Google Groups > "loongson-dev" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/loongson-dev?hl=en. > > -- You received this message because you are subscribed to the Google Groups "loongson-dev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/loongson-dev?hl=en.
